The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exim Relay + Spam Filtering

Discussion in 'E-mail Discussions' started by bigg2, May 10, 2013.

  1. bigg2

    bigg2 Registered

    Joined:
    Feb 13, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I would like to say thank you very much for this code it works well for forwarding.

    But i would like it to be able to be scanned by spamassassin, is there any code to be able to do this?

    Regards
    Ben


    1. Type the following when logged in via SSH

    Code:
    pico /etc/staticroutes
    2. Add entries in the format:

    Code:
    domainname.com: target.mail.server
    3. Press CTRL-O to save the file, then CTRL-X to exit the pico editor.

    4. In WHM, under 'Service Configuration' choose 'Exim Configuration Editor', then click 'Switch to Advanced Editor'.

    5. Scroll down to the 'ROUTERS CONFIGURATION' section, and in the white space underneath, add the following:

    Code:
    static_route:
    driver = manualroute
    condition = "${perl{checkspam}}"
    transport = remote_smtp
    route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}
    6. Scroll to the bottom of the page and click 'Save' - Exim will automatically restart.
     
  2. digitalmahdi

    digitalmahdi Member

    Joined:
    Jan 31, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    the rest of your mails are being relayed by the server?
    any idea how to set a default smarthost for the rest of domains which are not listed on this file?
     
Loading...

Share This Page