Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Disable Outgoing Spam Filtering for One IP or User

Discussion in 'E-mail Discussion' started by GeekOnTheHill, Oct 27, 2017.

Tags:
  1. GeekOnTheHill

    GeekOnTheHill Member

    Joined:
    Feb 16, 2015
    Messages:
    10
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I would like to selectively disable all outgoing spam filtering for my own account or my own IP. I am the server admin.

    I have disabled outgoing spam filtering for my (static) IP and whitelisted it everywhere I can find in the Exim configuration, but my outgoing mail is still being scanned, and mail identified as spam is being bounced back.

    The reason I want to disable spam filtering from my IP or user account is so I can forward spam that I receive to SpamCop. I can't do that because the spam filtering is correctly identifying the spam as spam.

    I have been forwarding spam to SpamCop through one of my off-server mail providers for about 10 years, but they recently stopped allowing it.

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You can modify the global SpamAssassin configuration file to whitelist the domain name. It's located at:

    Code:
    /etc/mail/spamassassin/local.cf
    Once you make the changes, restart SpamAssassin with the following command:

    Code:
    /scripts/restartsrv_spamd
    Information on the specific rules available for whitelisting are available at:

    Mail::SpamAssassin::Conf - SpamAssassin configuration file

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. GeekOnTheHill

    GeekOnTheHill Member

    Joined:
    Feb 16, 2015
    Messages:
    10
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Thank you. I'll give that a try. I was unaware that that the local.cf file affected outgoing scanning, as well.
     
  4. GeekOnTheHill

    GeekOnTheHill Member

    Joined:
    Feb 16, 2015
    Messages:
    10
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Okay, that worked. What I did was whitelist the recipient using this line in local.cf:

    Code:
    all_spam_to *@spam.spamcop.net
    I whitelisted the recipient and used the wildcard, rather than whitelisting myself as a sender, in case any of my clients are also Spamcop reporters.

    Thank again.
     
    cPanelMichael likes this.
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see you were able to find a suitable solution. Thank you for sharing the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice