Jeremy Hansen [2016-10-03 01:24 -0700] :

> I’m trying to wrap my head around what the issue is.  I realize
> there’s a mismatch but I’m having trouble understanding exactly
> what the mismatch is or where to fix it.
> 
> My smtpd_sender_login_maps=hash:/etc/postfix/valiases contains:
> 
> @foo.com                      [email protected]
> 
> so it’s a catchall for the foo.com domain to forward all mail
> to a local unix account user
> 
> If I remove -o
> smtpd_sender_restrictions=reject_sender_login_mismatch all
> works fine, but I want to understand what I’m doing wrong.

I get the impression that you misunderstood what
reject_sender_login_mismatch and smtpd_sender_login_maps are
for. They are used to prevent users not to send from addresses
that they do not own.

For example, if I want to send email from [email protected] from my
account [email protected], I'd need the following entry in
smtpd_sender_login_maps:

  [email protected]   [email protected]

If I use reject_sender_login_mismatch without the above entry,
I am only allowed to send from [email protected] when using
[email protected] as login. Otherwise, I would get the error message
you got.

    Niklaas

Reply via email to