[exim] Sending mail directly to a smarthost

Etusivu
Poista viesti
Vastaa
Lähettäjä: Alex Carver
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Sending mail directly to a smarthost
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