List Info

Thread: amavisd-new and altermime




amavisd-new and altermime
country flaguser name
Netherlands
2007-07-09 03:12:35
Hello list,

I'm trying to use Altermime to add a disclaimer to a mail.
There are several 
ways to do this:

1: Use a shell script calling Altermime with Postfix as
described on 
http://www.paw.za.org/do
cs/howtos/postfix-altermime/postfix-altermime-howto-2.html#s
s2.3

2: Use Amavisd-new > 2.5.0 and Altermime

When using the first method, Line breaks are present as
"=" signs in several 
Webmail providers (like Hotmail). This doesn't look nice

When using Amavisd-new to add a disclaimer with Altermime
using example in 
readme.txt:

Amavisd.comf snippet

--> start

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

altermime_args_disclaimer =

qw(--verbose --disclaimer=/etc/altermime-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

};

--> end amavisd.conf snipped

Only text mail get mangled this way,

By replacing " qw(--verbose
--disclaimer=/etc/altermime-disclaimer.txt'; " 
with 
"qw(--verbose
--disclaimer-html=/etc/postfix/filter/disclaimer.html
--disclaimer=/etc/postfix/filter/disclaimer.txt);"

both text mail and html mail get mangled, but

The in html mail added disclaimer is in "text"
format and special formatting 
is lost.

The problem is reproduced with several distributions and
Altermime versions

SuSE 9.1 /9.2 and CentOS 5 Altermime V0.3.7 / V0.3.dev June
2007



Does anybody has an idea how add the disclaimer, with no
line break problems 
and with html formatting?





Please note:

I'm aware of controversy about added a disclaimer, but if
Company management 
wants this policy, IT has to implement it.....

So I'm not trying to invoke a discussion or flame about to
add or not to add 
a disclaimer

Regards,

John








------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )