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
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