[exim] How to permit unqualified senders once authenticated

Etusivu
Poista viesti
Vastaa
Lähettäjä: Adam Nielsen
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] How to permit unqualified senders once authenticated
Hi all,

New issue, now I have SMTP AUTH figured out. When one of my network
devices sends e-mail, it uses an unqualified name (just the hostname
with no '@' or domain.) Exim rejects this as it does not allow
unqualified addresses from remote hosts.

The debug logs say this:

SMTP<< mail FROM:<mydevice> size=19029
SMTP>> 501 <mydevice>: sender address must contain a domain

  LOG: smtp_syntax_error MAIN REJECT
    unqualified sender rejected: <mydevice> H=mydevice.mydomain


It looks like there are two options "sender_unqualified_hosts" and
"recipient_unqualified_hosts" that could permit this, however from what
I can make out you can only specify hostnames for both options. Since
my troublesome device is behind a dynamic IP, there's no hostname that
can be specified.

It is of course authenticating with Exim so it is permitted to send
mail, so I am trying to figure out how to allow unqualified senders
over authenticated connections. Either allowing these addresses or
having Exim qualify them would be fine, but I can't quite see how to
manage this.

There seems to be a "submission" control option to make Exim behave
like the connection is coming from an MUA (where unqualified senders
are apparently permitted), so I tried adding this to my config:

  acl_smtp_mail = acl_check_mail
  acl_check_mail:
    accept  
      authenticated = *
      control = submission/domain=mydomain


I figured the MAIL ACL is where it belongs since the Exim logs above
indicate failure immediately after the SMTP MAIL FROM command.
Unfortunately, adding this ACL does not do anything and the message is
still rejected for the same reasons.

What am I missing?

Many thanks,
Adam.