Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    32

    Default spamassassin / cpanel filters not applied to incoming forwarded mail

    I have a domain - mydomain.com which is setup in cpanel..
    SpamAssassin runs fine on this domain, so when someone sends mail to "mail@mydomain.com", soamassassin deals with it accordingly...

    However - when someone sends mail to an offserver address (eg: mail@mydomain.net) which is then forwarded to my server address mail@mydomain.com, spamassassin does not appear to run on it.


    Likewise - cpanel mail filters work fine for emails that are sent direct to my server email address, but when emails are forwarded to this address from an off-server address, all mail filter rules are ignored....

    The result is that 90% of all my junk email comes from the off-server address(s) forwarded to my primary address. Unfortunatley its not practical to cease using these external addresses....

    Any ideas?... How can I get spamassassin and cpanel filters to check these emails?...

    Thanks for any advice

    Gary

  2. #2
    Member
    Join Date
    Jul 2002
    Posts
    32

    Default

    bump.

  3. #3
    Member
    Join Date
    May 2003
    Posts
    613

    Default

    Are you using the default catch-all (your main email account) to receive the forwarded messages?

  4. #4
    Member
    Join Date
    Jul 2002
    Posts
    32

    Default

    Yes... ultimately the main email account does receive all the forwarded mail.

    ie: I have gary@outsideaddress.com forwarded to gary@serverdomain.com , But gary@serverdomain.com is no more than a forwarder to the main account...

    (note that I have the default address set to :blackhole

    Does this help explain things?..
    Gary

  5. #5
    Member
    Join Date
    Feb 2003
    Posts
    165

    Default

    Gary,

    I've seen the same problem... For nearly a year... If the email uses a forwarder to an off server account, Spamassassin does not test it first.

    Until today, I was running an older exim.conf file, that worked, but I never knew why (nor did I have sufficient time to go line by line to figure it out.)

    This change fixes that problem, but I cannot guarantee it doesn't cause more problems. Maybe someone can but in here and add their two cents.

    In exim.conf, find:

    sa_localuser:
    driver = accept
    check_local_user
    headers_add="${perl{gensaheader}{$local_part}}"
    condition = "${perl{checkusersa}{$local_part}{$received_protocol}}"
    domains = ! lsearch;/etc/userdomains
    transport = local_sa_delivery


    In the "domains =" line, if you remove the "!" or the entire line altogether,
    then stop and restart exim, suddenly Spamassassin will parse off server
    forwards.

    Can someone say why? Or what this might break?

  6. #6
    Member
    Join Date
    May 2003
    Posts
    613

    Default

    Quote Originally Posted by nsdesign
    Yes... ultimately the main email account does receive all the forwarded mail.

    ie: I have gary@outsideaddress.com forwarded to gary@serverdomain.com , But gary@serverdomain.com is no more than a forwarder to the main account...

    (note that I have the default address set to :blackhole
    I don't get it. You have all mail forwarded to the main email account and yet your main email account is set to :blackhole:? Then how do you get your mail?

  7. #7
    Member
    Join Date
    Jul 2002
    Posts
    32

    Default

    Thanks ttremain ,

    I'll look into the suggested changes you have advised....

    Goodmove, to explain: I have my "default mail" set to blackhole... not my main account email address. The Default mail is for "unrouted mail"... Since the main account email IS a pop3 box, then it's fine.

    Cheers
    Gary

Similar Threads & Tags
Similar threads

  1. forwarded mail not filtered by SpamAssassin (Cpanel 11)
    By jamesbond in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-21-2008, 12:43 PM
  2. SpamAssassin Not Tagging Forwarded Emails
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-28-2005, 11:29 PM
  3. E-Mail Filters Aren't Being Applied to Backscatter Bounces
    By bmarston in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-22-2004, 04:19 PM
  4. Cpanel Mail Filters filters are bypassed
    By flash_me in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-05-2004, 04:32 AM
  5. SpamAssassin and Forwarded Mail
    By Brad in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-11-2002, 08:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube