Procmail: Edit .procmailrc
Revision as of 09:46, 7 January 2011 by Onnowpurbo (talk | contribs) (New page: Check shell which sh biasanya keluar /bin/sh Konfigurasi default ada di ~/.procmailrc #Preliminaries SHELL=/bin/sh #Use the Bourne shell (check your path!) MAILDIR=...)
Check shell
which sh
biasanya keluar
/bin/sh
Konfigurasi default ada di ~/.procmailrc
#Preliminaries
SHELL=/bin/sh #Use the Bourne shell (check your path!)
MAILDIR=/var/spool/mail/ #First check what your mail directory is!
LOGFILE=${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "
#Whatever recipes you'll use
#The order of the recipes is significant
:0
* ^From: scam@cyberspam\.com
/dev/null
# Accept all the rest to your default mailbox
:0:
${DEFAULT}