cpanel, exim, static routes and spam filtering

tonix

Registered
Feb 4, 2014
2
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

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

Thank you.