On 25 November 2010 14:11, /dev/rob0 <r...@gmx.co.uk> wrote: > On Thu, Nov 25, 2010 at 01:54:49PM +0100, Mauro wrote: >> I have a file: recipient_checks with mym...@example.com REJECT and the >> corresponding hashed recipient_checks.db. >> In main.cf I have: >> smtpd_recipient_restrictions = >> ...... >> ...... > > The elided lines might have been significant. > >> check_recipient_access hash:/etc/postfix/maps/recipient_checks >> >> The transport is: virtual_transport = dovecot. > > That might not have been significant. > >> When I send to mym...@example.com it doesn't rejected. >> What I have missed? > > You missed the list welcome message or DEBUG_README.html#mail which > would have told you to include relevant logs plus "postconf -n". > Without that, there is no way to guess what happened.
Here is postconf -n: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix disable_vrfy_command = yes header_checks = pcre:/etc/postfix/maps/header_checks inet_interfaces = all inet_protocols = all mailbox_size_limit = 0 mydestination = mail, mail.example.com, localhost.example.com, localhost myhostname = mail.example.com myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname NO UCE ESMTP smtpd_data_restrictions = reject_unauth_pipelining,permit smtpd_helo_required = yes smtpd_milters = local:/clamav/clamav-milter.ctl smtpd_recipient_restrictions = check_client_access hash:/etc/postfix/maps/internal_networks, reject_non_fqdn_sender, reject_non_fqdn_recipient, permit_mynetworks, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain, check_sender_access hash:/etc/postfix/maps/sender_checks, check_helo_access hash:/etc/postfix/maps/helo_checks, check_recipient_access hash:/etc/postfix/maps/recipient_checks, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client safe.dnsbl.sorbs.net, check_policy_service inet:127.0.0.1:60000, permit smtpd_reject_unlisted_sender = yes smtpd_restriction_classes = has_our_domain_as_sender smtpd_tls_cert_file = /etc/ssl/certs/mail.example.com.crt smtpd_tls_key_file = /etc/ssl/private/mail.example.com.key smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache strict_rfc821_envelopes = yes transport_maps = hash:/etc/postfix/maps/transport virtual_alias_maps = hash://etc/postfix/maps/virtual_aliases, ldap:/etc/postfix/ldap-virtual_alias_maps-vacation.cf, ldap:/etc/postfix/ldap-virtual_alias_maps-forward.cf virtual_gid_maps = static:1004 virtual_mailbox_base = /var/vmail virtual_mailbox_domains = comune.cagliari.it virtual_mailbox_maps = ldap:/etc/postfix/ldap-vmail.cf virtual_minimum_uid = 1004 virtual_transport = dovecot virtual_uid_maps = static:1004 I think it's all ok but check_recipient_access hash:/etc/postfix/maps/recipient_checks seems doesn't work.