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!

cpanel, exim, static routes and spam filtering

Discussion in 'E-mail Discussion' started by tonix, Feb 4, 2014.

  1. tonix

    tonix Registered

    Joined:
    Feb 4, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hi, guys!

    i got this simple scenario:

    cpanel WHM 11.40.1 (build 9), some domains in /etc/staticroutes, whose mail need to be forwarded to remote smtp.

    Now, the configuration:

    static_route:
    driver = manualroute
    transport = remote_smtp
    route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}


    works perfectly as expected, but when i need to filtering spam before routing mail to remote smtp, an error appears in the exim_mainlog file (Something went very wrong during the exim configuration update.)

    As documented everywhere out there to filter mail before routing i add this

    condition = "${perl{checkspam}}"

    in the above configuration, so now i have:

    static_route:
    driver = manualroute
    condition = "${perl{checkspam}}"
    transport = remote_smtp
    route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}


    thanks for your support!

    tonix
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,407
    Likes Received:
    1,953
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I have moved this to the "Email Discussions" forum where you might receive more user feedback on this particular issue.

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

    tonix Registered

    Joined:
    Feb 4, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    thanks a lot!
     
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