Dear all, I'm trying to allow our Postfix server to only send e-mails to a few specified e-mail addresses, i.e., a whitelist.
I've added the following to main.cf *smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access, reject* /etc/postfix/recipient_access contains: *t...@test.com OK* I run *postmap /etc/postfix/recipient_access* then *postfix reload* However, e-mails all addresses are delivered, and not just to t...@test.com. *postfix -n* gives *alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases allow_percent_hack = no broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME mailbox_size_limit = 0 mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, hilljaa5.miniserver.com newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES sample_directory = /usr/share/doc/postfix-2.6.6/samples sender_bcc_maps = hash:/etc/postfix/bcc sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access, reject smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_security_options = noanonymous unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/virtual * I'm not sure what log you want as I can't find a list of what would be needed. Does anyone have any suggestions, please, as to what I'm doing wrong. Thanks, Stephen -- View this message in context: http://postfix.1071664.n5.nabble.com/check-recipient-access-not-working-tp56950.html Sent from the Postfix Users mailing list archive at Nabble.com.