Ano-Tech Computers
Enter keyword:

Procmail config
Problem:
How to configure procmail @ atc.no
 
Solution:
------------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--------
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles