Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail gateway - spamassassin help needed

Status
Not open for further replies.

ndnalibi

MIS
Nov 12, 2002
61
US
Hi All,

I have sendmail v 8.13.4-2 running on a fedora core 4. I have been running email through this server for the last 6 months on an unused domain. Now I'm setting it up as a gateway which will forward mail to our new exchange server.

I also would like to run the incoming mail through spamassassin before forwarding it to the exchange server.

I have gotten all of the mailertable, virtusertable, access, etc. files needed written and mailflow is working properly.

I am having loads of problems getting procmail and spamassasin working to filter the mail.

Here is my /etc/procmailrc file:

Code:
# global procmail rules

LOGFILE=var/log/promail.log
NL="
"

LOGABSTRACT=no

#send mail through spamassassin
:0 fw
* < 256000
| /usr/bin/spamassassin  

:0
! -oi -f "$@"

I've also tried spamc -f

I've read so many how-tos and suggestions on how this should be done. Unfortuately most are using local mail delivery.

I also had this in my sendmail.mc
Code:
LOCAL_CONFIG
CPprocmail

LOCAL_RULE_0
R$*<@$=w>$*             $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail.>$3
R$*<@$=w.>$*            $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail.>$3
R$*<@$*.procmail.>$*    $1<@$2.>$3

Any help or suggestions (I'm not sold on procmail) would be appreciated.
Bill
 
Update:

I installed openprotect, which is an open source package including mailscanner, spamassassin, clamav and Razor2.

So far so good. Reletively painless(but long) install. Seems to be easy on my server hardware.


Now I get to play...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top