On Sun, 2013-09-01 at 07:32:57 -0700, warpspasm wrote: > I would like to use reject_unlisted_sender to allow only one From: address > to be used to send email from my mail server. But it is not working, it > seems to still just be allowing all From: addresses. Here is the output of > what happened:
You misunderstand how reject_unlisted_sender works. See: http://www.postfix.org/postconf.5.html#reject_unlisted_sender http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_sender > Sep 1 08:00:52 xxx postfix/pickup[31603]: A696A34E481: uid=33 > from=<ran...@yyy.com> > Sep 1 08:00:52 xxx postfix/cleanup[31608]: A696A34E481: > message-id=<5222f434a1...@yyy.com> > Sep 1 08:00:52 xxx postfix/qmgr[31604]: A696A34E481: > from=<ran...@yyy.com>, size=776, nrcpt=1 (queue active) > Sep 1 08:00:53 xxx postfix/smtp[31610]: A696A34E481: > to=<u...@gmail.com>, [ .. ] > --- I would have expected to see a 550 or something else from postfix/smtp > --- Any ideas what I have done wrong? [ .. ] > smtpd_sender_restrictions = check_sender_access > hash:/etc/postfix/listed_senders reject_unlisted_sender Instead, try: # main.cf check_sender_access hash:/etc/postfix/listed_senders, reject -- Sahil Tandon