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:
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
Any help or suggestions (I'm not sold on procmail) would be appreciated.
Bill
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