From: mouss (no email)
Date: Fri May 16 2008 - 05:12:32 EDT
AlxFrag wrote:
>
> All i want to do is to relay emails from users that are SASL
> authenticated.
>
> It is also desired to relay emails from users with the correct "from
> address".
>
> With the current configuration when a user tries to send an email
> using a different username that he has used to login, he gets the error:
>
> Failed to add recipient: test at mydomain [SMTP: Invalid response code
> received from server (code: 553, response: 5.7.1 <test1 at mydomain>:
> Sender address rejected: not owned by user test)]
>
> The problem appears when a user has activated a forwarding mechanism
> to a different mail server and forwarded messages are sent to my server.
Enforcing authentication breaks forwarding ;-p
There is nothing you can do about this except reject the forwarded mail
or accepte non authenticated mail...
suppose user A sends mail to an external account which forwards to user
B (both A and B are in your domains). then your server will get mail
with A as sender from an external MTA (which won't auth because). and
the problem is related to B setup, so you can't just exclude A from your
sender login maps.
you can however accept unauthenticated mail from a list of MTAs, but
that may be a lot of work...
>
> I don't know if it is possible with postfix to:
>
> 1) Relay emails only from sasl authenticated users,
> 2) force the users to use their real username for sending emails,
> 3) accept forwarded messages from other mail servers.
|
|
|