Hello community!


The current documentation <http://www.postfix.org/FILTER_README.html> states:



   The "-o content_filter" line causes Postfix to add one content filter 
request record to each incoming mail message ...



Q1: Is it still true you can not give a list of content filters which are 
processed one after the other?





Q2: Assuming this is still true and content_filter does not take a list of 
filters, is there a better technique than creating a "wrapper script" to call 
the multiple filters one after the other?



Background: I currently pipe my mail to spamassassin, but I also want to call a 
program adding a boilerplate for each outgoing mail (legal reason), and I think 
about a script which modifies incoming mails to strip html links to prevent my 
users clicking on them. These are three filters which should run on each mail.





Bonus question: I can configure a content_filter for each service defined in 
master.cf, but there is also a parameter content_filter in main.cf. What does 
the latter refer to, and in which order are they processed? I'm confused ...



Thank you!



Sig



###############

current configuration:

###############



master.cf:



[...]

smtp       inet  n       -       y       -       -       smtpd
        -o content_filter=spamassassin

[...]

spamassassin unix - n n - - pipe
        user=spamd argv=/usr/bin/spamc --max-size 5242880 -d 127.0.0.1 -f -e 
/usr/sbin/sendmail -oi -f ${sender} ${recipient}







main.cf:

[...]

content_filter = smtp-amavis:127.0.0.1:10024

[...]

Reply via email to