Hello. I'm trying to enable SRS for external aliases, but not for intra-cluster communication (mailboxes are split on different hosts, and mails are forwared on the right one if the come by another node)
I disabled virtual_alias_maps in general smtpd, I've added a map in transport_maps which matches to-be-rewrited mails that relay on 127.0.0.1:27 transport_maps = ldap:/etc/postfix/ldap-relay-transport.cf, ldap:/etc/postfix/ldap-trash.cf, ldap:/etc/postfix/ldap-virtual-transport.cf, ldap:/etc/postfix/ldap-local-transport.cf /etc/postfix/ldap-relay-transport.cf: query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(accountStatus=active)(deliveryMode=forwardonly)) result_attribute = mailForwardingAddress result_format = lrelay:[127.0.0.1]:27 I defined a smtpd on :27 like this: 27 inet n - - - - smtpd -o syslog_name=postfix/relay -o virtual_alias_maps=ldap:/etc/postfix/ldap-virtual-relay.cf -o transport_maps=fail: -o smtpd_milters= -o smtpd_client_restrictions=permit_inet_interfaces,reject -o sender_canonical_maps=tcp:127.0.0.1:10001 the ldap-virtual-relay.cf was working when it were in the general smtpd process : query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(accountStatus=active)(deliveryMode=forwardonly)) result_attribute = mailForwardingAddress mails for an account that matches deliveryMode=forwardonly are sent to 127.0.0.1:27, but there they are not rewritten to their alias, but sent to 127.0.0.1:27 again. After a few loops they're discarded ("too many hops") I've got a complete log here : http://paste.ee/p/QbkZ8#ahdqK3ELR5wygvQIXkEUDznBQeAKR51K do you have hints for me to solve this ? Thanks, -- Bastien