postfix-users May 2012 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Force smtp authentication

Re: Force smtp authentication

From: Wietse Venema <wietse_at_nospam>
Date: Wed May 16 2012 - 12:16:33 GMT
To: Postfix users <postfix-users@postfix.org>

Edward Hari Purwonugroho:
> Dear all,
>
> Can anyone help me, how to force smtp authentication only for spesific
> network client sender ?

Dit you mean: Sender email address?

/etc/postfix/main.cf:
    smtpd_sender_restrictions =
        check_sender_access hash:/etc/postfix/sender_access

/etc/postfix/sender_access:
    # Execute "postmap hash:/etc/postfix/sender_access" after editing this file.
    user1@example.com reject_sender_login_mismatch

        Wietse