Skip to content

Instantly share code, notes, and snippets.

@jsarenik
Created April 30, 2015 09:36
Show Gist options
  • Save jsarenik/0f529c19e5d6252e6b94 to your computer and use it in GitHub Desktop.
Save jsarenik/0f529c19e5d6252e6b94 to your computer and use it in GitHub Desktop.
Procmail configuration
VERBOSE=on
MAILDIR=$HOME/Mail # elm users might use $HOME/Mail instead
PMDIR=$HOME/.procmail
DEFAULT=/var/spool/mail/jasan
LOGFILE=$PMDIR/log
#SENDMAIL=/usr/sbin/sendmail
#SENDMAILFLAGS=-oi
:0c
* ^To: jasan\+dmarc@.*
* !^FROM_MAILER
* !^X-Loop: [email protected]
| formail -A"X-Loop: [email protected]" | /home/jasan/processmail.sh
:0c
* ^To: jasan\+ahoj@.*
* !^FROM_MAILER
* !^X-Loop: [email protected]
| formail -A"X-Loop: [email protected]" | /home/jasan/processmail2.sh
# vim:set filetype=procmail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment