Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-18-2012, 11:28 AM   #1
Registered: Sep 2008
Posts: 317

Rep: Reputation: 24
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.
Old 05-19-2012, 03:52 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,166

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391

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.

Old 05-19-2012, 04:50 AM   #3
Registered: Sep 2008
Posts: 317

Original Poster
Rep: Reputation: 24
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix and Spamassassin - only scan incoming mail senator Linux - Server 1 01-27-2009 10:22 PM
Sendmail/Mailscanner - how can I only scan incoming email. jeffski Linux - Software 2 01-19-2009 10:40 PM
Samba + Vscan cannot auto scan incoming file btx Linux - Security 0 05-31-2006 05:31 AM
Hot scan incoming pop mail f-prot? ginda Linux - Security 3 03-29-2005 12:57 AM
How to make bitdefender antivirus auto scan incoming mail ginda Linux - Software 1 03-15-2005 10:42 AM

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration