6. Mailscanner :: Sendmail :: 10 Procmail Setup

Table of Contents

MailScanner:: Sendmail

Procmailrc.

 

Run this script to create the procmail file.

rm -fr /etc/procmailrc
/bin/cat << EOF >> /etc/procmailrc
# /etc/procmailrc for redhat (c) 2003 Tero.Karvinen atsign iki.fi
DROPPRIVS=1

# Not needed
#:0fw:spamassassin.lock
#* < 256000
#|/usr/bin/spamassassin

 

# The name on this line needs to be the same as in the MailScanner configuration.
:0
* ^X-ai_net_nz-MailScanner-SpamScore: ssssssssss
/dev/null

 

# Use this if you use /mail/

#:0
#* ^X-Spam-Status: Yes
#$HOME/mail/spam

 

# Use this if you are using /Maildir/

:0
* ^X-Spam-Status: Yes
$HOME/Maildir/.JUNK/


#:0:
#* ^Subject:.Cron *
#/dev/null

 

# Use this with Maildir

# Now we want all mail to go to a /Maildir/ rather than let sendmail finish
# default rule, drops messages into the default box
:0
* .*
$HOME/Maildir/


EOF

If you want to view this file:

emacs /etc/procmailrc

Previous Issues