On 01/03/2013 12:50 PM, Bastian Blank wrote: >> My other question was going to be how I could verify the 'alias' address >> in RCPT stage (a wildcard virtual_alias_maps entry prevents this), > How do you get your user information?
LDAP, no local users. LDIF attached. Currently, a custom policy script (domainalias-aware) verifies the recipient in LDAP, then Postfix queries the LDAP again for possible SMTP forwards (virtual_alias_maps). If found, then forwards the message via SMTP, else if passes the message to the LMTP server. I wish it could be done easier. I've come from qmail-ldap world, and I'm still fighting to get the Postfix concepts, sorry. Kristof LDIF: # domain.com, alias: domain.org dn: dc=domain.com,ou=hosting,dc=isp,dc=com objectClass: domain objectClass: top destinationIndicator: domain.org dc: domain.com # user1 with local delivery (no mailForwardingAddress) dn: uid=user1,dc=domain.com,ou=hosting,dc=isp,dc=com objectClass: inetOrgPerson objectClass: inetMailUser objectClass: organizationalPerson objectClass: top objectClass: person cn: Test User1 sn: Test mail: john....@domain.com mail: us...@domain.com mailQuota: 200M mailUserStatus: active uid: user1 # user2 with forwarding via smtp dn: uid=user2,dc=domain.com,ou=hosting,dc=isp,dc=com mailForwardingAddress: rem...@example.net objectClass: inetOrgPerson objectClass: inetMailUser objectClass: organizationalPerson objectClass: top objectClass: person cn: Test User2 sn: Test mail: jane....@domain.com mail: us...@domain.com mailQuota: 200M mailUserStatus: active uid: user2