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
To: amavis-user@lists.sourceforge.net

Huangbin,

> 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( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
> 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
> $policy_bank{'ORIGINATING'} = {
> originating => 1,
> allow_disclaimers => 1,
> ...
> };
>
> Oct 27 23:36:04 li113-162 amavis[28469]:
> (28469-02) lookup [Mangling1] => true, "sender@example.com" 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.

  Mark

------------------------------------------------------------------------------
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
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot org