On Tue, Sep 16, 2008 at 07:17:40PM +0200, Henrik Friedrichsen wrote:

> Hey,
> I have set up a postfix server on FreeBSD 7.0. Almost everything works fine, 
> but there
> are a few issues I need to sort out:
> 
> 1) I want postfix to enforce the sender domain to one of ~3 domains. If the 
> sender address domain
>    set by the client is in the list postfix uses, use it, if not, enforce a 
> default one.

Would it not be better to reject the mail? How do you that:

        [EMAIL PROTECTED]

should be

        [EMAIL PROTECTED]

instead? Or are you looking to masquerade sub-domains, or something else
more sensible?

> 2) I want postfix to enforce the sender user to the username the mail
>    originated from. Mutt users on my servers shouldn't be able to set
>    the sender username to someone else's, just to their own.
> 
> Is this possible? Help is appreciated!

If mutt submits via SMTP yes, if mutt does local submission, no. The
Postfix sendmail(1) compatibility layer does not impose restrictions on
"-f sender" arguments, nor should it, if for example users ".procmail"
rules forward messages (as losing the envelope sender causes mail
loops, ...)

For SMTP with SASL, you can use smtpd_sender_login_maps. This really
addresses SMTP MUA use cases, not shell users with mutt.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[EMAIL PROTECTED]>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to