diff options
author | Sven Gothel <[email protected]> | 2013-06-06 02:11:24 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-06 02:11:24 +0200 |
commit | 37e89102f700a8187f994098b7944c5ec236bc97 (patch) | |
tree | a4fce6b084028867af4fb8c9756d6b6b4919efc0 /server/setup/05-service-settings/etc/procmailrc | |
parent | 2b17b948cd81e1cb945d5a057bd96316e904e3f3 (diff) |
server config part-1: logging, move backup files and users, mysql, procmail, bogofilter, sasl2, dovecot, sendmail
Diffstat (limited to 'server/setup/05-service-settings/etc/procmailrc')
-rw-r--r-- | server/setup/05-service-settings/etc/procmailrc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/server/setup/05-service-settings/etc/procmailrc b/server/setup/05-service-settings/etc/procmailrc new file mode 100644 index 0000000..08c0492 --- /dev/null +++ b/server/setup/05-service-settings/etc/procmailrc @@ -0,0 +1,29 @@ +# file: /etc/procmailrc +# system-wide settings for procmail +SHELL="/bin/bash" +SENDMAIL="/usr/sbin/sendmail -oi -t" +LOGFILE="/var/log/procmail.log" +DELIVER="/usr/lib/dovecot/deliver" + +# filter mail through bogofilter, tagging it as Ham, Spam, or Unsure, +# and updating the wordlist +:0fw +| /usr/bin/bogofilter -uep + +# if bogofilter failed, return the mail to the queue; +# the MTA will retry to deliver it later +# 75 is the value for EX_TEMPFAIL in /usr/include/sysexits.h +:0e +{ EXITCODE=75 HOST } + +# deliver to dovecot +# +:0 w +| $DELIVER -d $LOGNAME + +# if deliver failed, return the mail to the queue; +# the MTA will retry to deliver it later +# 75 is the value for EX_TEMPFAIL in /usr/include/sysexits.h +:0e +{ EXITCODE=75 HOST } + |