On Thu, Aug 14, 2014 at 02:45:33PM -0700, Quanah Gibson-Mount wrote:
> >235 2.7.0 Authentication successful
> >mail from:[email protected]
> >250 2.1.0 Ok
> >rcpt to:[email protected]
> >553 5.7.1 <[email protected]>: Sender address
> >rejected: not owned by user [email protected]
> >
> >So I'll need to debug that next. :)
>
> Ok, this is because I have (among other things)
>
> smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
>
> but nothing set for:
> smtpd_sender_login_maps
>
> It does seem odd to me, that with it set to reject mismatched logins, it
> rejects a matching login when no maps are defined.
Your notion of "matching" is too naive. Mere coincidence of email
address and SASL login name is not a "match". A match is a lookup
result from a table that returns the SASL login as one of the owner
logins.
If you like, you could try:
main.cf:
smtpd_sender_login_maps = pcre:${config_directory}/identity.pcre
identity.pcre:
# Sender addres as SASL user is automatically an owner
/^(.+)$/ ${1}
--
Viktor.