Re: Exim4 (mis)configuration for smarthost (Was: Re: How to disable TLS in exim4 client part?)
On Tue, 03 Jan 2012 22:09:33 +0100
"Alois Mahdal" <Alois.Mahdal@zxcvb.cz> wrote:
> On Tue, 03 Jan 2012 21:30:22 +0100, Alois Mahdal
> <Alois.Mahdal.1-NDMAIL@zxcvb.cz> wrote:
>
> > It seems that exm4 does not rewrite addresses as I wish according to
> > /etc/exim4/email-addresses:
> > aloism@localhost: correct.sender@mydomain.cz
> > aloism@gebba.aloism.test.local: correct.sender@mydomain.cz
> > aloism@gebba: correct.sender@mydomain.cz
> > aloism: correct.sender@mydomain.cz
> > Neither of these lines work. But manual says:
> > (sender addresses) "...are rewritten for users that appear to
> > be in the local domain..."
> > and my domain (in resov.conf) is different from
> > gebba.aloism.test.local. Might this be the cause? That
> > "aloism@gebba.aloism.test.local" does not "appear to be in local
> > domain"?
> >
>
> Nope, blind silly human. :-D It's
>
> /etc/email-addresses
>
It's nice when it turns out to be easy, isn't it?
>
> Now it works: addresses rewritten, e-mails delivered! :-) (the gate
> does not seem to care about thing in "EHLO thing")
>
A smarthost won't be too fussy about an authenticated sender, but if
you send direct by unauthenticated SMTP, the receiving server certainly
will be. The HELO/EHLO will need to be a hostname which can be resolved
to an IP address in public DNS. Not necessarily the sender's IP
address, but it won't do any harm if it is.
You may also get away with just a domain name in the HELO, if the
domain's DNS server [incorrectly] resolves this to an IP address.
Joe
Reply to: