LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   sendmail conditional mail processing (https://www.linuxquestions.org/questions/linux-server-73/sendmail-conditional-mail-processing-4175549190/)

f1 outsourcing 07-28-2015 03:06 PM

sendmail conditional mail processing
 
is it possible to configure sendmail.mc / sendmail.cf to process email according to this flow chart?

Code:

HACK(`require_rdns')dnl
HACK(`dnswl', `whitelist.roosit.nl')dnl
INPUT_MAIL_FILTER(`smf-spf', `S=local:/var/run/smfs/smf-spf.sock, T=S:30s;R:1m')dnl
FEATURE(`dnsbl', `zen.spamhaus.org', `"554 Rejected " $&{client_addr} " SPAM (zen.spamhaus.org)"')dnl
FEATURE(`dnsbl', `bl.spamcop.net', `"554 Rejected " $&{client_addr} " SPAM (bl.spamcop.net)"')dnl
FEATURE(`dnsbl', `rbl.roosit.nl', `"554 Rejected " $&{client_addr} " SPAM (rbl.roosit.nl)"')dnl
INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.sock, F=, T=S:4m;R:4m')dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
define(`confINPUT_MAIL_FILTERS', `smf-spf,clamav,spamassassin')dnl
MAILER(smtp)dnl



All times are GMT -5. The time now is 03:02 AM.