Re: [exim] Sending mail directly to a smarthost

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dan_Mitton
Date:  
À: Alex Carver
CC: exim-users
Sujet: Re: [exim] Sending mail directly to a smarthost
The last router in the router section supports delivery to local users. Of
course, that means all routers before that must "fail" so that it gets
that far. The routers above the 'localuser' router should likely have:

domains = ! +local_domains

or something similar as a condition, so that they will be passed by. Does
this machine have multiple IP addresses and/or multiple names? You might
need to update the:

domainlist local_domains = @

to include other aliases:

domainlist local_domains = @ : mail.mydomain.com

If it is not something like that, maybe you could post the router section
of the configure file which might give some clues.

Dan



Sent by:        exim-users-bounces@???
To:     exim-users@???
cc:      (bcc: Dan Mitton/YD/RWDOE)
Subject:        [exim] Sending mail directly to a smarthost
LSN: Not Relevant
User Filed as: Not a Record


Hi everyone, I've got a problem that I can't seem to figure out. I'm
running exim on one of my local machines as a mail server for my own
domain which sits behind a NAT router. This part works fine and I can
send mail to and from outside domains to my own with no difficulty.

However, sometimes I want to send email directly to the local user on the
smarthost itself from one of the machines that uses the smarthost for
sending email. Mainly what I want to do is have my mail server aggregate
all of the mail generated by my internal machines (cron messages,
warnings, etc. that are normally sent to root on the local host) and keep
them on the mail server for me to read. The problem is I can't seem to
send an email to the smart host without it thinking that it should deliver
it remotely.

So, for example, if I send email from a machine sample.mydomain.com to my
own user me@???, it tries to forward it on and I end up with
an unroutable address error. In the case of the two Solaris machines,
both of them do the same thing.

Here's some log data, I'm sending from sample.mydomain.com to
me@??? (which resolves to the internal IP):

2008-09-21 13:25:01 1KhSg8-0006xm-UP <= me@???
H=sample.mydomain.com (mydomain.com) [10.0.0.11] P=esmtp S=780
id=200809211725.m8LHP0mK015498@???
2008-09-21 13:25:01 1KhSg8-0006xm-UP ** me@???: Unrouteable
address
2008-09-21 13:25:01 1KhSg9-0006xo-8S <= <> R=1KhSg8-0006xm-UP
U=Debian-exim P=local S=1583
2008-09-21 13:25:01 1KhSg8-0006xm-UP Completed
2008-09-21 13:25:01 1KhSg9-0006xo-8S => me <me@???> R=procmail
T=procmail_pipe
2008-09-21 13:25:01 1KhSg9-0006xo-8S Completed


Then this one is sent to just me@mail (no domain):

2008-09-21 13:29:09 1KhSk9-0006yV-0C <= me@???
H=sample.mydomain.com (mydomain.com) [10.0.0.11] P=esmtp S=768
id=200809211729.m8LHT8Rj015514@???
2008-09-21 13:29:09 1KhSk9-0006yV-0C ** me@???: Unrouteable
address
2008-09-21 13:29:09 1KhSk9-0006yX-Aa <= <> R=1KhSk9-0006yV-0C
U=Debian-exim P=local S=1571
2008-09-21 13:29:09 1KhSk9-0006yV-0C Completed
2008-09-21 13:29:09 1KhSk9-0006yX-Aa => me <me@???> R=procmail
T=procmail_pipe
2008-09-21 13:29:09 1KhSk9-0006yX-Aa Completed


And finally one sent to just my username (me) with no host at all

2008-09-21 13:30:41 1KhSld-0006yj-Bh <= me@???
H=sample.mydomain.com (mydomain.com) [10.0.0.11] P=esmtp S=755
id=200809211730.m8LHUfrN015519@???
2008-09-21 13:30:41 1KhSld-0006yj-Bh ** me@mail: Unrouteable address
2008-09-21 13:30:41 1KhSld-0006yl-Lv <= <> R=1KhSld-0006yj-Bh
U=Debian-exim P=local S=1534
2008-09-21 13:30:41 1KhSld-0006yj-Bh Completed
2008-09-21 13:30:41 1KhSld-0006yl-Lv => me <me@???> R=procmail
T=procmail_pipe
2008-09-21 13:30:41 1KhSld-0006yl-Lv Completed


Any ideas?

Thanks,

Alex




--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/