On 3/24/2012 9:09 PM, Allan Wind wrote:
On 2012-03-24 21:03:59, Reid Thompson wrote:
On 3/24/2012 8:44 PM, Allan Wind wrote:
As stated you may want to look into check_sender_access:
<http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions>
so if I configure
/etc/postfix/access
with
[email protected] OK
[email protected] OK
[email protected] OK
[email protected] OK
[email protected] OK
and /etc/postfix/main.cf
with
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access, reject
will that block all email except that from the listed addresses?
Try it out and let us know it goes. Here is how you can test it:
telnet $mailserver 25
ehlo $client_host_name
mail from:<$sender>
rcpt to:<$to>
data
anything goes here
.
Test with both senders that are allowed and ones that are not,
and try both local and non-local to addresses.
/Allan
tested from remote host by mutt -x -s test [email protected]
Mar 24 21:13:09 endpoint postfix/smtpd[2946]: connect from
fw-corp.domain1.com[xxx.xxx.xxx.xxx]
Mar 24 21:13:09 endpoint postfix/smtpd[2946]: NOQUEUE: reject: RCPT from
fw-corp.domain1.com[xxx.xxx.xxx.xxx]: 554 5.7.1
<[email protected]>: Relay access denied;
from=<[email protected]> to=<[email protected]>
proto=ESMTP helo=<raker2.domain1.com>
Mar 24 21:13:09 endpoint postfix/smtpd[2946]: NOQUEUE: reject: RCPT from
fw-corp.domain1.com[xxx.xxx.xxx.xxx]: 554 5.7.1
<[email protected]>: Relay access denied;
from=<[email protected]> to=<[email protected]>
proto=ESMTP helo=<raker2.domain1.com>
Mar 24 21:13:09 endpoint postfix/smtpd[2946]: disconnect from
fw-corp.domain1.com[xxx.xxx.xxx.xxx]