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.

cpanel, exim, static routes and spam filtering

Discussion in 'E-mail Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,852
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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