SpamAssassin & SMTP Questions

modem

Verified User
Joined
Apr 7, 2004
Messages
364
I now have SpamAssassin 2.55 installed (I decided to stay away from 2.63 since there isn't an official 2.63 spam.sh script file yet...) as well as having Exim working great. I've modifed Exim for SpamAssassin by uncommenting the section in the exim.conf file. Now that it's installed how do I turn on or off SpamAssassin per each domain? I don't want to go too indepth by changing features per domain, rather I just want it on for my own domain, but let customers decide to have it on or off on their domains. In which case I'd simply enable it for them.

But... How do I enable it for customers? I've read about putting in .procmail filters but I can't find any information on exactly how to go about that. Suggestions? Comments?

Also how do I disable open SMTP relaying so that non-customers aren't using my SMTP exim server to relay spam??

Brad
 
EDIT: I misread the post and the following instructions are for DISABLING SpamAssassin for a given domain. Thought I'd leave them in though; it might come in handy for someone.

CAUTION: I believe this to work but it's untested by me.

If you've used the standard install you should have a file named /etc/mail/spamassassin/local.cf.

In that file you should have (or can create) a section titled "local whitelist_to".

You can add lines there in this format:

whitelist_to *@localdomain.com

for the domains you want to whitelist.

Jeff
 
Last edited:
How does that help me for actually using spamassassin? Right now after doing the standard install, the spamd process is running but as of yet I can't figure out how to make it work for the various hosted domains?
 
Sorry, I misread your post.

It's been my experience that when setting up SpamAssassin as it says in the DA instructions, it does work automatically.

Jeff
 
Thats ok, sometimes my fingers and train of thought get on two different tracks.

Anyway... Correct me if I'm wrong but wasn't there a thread on these forums that I read some time back (I can't find it now) that said in order to enable/disable SpamAssassin for a particular domain there had to be seperately modded configuration files placed inside that domain's area?

Because I have SpamAssassin installed and the spamd -d process running as I mentioned earlier. Exim is 4.24 is running smoothly but when I check headers of all incoming mail there is nothing listed to show "X-Spam:" etc. So it seems like that while the processes are working, I haven't done something that makes SpamAssassin filter for my domain name "modemnet.net" or other names etc.

Is that correct thinking?
 
I was inside of WebMin and the SpamAssassin module and it listed this:

"SpamAssassin does not appear to be set up in the system's Procmail configuration file /etc/procmailrc, so any configuration done using this module will have no effect unless users have it set up individually."

Comments, suggestions, or such about procmail? Procmal 3.22 is installed on the server.
 
DA uses exim, and exim uses routers set up in exim.conf to deliver email, not procmail.

Jeff
 
Thats what I thought. Besides uncommenting the SpamAssassin section inside /etc/exim.conf do I need to make any other changes in that file to get SpamAssassin to work? Also does SpamAssassin have a log file that reports what if any incoming mail is being scanned, etc? I'd like to check and see if it's actually scanning anything at all.
 
Back
Top