|
|
|
|
| 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--------
|
|
|
|
|
|
This is free technical advice without any warranties.
Use at your own risk. Solutions offered may not apply to your particular problem at all.
Opinions and views expressed in the articles are the authors' personal
and may not necessarily reflect or coincide with those of Ano-Tech Computers.
We take no responsibility if anything bad happens from following any of
the intructions given. If you don't understand and accept this, please
contact us for personal assistance instead.
To read our full disclaimer, go
here.
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