On Fri, Dec 11, 2009 at 10:42:46AM -0800, Umar Draz wrote:

> I have attach my main.cf file please read this file and tell where
> and what line should I insert.
> 
> I'll wait your kind response.

Unfortunately, nobody on this list is in a position to be *that* kind. We
can explain how various Postfix work, but you'll have to make the effort
to understand these, and modify your main.cf based on that understanding.

You'll need to understand the impact of the various configuration choices
on your users. We cannot take that responsibility for you.

The "reject_sender_login_mismatch" directive, rejects mail when SASL
authenticated users are not using the associated login identity defined
in "smtpd_sasl_login_maps"

    http://www.postfix.org/postconf.5.html#reject_sender_login_mismatch
    http://www.postfix.org/postconf.5.html#smtpd_sender_login_maps
    http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions

For example,

    smtpd_sender_restrictions =
            # Clients trusted by IP alone may use any sender address.
        permit_mynetworks,
            # [Optional] Don't be pedantic when the mail is "inbound".
        permit_auth_destination,
            # SASL authenticated clients must use associated sender address
        reject_sender_login_mismatch

There are lots of other ways of doing this, you'll have to find the way
that works best for you.

-- 
        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:majord...@postfix.org?body=unsubscribe%20postfix-users>

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