On 25/05/15 15:28, David Byte wrote:
> amavis:
> driver = manualroute
> # Do NOT run if received via 10025/tcp or if already spam-scanned
> # or if bounce message ($sender_address="")
> condition = "${if or {{eq {$interface_port}{10025}} \
> {!eq {$local_part@$domain}{lsearch;/etc/exim.mg2}}\
> {eq {$received_protocol}{spam-scanned}}\
> {eq {$received_protocol}{local}}\
> {eq {$sender_address}{}} \
> }{0}{1} }"
> transport = amavis
> route_list = "* mailguard2.mydomain.com byname"
> self = send
You don't say what it isn't doing right.
Running sample mails through with debug enabled
(on the commandline) gives insight into the processing flow.
--
Cheers,
Jeremy