SMTP disclaimer add

Chris Rank crank at pushhere.com
Wed Aug 1 08:00:06 PDT 2007


Hey all,

I am attempting to add a disclaimer to all outgoing email coming off  
of a X Server running the postfix/amavisd/cyrus package and am  
running into trouble getting it to work.

I have decided to use altermime to do the actual heavy lifting here,  
and I am attempting to call it out of amavisd.  I have attached to  
actual syntax I am attempting to use in amavisd.  When I put this  
into the /etc/amavisd.conf file and restart services, I am getting  
failures that the SMTP server couldn't connect to 10024 i.e.  
amavisd.  Anyone have any ideas.  By the way, I really don't need to  
get into a larger discussion about if disclaimer text should be  
added...yadda yadda yadda...I am familiar with the stupid disclaimer  
website, etc.  This is being used primarily as a way to force a  
company wide signature since Mail.app is not scriptable in that way.

<==========BEGIN AMAVISD CONF ADDITION=======>


$altermime = '/usr/bin/altermime';

@altermime_args_disclaimer =

qw(--verbose --disclaimer=/etc/postfix/disclaimer.txt);

$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

@mynetworks = qw( ... );

$policy_bank{'MYNETS'} = { # mail originating from our networks

allow_disclaimers => 1,

}

$interface_policy{'10026'} = 'OUTGOING_FILTER';

$policy_bank{'OUTGOING_FILTER'} = { # mail originating from the  
Internal network

bypass_spam_checks_maps => [1], # don't spam-check outgoing mail

bypass_banned_checks_maps => [0], # don't banned-check outgoing mail

smtpd_discard_ehlo_keywords => ['8BITMIME'],

allow_disclaimers => 1, # enables disclaimer insertion if available

virus_admin_maps => ["virusalert\@$mydomain"],

spam_admin_maps => ["virusalert\@$mydomain"],

warnbadhsender => 1,

forward_method => 'smtp:[127.0.0.1]:10025', # forward to 10027

};







More information about the MacOSX-admin mailing list