Hi Everyone!

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:

main.cf

myhostname = xxx.yyy.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, yyy.com
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

smtpd_sender_restrictions = check_sender_access
hash:/etc/postfix/listed_senders reject_unlisted_sender

--- I added the last line, the rest of the config is the same as we
did it a few years ago.
--- I created the file /etc/postfix/listed_senders

listed_senders (contents of file)

notificati...@yyy.com OK

--- I issued:
postmap hash:/etc/postfix/listed_senders

--- listed_senders.db has been created
--- But it is not working, postmap still delivers email for any From:
address

Sep  1 08:00:28 xxx postfix/master[31450]: terminating on signal 15
Sep  1 08:00:44 xxx postfix/master[31597]: daemon started --
version 2.7.1, configuration /etc/postfix
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>,
relay=gmail-smtp-in.l.google.com[173.194.79.26]:25, delay=0.86,
delays=0.01/0.01/0.13/0.71, dsn=2.0.0, status=sent (250 2.0.0 OK
1378022453 pn6si5876836pbb.21 - gsmtp)
Sep  1 08:00:53 xxx postfix/qmgr[31604]: A696A34E481: removed

--- I would have expected to see a 550 or something else from postfix/smtp
--- Any ideas what I have done wrong?
--- Some more diagnostics:

root@xxx:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = loopback-only
mailbox_size_limit = 0
mydestination = localhost, yyy.com
myhostname = xxx.yyy.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_sender_restrictions = check_sender_access
hash:/etc/postfix/listed_senders reject_unlisted_sender
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes

Thank you, any ideas about how to move forward would be greatly appreciated!




--
View this message in context: 
http://postfix.1071664.n5.nabble.com/reject-unlisted-sender-not-working-tp60979.html
Sent from the Postfix Users mailing list archive at Nabble.com.

Reply via email to