Thanks very much for your help.
Do the directives you give below work if the mta is accepting incoming mail
too?
----- Original Message -----
From: "Noel Jones" <[email protected]>
To: "John G. Heim" <[email protected]>; <[email protected]>
Sent: Friday, March 13, 2009 11:58 AM
Subject: Re: reject outgoiong mail not from domain of host
John G. Heim wrote:
I want to make sure that any messages my system sends out always has a
sender of [email protected]. 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
As an added bonus you could add reject_unlisted_sender just before the
reject to make sure the sender address exists.
-- Noel Jones