Hello, I use the reject_unlisted_recipient, but when I send an email to an unlisted recipient, the mail is still sent
main.cf # postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases always_add_missing_headers = yes append_dot_mydomain = no biff = no canonical_maps = hash:/etc/postfix/relais/canonical_listes config_directory = /etc/postfix default_transport = smtp header_checks = regexp:/etc/postfix/header_checks inet_interfaces = all inet_protocols = ipv4 local_header_rewrite_clients = permit_mynetworks message_size_limit = 10240000 mydestination = sympa-2.sipr.ucl.ac.be localhost.sipr.ucl.ac.be localhost myhostname = sympa-2.sipr.ucl.ac.be mynetworks = 127.0.0.0/8 130.104.5.0/26 130.104.5.64/26 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relay_domains = hash:/etc/postfix/relais/relay_domains relay_recipient_maps = hash:/etc/postfix/relais/transport hash:/etc/postfix/relais/virtual_listes hash:/etc/postfix/relais/canonical_listes hash:/etc/postfix/relais/virtual_relais hash:/etc/postfix/relais/virtual_google relay_transport = smtp smtp_generic_maps = hash:/etc/postfix/generic smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_client_restrictions = permit_mynetworks, reject smtpd_recipient_restrictions = reject_unlisted_recipient permit_mynetworks reject_unauth_destination smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination smtpd_sender_restrictions = reject_unknown_sender_domain sympa_destination_recipient_limit = 1 transport_maps = hash:/etc/postfix/relais/transport hash:/etc/postfix/relais/virtual_relais hash:/etc/postfix/relais/virtual_google virtual_alias_maps = hash:/etc/postfix/relais/virtual_aliases master.cf smtp inet n - - - - smtpd #smtp inet n - - - 1 postscreen #smtpd pass - - - - - smtpd cleanup unix n - - - 0 cleanup qmgr unix n - n 300 1 qmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} sympa unix - n n - - pipe flags=FR user=sympa argv=/var/sympa/lib/postfix-to-sympa.pl ${nexthop} ${mailbox} # grep student.uclouvain.be /etc/postfix/relais/relay_domains student.uclouvain.be OK # grep xxx....@student.uclouvain.be /etc/postfix/relais/* # and if I send an email to xxx....@student.uclouvain.be, the mail is not rejected Aug 22 18:30:51 sympa-2.sipr.ucl.ac.be postfix/smtp[23141]: 0F1BC122A3C: to=<xxx....@student.uclouvain.be>, relay=aspmx.l.google.com[173.194.65.27]:25, delay=0.65, delays=0.31/0.01/0.12/0.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1471883451 18si19137821wjx.263 - gsmtp) What is wrong ? Regards, -- Pascal