Hi Adri, You can add disclaimer in outgoing mails using altermime. Please follow the below instruction for configuring postfix with altermime.
http://www.studioc.hu/doc/altermime/html/postfix-altermime-howto-2.html Regarding different disclaimer for each domain you can tweak the disclaimer script as below. --------------------------------------------------------------------------- #!/bin/sh # Localize these. INSPECT_DIR=/var/spool/filter SENDMAIL=/usr/sbin/sendmail ####### Changed From Original Script ########### ## Specify the domain names to which you want to append disclaimer domain1="example1.com" domain2="example2.com" domain3="example3.com" ####### Changed From Original Script END ####### # Exit codes from <sysexits.h> EX_TEMPFAIL=75 EX_UNAVAILABLE=69 # Clean up when done or when aborting. trap "rm -f in.$$" 0 1 2 3 15 # Start processing. cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; } cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; } ####### Changed From Original Script to obtain From address ######### from_address=`grep -m 1 "From:" in.$$ | cut -d "<" -f2 | cut -d ">" -f1 | cut -d ":" -f2 | cut -d "@" -f2` if [ $from_address == $domain1 ]; then /usr/bin/altermime --input=in.$$ \ --disclaimer=/etc/postfix/disclaimer1.txt \ --disclaimer-html=/etc/postfix/disclaimer1.txt \ --xheader="X-Copyrighted-Material: Please visit http://www.company1.com/privacy.htm" || \ { echo Message content rejected; exit $EX_UNAVAILABLE; } else if [ $from_address == $domain2 ]; then /usr/bin/altermime --input=in.$$ \ --disclaimer=/etc/postfix/disclaimer2.txt \ --disclaimer-html=/etc/postfix/disclaimer2.txt \ --xheader="X-Copyrighted-Material: Please visit http://www.company2.com/privacy.htm" || \ { echo Message content rejected; exit $EX_UNAVAILABLE; } else if [ $from_address == $domain3 ]; then /usr/bin/altermime --input=in.$$ \ --disclaimer=/etc/postfix/disclaimer3.txt \ --disclaimer-html=/etc/postfix/disclaimer3.txt \ --xheader="X-Copyrighted-Material: Please visit http://www.company3.com/privacy.htm" || \ { echo Message content rejected; exit $EX_UNAVAILABLE; } fi ########### Changed from orginal script END ######################## $SENDMAIL "$@" <in.$$ exit $? --------------------------------------------------------------------------- > Hi, > Can I automagically attach a different disclaimer for each domain? if so, how? Are there different options? > > Adri > > > > -- > Adrian P. van Bloois > Postbus 2575 email: adr...@accu.uu.nl > 3500 GN Utrecht voice: +31-(0)-30-68-94649 > The Netherlands fax: +31-30-68-94649 > > The whole point of cooking is to get as much flavour out of the > ingredients as possible. > -- Delia Smith > > Rgds, Aravind M D