Hi Mark,
Thanks for replying. Yes, it was exactly the same message, in both cases,
I was sending the same instructions manually by telnet to the appropriate
server.
I have managed to get a solution working. The problem was that my sending
domain was not listed in local_domains.
Is there no way to force amavisd-new to add the disclaimer to all mail
through a policy? Can I override local_domains in a policy bank?
FWIW, my configuration is now set up as follows :
===============
postfix: master.cf
===============
#handler transport for intranet footer filter-server (amavis pdp)
disclaimer-filter unix - - y - 35 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o max_use=20
# smtp-filter server for intranet mail
# Instruct smtpd on Port 26 to deliver via 127.0.0.1:10025
# global smtpd settings apply unless an override is defined
26 inet n - n - 10 smtpd
-o content_filter=disclaimer-filter:[127.0.0.1]:10025
-o receive_override_options=no_address_mappings
===============
amavisd-new: amavisd.conf
===============
@local_domains_maps = ( [".$mydomain"],
["lumison.net"],["nplusone.net"],["lightershade.com"] )
$altermime = '/usr/local/bin/altermime';
@altermime_args_disclaimer =
qw(--verbose
--disclaimer=/etc/disclaimer/disclaimer.txt);
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
$interface_policy{'10025'} = 'AVDISCLAIMER';
$policy_bank{'AVDISCLAIMER'} = {
bypass_spam_checks_maps => [1],
bypass_banned_checks_maps => [1],
bypass_header_checks_maps => [1],
allow_disclaimers => 1,
notify_method => 'smtp:[x.y.z.10]:25',
forward_method => 'smtp:[x.y.z.10]:25'
};
Many Thanks
Graeme
Mark Martinec wrote:
> The same message (envelope, author)?
>
> Make sure the following condition is met (from RELEASE_NOTES):
>
> ...and where any of the following addresses matches local domains:
> author (2822.From) or sender (2822.Sender) or return path (2821.mail_from);
>
>> Can anyone point out what I'm missing here - how can I make port 10025
>> always add the disclaimer text.
--
Graeme Tattersall
GPG 0x97620D9F, 0xFBBDAB91
Lumison
d: 0131 514 4053
t: 0845 119 9901
P.S. Do you know that we have opened a new datacentre in London? Click
https://www.lumison.net/services/pdfs/colo_croydon.pdf if you want to know
more
--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender. Any
offers or quotation of service are subject to formal specification.
Errors and omissions excepted. Please note that any views or opinions
presented in this email are solely those of the author and do not
necessarily represent those of Lumison, nplusone or lightershade ltd.
Finally, the recipient should check this email and any attachments for the
presence of viruses. Lumison, nplusone and lightershade ltd accepts no
liability for any damage caused by any virus transmitted by this email.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/