filtering mail before forwarding

nickp666

Well-Known Member
Jan 28, 2005
769
2
168
/dev/null
Installing mailscanner (chirpys script is good) and configuring it to scan FromOrTo: then set the domains mailscanner config to delete all spam high and low scoring will work.

The only downsides with this are you will be rejecting all spam tagged mail to and from that domain (false positive or not) and if your users send mail via your server that is suspected as being spam this will also be silently rejected. To date its the only answer I can find to stop forwaders sending on spam


I can provide a howto if needed
 
Last edited:

alan-tor

Active Member
Dec 7, 2004
28
0
151
So are you saying that it's not possible for me to use cPanel's SpamAssassin to scan and tag the messages and then the cPanel/Exim mail filters to filter the mail, all before it is forwarded via the cPanel mail forwarders?

I already use SpamAssassin and cPanel/Exim mail filters for mail accounts (mailboxes) on the system. As such, it would be the most useful if the same tools could be applied to mail forwarders, so I don't have to install and learn different tools.

I had thought that this thread was about using cPanel's SpamAssassin and cPanel/Exim mail filters for mail forwarders, but the recent post suggested that wasn't actually the case. We don't want to have all mail for an entire domain forwarded to a single mail forwarder. Each mail user would have his own target address where he wants his mail forwarded to.
 

nickp666

Well-Known Member
Jan 28, 2005
769
2
168
/dev/null
So are you saying that it's not possible for me to use cPanel's SpamAssassin to scan and tag the messages and then the cPanel/Exim mail filters to filter the mail, all before it is forwarded via the cPanel mail forwarders?
The filters are only active for local delivery, and forwards happen prior to that stage, it isnt simple to change that order
 

alan-tor

Active Member
Dec 7, 2004
28
0
151
The filters are only active for local delivery, and forwards happen prior to that stage, it isnt simple to change that order
So, for clarification for myself and others who will see this thread, what was this thread about? From the way it began, I thought it was about a solution to filtering prior to forwarding.
 

SageBrian

Well-Known Member
Jun 1, 2002
416
2
318
NY/CT (US)
cPanel Access Level
Root Administrator
Use Chirpy's Mailscanner
http://www.configserver.com

I've got the mail getting scanned before being forwarded.

My problem stems from being the filter for their. The customer doesn't even realize how much spam I'm blocking for them. They think their ISP or special software on their computer is great. And I just had someone decide to cancel their service with me.
1 day of 'no filtering' on my end changed their mind. :)