-   Linux - Newbie (
-   -   scan incoming mail ony (

tonj 05-18-2012 11:28 AM

scan incoming mail ony
I have a centos 6.2 server running:

This setup I have works great in filtering and rejecting spam but I don't know how to configure it so that only incoming mail gets scanned. I don't want outgoing mail to be scanned. Which file is it I need to edit? mimedefang-filter? I did a search on google before posting but couldn't find any straightforward info about how to do this. Thanks for any pointers.

bathory 05-19-2012 03:52 AM


I don't know how mimedefang works, but you can use procmail to scan incoming mail through spamassassin. Procmail usually comes with sendmail in order to deliver mail to users mailboxes.
So for this seup to work, you need to add in /etc/procmailrc:


| /usr/bin/spamc

See "Sitewide filtering" here for details.


tonj 05-19-2012 04:50 AM

my server tells me I have procmail-3.22-25.1.el6.i686 already installed but there is no /etc/procmailrc file. mimedefang's job is to reject email that spamassassin scores as spam. The setup I have does a fantastic job in keeping spam out of my server so I really think it's one of the existing files I need to edit, I'm unsure about introducing additional files when the current setup works so well. There must be a way to edit my existing setup so that only incoming mail is scanned.

All times are GMT -5. The time now is 01:47 PM.