[root@alanstudio]# vi /etc/procmailrc

Modify the config of Procmail

:0c
* !^From.MAILER-DAEMON@alanstudio.hk
* !^From.root@alanstudio.hk
/var/spool/mail/backup

Copy all incoming mails (exclude mail from root and system)
to mail account 'backup' mailbox

:0fw
| spamc

Forward all mails to spamassassian program

:0fw
| /usr/local/bin/dspam --user postmaster --stdout --deliver=innocent,spam

Forward all mails to dspam program

:0
* ^Subject:.*SPAM
/var/spool/mail/spam

Move the spam incoming mails that the subject include the word "SPAM" to mail account 'Spam' mailbox

:0
* ^Subject:.*SPAM
/dev/null

Remove the spam incoming mails that the subject include the word "SPAM"


Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.