[Exim] remote host address is the local host

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Lukasz Karbowski
Data:  
Para: exim-users
Asunto: [Exim] remote host address is the local host
On 23 June 2002, Lukasz Karbowski said:
> i'm sending e-mails via exim's command line, exim is not running as
> daemon. all i want is filter, that checks the recipient,
> if it has a domain name that is the local domain, then
> redirects message to another smtp running on some port as daemon.
> ofcourse if the recipient doesn't have domain name that matches with
> local domains, then the mail is send via remote_smtp.


Repeat after me: The system filter is not for routing. Routers are for
routing.

You need a router that activates when the conditions you specified are
true, and then passes the message to a transport that does what you
want. Eg. in the routers section of your config file:

   funky_local_router:
     driver = manualroute
     domains = +local_domains
     transport = remote_smtp_alt_port
     route_list = * local.mail.server byname


and in the transports section:

   remote_smtp_alt_port
     driver = smtp
     port = 2525  # or whatever


That assumes you have a domain list called local_domains defined, of
course. Completely untested, YMMV, if it breaks you get to keep both
pieces, etc.

         Greg


------------------------------------
thx..
ok, it works (this router), but in exim's mainlog is the line deffering
sending e-mail to host listed in route_list, saying:
"remote host address is the local host" and froze the message.
of course, that smtp is running at the same host where exim is, but
on another port.

(domainlist local_domains = my.domain : my.second.domain :
my.another.domain)

when i erase local_domains, leaving only: "local_domains = "
then in mainlog i see that "lowest numberred MX record points to
localhost" and the message is frozen too.


i've added "no_verify" option to router, but it not solves the problem.
is there any router's option that stops checking host's local ?