This is a discussion on reject_unlisted_recipient within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hello all, Many thanks for all your efforts and a great peace of software. I am trying to get reject_unlisted_recipient ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello all,
Many thanks for all your efforts and a great peace of software. I am trying to get reject_unlisted_recipient to function. I've put it in smtpd_recipient_restrictions but with my current setup, the initial smtpd instance that listens on port 25 just send it right to the content filter without first checking virtual_alias_maps or virtual_mailbox_maps. See postconf -n output and master.cf config below. Any assistance greatly appreciated! alias_maps = mysql:/etc/postfix/aliases.cf biff = no body_checks = regexp:/etc/postfix/body_checks command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp:[127.0.0.1]:10025 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 disable_vrfy_command = yes header_checks = pcre:/etc/postfix/header_checks home_mailbox = Maildir/ html_directory = no inet_interfaces = $myhostname, localhost, smtp.mydomain.dom local_recipient_maps = $alias_maps $virtual_mailbox_maps mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_domains = mydomain.dom message_size_limit = 30480000 mydestination = $myhostname, localhost, localhost.$myorigin, localhost.mydomain.dom mydomain = $myhostname myhostname = mail.mydomain.dom mynetworks = $config_directory/mynetworks newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /etc/postfix/README_FILES recipient_canonical_maps = relay_domains = $mydestination, mysql:/etc/postfix/relay_domains.cf relocated_maps = mysql:/etc/postfix/relocated.cf sample_directory = /etc/postfix/samples sender_canonical_maps = sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtp_bind_address = x.x.x.x smtpd_client_restrictions = cidr:/etc/postfix/clients.cidr smtpd_data_restrictions = reject_unauth_pipelining smtpd_helo_required = yes smtpd_helo_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/pop-before-smtp reject_invalid_hostname, check_client_access mysql:/etc/postfix/client_access.cf reject_non_fqdn_hostname, smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, check_recipient_access mysql:/etc/postfix/pre_recipient.cf permit_mynetworks, check_client_access hash:/etc/postfix/pop-before-smtp reject_unauth_destination, check_sender_access mysql:/etc/postfix/sender_access.cf check_client_access mysql:/etc/postfix/client_access.cf check_recipient_access mysql:/etc/postfix/recipient_access.cf reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_pipelining, reject_rbl_client relays.ordb.org, reject_rbl_client sbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client relays.visi.com, reject_rbl_client blackholes.mail-abuse.org, reject_rbl_client list.dsbl.org, reject_unlisted_recipient, permit soft_bounce = no transport_maps = mysql:/etc/postfix/transport.cf unknown_address_reject_code = 550 virtual_alias_maps = mysql:/etc/postfix/virtual.cf virtual_gid_maps = static:999 virtual_mailbox_base = /var/maildir virtual_mailbox_maps = mysql:/etc/postfix/vmailbox.cf virtual_uid_maps = static:999 ***** mater.cf ***** smtp inet n - n - - smtpd -o relay_domains= -o virtual_alias_maps=mysql:/etc/postfix/virtual.cf,mysql:/etc/postfix/relay_domains.cf pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup cleanup2 unix n - n - 0 cleanup -o header_checks=pcre:/etc/postfix/header_checks -o body_checks=regexp:/etc/postfix/body_checks qmgr fifo n - n 300 1 qmgr rewrite unix - - n - - trivial-rewrite rewrite2 unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce flush unix n - n 1000? 0 flush smtp unix - - n - - smtp showq unix n - n - - showq error unix - - n - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp localhost:10026 inet n - n - - smtpd -o content_filter= -o smtpd_helo_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,rej ect -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_restriction_classes= -o strict_rfc821_envelopes=yes -o mynetworks=127.0.0.0/8 -o myhostname=localhost -o mydestination=mail.mydomain.dom,localhost,localhos t.mydomain.dom -o cleanup_service_name=cleanup2 -o notify_classes=protocol,resource,software relay unix - - n - - smtp proxymap unix - - n - - proxymap trace unix - - n - 0 bounce verify unix - - n - 1 verify |