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

[AMaViS-user] Disclaimer doesn't work

From: Zhang Huangbin <zhbmaillistonly_at_nospam>
Date: Thu Oct 28 2010 - 03:52:32 GMT
To: amavis-user@lists.sourceforge.net

Hi, @list.

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

@local_domains_maps = ['example.com',];

$policy_bank{'MYNETS'} = {
  originating => 1,
  allow_disclaimers => 1,
  os_fingerprint_method => undef,
};

$policy_bank{'ORIGINATING'} = {
  originating => 1,
  allow_disclaimers => 1,

  virus_admin_maps => ["root\@$mydomain"],
  spam_admin_maps => ["root\@$mydomain"],
  warnbadhsender => 1,
  forward_method => 'smtp:[127.0.0.1]:10027',
  smtpd_discard_ehlo_keywords => ['8BITMIME'],
  bypass_banned_checks_maps => [1],
  terminate_dsn_on_notify_success => 0,
};

$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
$altermime = '/usr/bin/altermime';
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt);
@disclaimer_options_bysender_maps = ({
    '.' => 'default',
},);

$log_level = 5;
$sa_debug = 0;
#----<----

And log content:

#----<----
Oct 27 23:36:04 li113-162 amavis[28469]: (28469-02) lookup: (scalar) matches, result="disclaimer"
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, <sender@example.com> -> <recipient@example.com>
#----<----

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