PDA

View Full Version : postfix/script


hotchilli
30th June 2006, 13:17
Could this script be run for utilsing the infomation mentioned in post thread:

http://www.howtoforge.com/forums/showthread.php?t=5256



# vim: set ts=4 shiftwidth=4:

SHELL=/bin/bash
PMDIR=$HOME/procmail
LOGFILE=$PMDIR/pmlog

# To insert a blank line between each message's log entry,
# uncomment next two lines (this is helpful for debugging)
## LOG="
## "

# Set to yes when debugging; default is no
#VERBOSE=yes

MAILDIR=$HOME/Mail # Make sure this directory exists!

#INCLUDERC=$PMDIR/rc.testing

:0fw
| /usr/bin/spamassassin

:0
* ^X-Spam-Flag: YES
spam/

:0
* ^Delivered-To: mail2news_munge@mydoamin\.com
| ~mail2news/bin/multipost -M

:0
* ^Delivered-To: mail2news_nospam@mydomain\.com
| ~mail2news/bin/multipost -m

:0
* ^Delivered-To: mail2news@mydomain\.com
| ~mail2news/bin/multipost


Hotchilli

falko
1st July 2006, 13:55
I don't know this mail2news tool, but make sure
MAILDIR=$HOME/Mail # Make sure this directory exists!
is correct.
I think it should be
MAILDIR=$HOME/Maildir # Make sure this directory exists!but I'm not sure...