[AMaViS-user] $sa_spam_subject_tag ?
Is there a way to include the score on the subject line ? Something along the lines of: $sa_spam_subject_tag = '*SPAM* [$score] '; Thanks, M -- IBM: It's Broke Ma'am 01:55:01 up 1 day, 5:49, 7 users, load average: 2.01, 1.42, 0.84 Linux Registered User #241685 http://counter.li.org ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
[AMaViS-user] OT: Postfix problem I am hoping you can help with
I am trying to get out Postfix server to send AOL mail to our ISP rather than directly to AOL as they insist on bouncing our mail if we send directly. I am editing the transport files with the following lines... aol.com smtp:smtp.nildram.co.uk .aol.comsmtp:smtp.nildram.co.uk gmail.com smtp:smtp.nildram.co.uk With the gmail one there so I can test it is working, unfortunately after a postfix restart it is still sending the mail directly. I am also a little concerned that the transport file has the following at the top of it... # # MTA Managment Transport List; # # Please do NOT edit it manually; # So where am I supposed to edit it? Can anyone help as this is driving me crazy. -- Jay -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 29/05/2006 ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] $sa_spam_subject_tag ?
M.Lewis, Is there a way to include the score on the subject line ? Something along the lines of: $sa_spam_subject_tag = '*SPAM* [$score] '; It currently is not configurable. You will need to edit the program - in sub add_forwarding_header_edits_per_recip ... $hdr_edits-edit_header('Subject', ... Mark ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] OT: Postfix problem I am hoping you can help with
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 30, 2006, at 05:27 , James Smith wrote: I am trying to get out Postfix server to send AOL mail to our ISP rather than directly to AOL as they insist on bouncing our mail if we send directly. If the mail is being bounced then something isn't right. My users send e-mail regularly to AOL without any issues so you may want to first find out why it's being bounced before trying to route mail through another server which may not resolve your problem but only delay the bounce itself. I am editing the transport files with the following lines... aol.com smtp:smtp.nildram.co.uk .aol.comsmtp:smtp.nildram.co.uk gmail.com smtp:smtp.nildram.co.uk With the gmail one there so I can test it is working, unfortunately after a postfix restart it is still sending the mail directly. I am also a little concerned that the transport file has the following at the top of it... # # MTA Managment Transport List; # # Please do NOT edit it manually; # So where am I supposed to edit it? Can anyone help as this is driving me crazy. -- Jay -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 29/05/2006 ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEfB1BiD9DTPch4RQRAmT2AJ9ibMJc5nLWRKgE9cZ4W3zSJUF9rwCgtcji NAUA4jnjtNsy7jivzo8Ca/w= =Yphs -END PGP SIGNATURE- ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] $sa_spam_subject_tag ?
Mark Martinec wrote: M.Lewis, Is there a way to include the score on the subject line ? Something along the lines of: $sa_spam_subject_tag = '*SPAM* [$score] '; It currently is not configurable. You will need to edit the program - in sub add_forwarding_header_edits_per_recip ... $hdr_edits-edit_header('Subject', ... Mark I use following patch to add score in the subject - first part. The second part it tries to remove multiple [SPAM] tags in the subject (I don't like subject like ***SPAM*** [SPAM] This is original subject). But changing subject probably break DomainKeys or DKIM signagure... Petr --- amavisd-new-2.4.1/amavisd 2006-05-09 00:02:14.0 +0200 +++ amavisd-new-2.4.1/amavisd 2006-05-09 00:10:58.0 +0200 @@ -8341,6 +8341,8 @@ $subject_insert, $any_undecipherable, $hold); } $subject_insert .= $subject_tag if $do_subj; + $subject_insert =~ s/\s*$// if $do_subj; + $subject_insert .= sprintf((%.1f) ,$spam_level+$boost) if $do_subj and defined $spam_level; } my($key) = join(\000, map {defined $_ ? $_ : ''} ( $do_tag_virus_checked, $do_tag_virus, $do_tag_banned, $do_tag_badh, @@ -8403,7 +8405,7 @@ if ($do_subj || $do_subj_u) { if (defined $msginfo-orig_header_fields-{'subject'}) { $hdr_edits-edit_header('Subject', -sub { $_[1]=~/^([ \t]?)(.*)\z/s; ' '.$subject_insert.$2 }); +sub { $_[1]=~/^([ \t]?)([\[\*]*SPAM[\]\*]*\(?\d*\.*\d*\)?\s*)*(.*)\z/s; ' '.$subject_insert.$3 }); } else { # no Subject header field present, insert one $subject_insert =~ s/[ \t]+\z//; # trim $hdr_edits-append_header('Subject', $subject_insert); ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] OT: Postfix problem I am hoping you can help with
Jay, The smtp.nildram.co.uk has either MX nor A record, Nope, I get an A record for it here... C:\nslookup smtp.nildram.co.uk Server: radius.nildram.co.uk Address: 195.112.4.4 Non-authoritative answer: Name:smtp.nildram.co.uk Address: 195.112.4.54 Seems like DNS for nildram.co.uk is somewhat broken, two lame delegations, missing glue records, etc.: $ host -C nildram.co.uk nildram.co.uk NS dns1.nildram.com nildram.co.uk SOA record currently not present at dns1.nildram.com nildram.co.uk has lame delegation to dns1.nildram.com nildram.co.uk NS dns0.nildram.co.uk dns0.nildram.co.uk hostmaster.nildram.co.uk(1148454931 900 7200 604800 86400) !!! nildram.co.uk SOA retry exceeds refresh nildram.co.uk NS dns0.nildram.com nildram.co.uk SOA record currently not present at dns0.nildram.com nildram.co.uk has lame delegation to dns0.nildram.com nildram.co.uk NS dns1.nildram.co.uk nildram.co.uk SOA record currently not present at dns1.nildram.co.uk nildram.co.uk has lame delegation to dns1.nildram.co.uk See also: http://www.dnsreport.com/tools/dnsreport.ch?domain=nildram.co.uk ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] OT: Postfix problem I am hoping you can help with
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Smith Sent: Tuesday, May 30, 2006 5:28 AM To: amavis-user@lists.sourceforge.net Subject: [AMaViS-user] OT: Postfix problem I am hoping you can help with I am trying to get out Postfix server to send AOL mail to our ISP rather than directly to AOL as they insist on bouncing our mail if we send directly. I am editing the transport files with the following lines... aol.com smtp:smtp.nildram.co.uk .aol.comsmtp:smtp.nildram.co.uk gmail.com smtp:smtp.nildram.co.uk Based on mark's finding with DNS issues, use the ip address: smtp:[195.112.4.54] Also, this should concern you: # # MTA Managment Transport List; # # Please do NOT edit it manually; # So where am I supposed to edit it? You have a non-standard postfix distribution, maybe there are configuration files overridding the transport.db Go to postfix mailing lists for help. ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
[AMaViS-user] Banned contents message and other issues.
Is it possible to have the banned contents email in a separate file so that it can be edited easily? Also is it possible to add a disclaimer to all out bound mail, or is that out as a matter of policy? Kind regards Benedict White ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] OT: Postfix problem I am hoping you can help with
The problem you have with AOL is probably the fact that they will not accept mail from a mailserver without a reverse DNS entry. Nildram do not assign one by default, but you can ask them to, and your problems will go away, as far as your users wanting to send mail to AOL is concerned. Your problem that you have users who want to send to AOL will however remain smile I believe you can email nildrams hostmaster team at [EMAIL PROTECTED] or ring their support number. On the transport maps issue you do need to do a postmap. Also if you want the entry to work it would look something like this: some-domain.com smtp:{some.smtp-server.com]:25 if smtp.nildram.co.uk is the correct relay (I don't know, I have not used it) then you should write: aol.com smtp:[smtp.nildram.co.uk]:25 which then gets postfix to ignore MX lookups. You would then need to to the postmap thing. Kind regards Benedict White ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/