We help IT Professionals succeed at work.

Using Spamassasin to clear spam out of POP3 box on ISP server

I have recently started playing with spamassasin and was trying to figure out 1. If it can be used to clean an email box (smtp/pop3) the is hosted on an ISP's servers and 2. if yes, what is the basic process I need to follow to do this. I eventually plan on hosting my own email server but until I get a grasp on securing my server this will be a good first step for me.

Opi
Comment
Watch Question

CERTIFIED EXPERT
Commented:
You would need to use fetchmail to pull the mail down off the isp server and pass it through your mail server which will also do the spam filtering. Then you can either have it delivered to your server or back to the isp (this will all depend on what destination email address you tell fetchmail to send it to).

If you want to run your own email server I would recommend postfix together with MailScanner as a front end for spamassassin. Have a look at my website for more info :-

http://www.gbnetwork.co.uk/mailscanner

P.S I basically do what you are asking. I use fetchmail to pull the email down from various accounts through spamassassin and then have it delivered to a local imap server on my home network.

Author

Commented:
thanks for that info grblades. I have fethmail running and it is pulling email off of my server with no problems. The last thing I was wondering was, once I send the email back to my server, how do I keep that same message from being pulled back into fetchmail? Also how do I apply/use spam filter lists with spam assassin?

Opi
CERTIFIED EXPERT

Commented:
You cant really send the mail back to your server at least not into the same pop3 mailbox. The reason for this is you cannot tell if it has already been scanned and secondly you run the risk of the end user downloading a message before it is scanned.
You can use a separate pop3 account to redeliver the mail to.

What mail seerver are you using? (normally sendmail, postfix, exim or qmail)

Author

Commented:
I will probably install and use postfix.
CERTIFIED EXPERT

Commented:

Author

Commented:
Thanks a bunch :-)