Skip to content

Instantly share code, notes, and snippets.

@lancechentw
Created June 30, 2012 18:10
Show Gist options
  • Select an option

  • Save lancechentw/3024900 to your computer and use it in GitHub Desktop.

Select an option

Save lancechentw/3024900 to your computer and use it in GitHub Desktop.
procmailrc examples
VERBOSE=on
LOGFILE=$HOME/.procmail.log/procmail.`date +%Y%m%d`.log
LOGABSTRACT=yes
:0:
* ^To: yourname.donotforward@yourdomain.tld
$DEFAULT
:0
* ^From: root@yourdomain.tld
* ^Subject.*(security|daily|weekly|monthly) run output
{
:0 c
! yourname+bsdrootmail@gmail.com
:0:
$DEFAULT
}
:0
* ^From: root@yourdomain.tld
* ^Subject.*Logwatch for
{
:0 c
! yourname+linuxlogwatch@gmail.com
:0:
$DEFAULT
}
:0:
* ^X-Spam-Flag: Yes
Mail/Spam
:0
{
:0 c
! yourname+frommydomain@gmail.com
:0:
$DEFAULT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment