Graeme,

> > 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);

> I have managed to get a solution working. The problem was that my sending
> domain was not listed in local_domains.

Good.

> Is there no way to force amavisd-new to add the disclaimer to all mail
> through a policy?

The above condition is hard-coded, I don't see why it would be
useful to modify third-party mail.

> Can I override local_domains in a policy bank?

Yes, that could do the trick.

$policy_bank{'AVDISCLAIMER'} = {
  local_domains_maps => [1],
  ...
};

There may be some undesired side-effects, e.g. all disclaimed
mail will be treated as internal-to-internal (not outbound) as
far as statistics counters are concerned, recipient notifications,
defanging, pen pals.

It would be cleaner to just remove the restriction in the program.
The relevant section is:

  # disclaimers should only go to mail with 2822.Sender or 2822.From
  # or 2821.mail_from address matching local domains:
  elsif (!grep {$_ ne '' && lookup(0,$_,@{ca('local_domains_maps')})}
               @{unique($rfc2822_sender, @rfc2822_from, $sender)}) {
     $to_be_mangled = 0;  # not for foreign 'Sender:' or 'From:'
     do_log(5,"will not add disclaimer, sender/author not local");
  }


Mark

-------------------------------------------------------------------------
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/

Reply via email to