Noel Jones a écrit :
> John G. Heim wrote:
>> I want to make sure that any messages my system sends out always has a
>> sender of someb...@math.wisc.edu. I am looking at configuring the
>> smtpd_sender_restrictions directive.
>>
>> smtpd_sender_restrictions =
>> hash:/etc/postfix/all_addresses_at_math_wisc_edu,reject
>>
>> Am I close?
>>
>>
> 
> That would work if this is a MSA, ie. used for mail submission only and
> doesn't accept mail from the internet.  And you should use
> check_sender_access hash:... rather than letting postfix use the default
> lookup key.
> 
> For a general purpose mail server you could preface it with
> permit_auth_destination, something like:
> smtpd_sender_restrictions =
>   permit_auth_destination
>   check_sender_access hash:/etc/postfix/my_domains
>   reject
> 

or simply:

smtpd_sender_restrictions =
        check_sender_access hash:/etc/postfix/my_domains
        reject_unauth_destination


> As an added bonus you could add reject_unlisted_sender just before the
> reject to make sure the sender address exists.
> 
>    -- Noel Jones

Reply via email to