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!

Setup remote spam filtering on in Exim

Discussion in 'Workarounds and Optimization' started by holodyn, Jun 16, 2015.

  1. holodyn

    holodyn Registered

    Feb 6, 2008
    Likes Received:
    Trophy Points:
    We fight with this every time, so this is as much being shared as is place for us to reference this in the future.

    These instructions will guide you through the configuration of a server to support remote spam filtering for selective clients. These instructions assume root access to the server, and the use of Exim mail handler.

    In our shared hosting environments we use the following to setup SpamTitan, however this should work for any similar configuration requirement.

    Step 1: Setup Remote Handler

    Setup Spamtitan
    Add domain under Settings > Relay Settings (one for each domain)
    Add user login under Anti-Spam Engine > Admins (one for each domain - Domain Administrator - Full Access)

    DNS Setup MX Records for DNS
    Remove Old MX - 14400 - IN - MX - 0 -
    Add New MX - 14400 - IN - MX - 0 - - 14400 - IN - MX - 10 -
    Set Email Routing option to
    "Local Mail Exchanger"

    Testing the server is forwarding (before Step 2)
    Send email from Gmail to Server - once received should have spam titan in header

    Testing that Server is Blocking direct email (after Step 2) (should work) (should block)

    Step 2: For Single Domain on Server using SpamTitan (Option A)

    Adding new client to existing setup
    Add new client domain to the domainlist file
    Restart Exim

    Creating SpamTitan Exim Setup for the First Time
    Create Client Rule Files

    Add Rules in Exim Advanced Editor
    Add Setting - domainlist
    domainlist spamtitan_domainlist
    Add Setting - hostlist
    hostlist spamtitan_hostlist = /etc/exim/spamtitan_hostlist : /etc/localdomains : net-iplsearch;/etc/relayhosts
    Add Code in Section: custom_end_recipient
    !authenticated = *
    !hosts = +spamtitan_hostlist
    domains = +spamtitan_domainlist
    log_message = "SpamTitan Relay Block from $sender_fullhost"
    message = "Please use the proper domain MX record"
    #1 holodyn, Jun 16, 2015
    Last edited by a moderator: Jun 16, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Thank you for taking the time to write this guide. I've moved this thread to our "Workarounds" forum.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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