Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 27. ſeptember 2008, 18:24 pm

Tittel: Procmail config
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
How to configure procmail @ atc.no
Tittel: [Solved] Procmail config
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
------------sample .procmailrc file-----------
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin #to enable spawning of procmail when new mail arrives
#LOGABSTRACT=all # debug logging
#VERBOSE=yes     # verbose logging
MAILDIR=$HOME/Maildir #path to mail directory
PMDIR=$HOME/ProcMail #variable - PMDIR
LOGFILE=$PMDIR/procmail.log #path to logfile

INCLUDERC=$PMDIR/spam.rc #include rule files

:0:
new #mailbox to copy files that don't match any rules
----------end sample .procmailrc file---------


Now, most tutorials nag you about a .forward-file. In our case .qmail should be used instead.

----------sample .qmail file------------------
|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #USERID
----------end sample .qmail file--------------


example of a filter
----------sample /ProcMail/spam.rc------------
:0
* ^X-Spam-status:.*yes*
/dev/null #of course it's not recommended to do this :o)
----------end sample /ProcMail/spam.rc--------