From: "Adrian P. van Bloois" on 15 Jul 2010 08:31 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: adrian(a)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
From: Ralf Hildebrandt on 15 Jul 2010 08:35 * Adrian P. van Bloois <adrian(a)accu.uu.nl>: > Hi, > Can I automagically attach a different disclaimer for each domain? > if so, how? Are there different options? Which program is appending the single disclaimer now? -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt(a)charite.de | http://www.charite.de
From: "Adrian P. van Bloois" on 16 Jul 2010 10:24 * El Thu, Jul 15, 2010 at 02:35:07PM +0200, escribiste: > * Adrian P. van Bloois <adrian(a)accu.uu.nl>: > > Hi, > > Can I automagically attach a different disclaimer for each domain? > > if so, how? Are there different options? > > Which program is appending the single disclaimer now? None at al. :-) > > -- > Ralf Hildebrandt > Geschäftsbereich IT | Abteilung Netzwerk > Charité - Universitätsmedizin Berlin > Campus Benjamin Franklin > Hindenburgdamm 30 | D-12203 Berlin > Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 > ralf.hildebrandt(a)charite.de | http://www.charite.de > -- Adrian P. van Bloois Postbus 2575 email: adrian(a)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
From: Ralf Hildebrandt on 16 Jul 2010 10:30 * Adrian P. van Bloois <adrian(a)accu.uu.nl>: > > > Can I automagically attach a different disclaimer for each domain? > > > if so, how? Are there different options? > > > > Which program is appending the single disclaimer now? > None at al. :-) Well, you can use altermime to add disclaimers, either directly (see my book) or from within amavisd-new -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt(a)charite.de | http://www.charite.de
From: "Aravind Divakaran" on 17 Jul 2010 02:55 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: adrian(a)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
|
Next
|
Last
Pages: 1 2 Prev: Check out my photos on Facebook Next: info about "From:" address without domain |