[exim] route mail to remote host

2014-06-30 Thread Jason Cornell
Hello, I want to reroute emails from either a specific external source IP or $local_part to a remote host on an alternate port. I was originally looking at using manualroute as you are able to specify a transport with the different port number, but from what I can see I am only able to use

Re: [exim] route mail to remote host

2014-06-30 Thread Graeme Fowler
On Mon, 2014-06-30 at 13:40 +0100, Jason Cornell wrote: I am probably missing something but from what I have read so far it is not 100% clear. When the message arrives, set an ACL variable for that message based on the logic you need - you may need one in both the SMTP and non-SMTP ACLs for

Re: [exim] route mail to remote host

2014-06-30 Thread Dennis Davis
On Mon, 30 Jun 2014, Graeme Fowler wrote: From: Graeme Fowler gra...@graemef.net To: exim-users@exim.org Date: Mon, 30 Jun 2014 14:16:02 Subject: Re: [exim] route mail to remote host On Mon, 2014-06-30 at 13:40 +0100, Jason Cornell wrote: I am probably missing something but from what I

Re: [exim] route mail to remote host

2014-06-30 Thread Graeme Fowler
On Mon, 2014-06-30 at 14:58 +0100, Dennis Davis wrote: Probably won't work for multiple recipients. Which is why I said to set it at SMTP time, where $local_part *is* available. Subsequent condition tests are then done against the existence of the set variable rather than inbound message

[exim] Misleading message clamd: failed to connect to 127.0.0.1: couldn't connect to any host: Connection refused ?

2014-06-30 Thread Marcin Mirosław
Hi! I have defined connection to av_scanner as below: av_scanner = clamd:127.0.0.1 3310 : 192.168.254.10 3310 On localhost clamav is turned off. When I senr eixar test I got in exim_main.log: # exigrep 1X1cPB-0001CM-E1 /var/log/exim/exim_main.log +++ 1X1cPB-0001CM-E1 has not completed +++

Re: [exim] route mail to remote host

2014-06-30 Thread Ferenc Wagner
Dennis Davis dennisdavis+exim-us...@fastmail.fm writes: Probably won't work for multiple recipients. From the manual, Chapter 11 - String Expansions: $local_part When an address is being routed, or delivered on its own, this variable contains the local part. When a number of addresses

Re: [exim] route mail to remote host

2014-06-30 Thread Always Learning
On Mon, 2014-06-30 at 14:16 +0100, Graeme Fowler wrote: Example: acl_smtp_rcpt: some stuff warn set acl_m_specialroute = specialroute condition = ${if eq{$local_part}{fred}} and in the router: specialroute: driver = manualroute domains = +local_domains transport