Hi, I'm still confused how Postfix and map lookups work. Especially when a lookup happens.
According to the docs, when a domain is in virtual_alias_domains, it is considered local, so it shouldn't bounce. First : postconf -n : disable_vrfy_command = yes home_mailbox = Maildir/ in_flow_delay = 1s inet_interfaces = all inet_protocols = all local_recipient_maps = $virtual_alias_domains mail_owner = postfix mailq_path = /usr/bin/mailq.postfix mydestination = $myhostname, localhost mydomain = jdi.nl myhostname = mail1.c1.jdi.nl mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix recipient_delimiter = + relay_domains = $mydestination, ldap:/etc/postfix/ldap/relay_domains.cf sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP smtpd_recipient_restrictions = reject_unknown_recipient_domain, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination soft_bounce = no unknown_local_recipient_reject_code = 550 virtual_alias_domains = ldap:/etc/postfix/ldap/virtual_alias_domains.cf virtual_alias_maps = ldap:/etc/postfix/ldap/virtual_alias_maps.cf The LDAP scheme is simple : One object for domains, one for users. As simple as it get's, and is verified to work with an other MTA. The logs : http://pastebin.com/NQbMY6sU Some things I noticed : - If comment out smtpd_recipient_restrictions, the LDAP lookups stop. (and it then also bounces) - The domain is never looked. Hence the 5xx relaying denied error I guess. I would like to actually understand what is happening, fixing is is step 2. Some pointers would be more then welcome. Regards, Igmar