amavis-user October 2010 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: [AMaViS-user] Disclaimer doesn't work

Re: [AMaViS-user] Disclaimer doesn't work

From: Mark Martinec <Mark.Martinec+amavis_at_nospam>
Date: Fri Oct 29 2010 - 18:29:50 GMT


> I'm using Amavisd-new-2.6.4, altermime-0.3.10.
> I set disclaimer related settings as mentioned in RELEASE_NOTES file, it
> doesn't work. If i append my client IP address in "@mynetworks", it works
> as expected, but it's not a good solution.
> How can i make it work? Thanks very much. :)
> My amavisd.conf:
> [...]
> @mynetworks = qw( [::1] [FE80::]/10 [FEC0::]/10
> );
> $policy_bank{'ORIGINATING'} = {
> originating => 1,
> allow_disclaimers => 1,
> ...
> };
> Oct 27 23:36:04 li113-162 amavis[28469]:
> (28469-02) lookup [Mangling1] => true, "" matches,
> result="disclaimer", matching_key="(constant:disclaimer)"
> Oct 27 23:36:04 li113-162 amavis[28469]: (28469-02) mangling NO:
> 0 (orig: disclaimer), discl_allowed=0, ...

Release notes state:

  it applies only to mail submitted from internal networks or roaming users
  (as recognized through a policy bank which sets: allow_disclaimers => 1),
  and where any of the following addresses matches local domains:
  author (2822.From) or sender (2822.Sender) or return path (2821.mail_from);

  Typically the $allow_disclaimers should be set by a policy bank which
  also sets the $originating flag.
  Typical use:
    $policy_bank{'MYNETS'} = { # mail originating from our networks
      originating => 1,
      allow_disclaimers => 1,

In your case the $allow_disclaimers was false. Seems like the
policy ORIGINATING was not invoked.

The idea is to associate a policy bank (like the ORIGINATING,
or MYNETS) to a port number on which a MTA feeds only messages
originating from inside or from authenticated roaming users.

If roaming mail submitters are of no concern and messages can
only be submitted from local networks, then the easiest way
is to list all your local networks in @mynetworks, and add
the "allow_disclaimers => 1," to a policy bank named MYNETS.


Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
AMaViS-user mailing list
 Please visit regularly
 For administrativa requests please send email to rainer at openantivirus dot org