I am trying to setup a mail sever to use spamassasin form spam scanning and it works just fine. but only for locally delivered emails and ones originating from the server. my current setup is this
 
sendmail 8.11.6
procmail as the mta
redhat linux
 
I have a few domains that I want to scan thier email and then forward thier email to a different email server for them to pickup. It forwards it just fine but it doesn't scan the mail of this nature, only ones being delivered locally.
 
My procmailrc file has this in it
DROPPRIVS=yes
 
:0fw
| /usr/bin/spamc
 
and I am forwarding email for the domains that im acting as a mail gateway for via the sendmail file /etc/mail/mailertable
The entries look like this.
 
somedomain.com relay:[216.12.213.XXX]
 
So email is accepted and then relayed to the server listed in the brackets for that domain. (but its not getting scanned first which is why im writing this)
 
Any help would be appreciated. I think that since its using this sendmail file to relay that its not getting to procmail to be piped to spamassassin. but how can i fix that?
 
Brian

Reply via email to