On Thu, Aug 21, 2014 at 08:54:19AM +0200, Marek Kozlowski wrote:
> :-)
> I have an openldap server for accounts and other servers use pam_ldap.
> We'd like to to store e-mail aliases as an LDAP `mail' attribute.
> 
> A user with a common name `temp1' has the attribute `mail' set to
> `m.kozlow...@poczta.mini.pw.edu.pl'. Expected behavior: mail sent to
> `m.kozlow...@poczta.mini.pw.edu.pl' is delivered to the mailbox of
> `temp1'. It works and it doesn't work.
> 
> `main.cf' contains the line:
> 
> --------------------------------------------------
> alias_maps = hash:/etc/postfix/aliases, ldap:/etc/postfix/ldap-aliases.cf
> --------------------------------------------------

The documented lookup key for local aliases(5) in the local(8)
delivery agent is the bare localpart of the address "m.kozlowski"
not "m.kozlow...@poczta.mini.pw.edu.pl".

You're likely to have more luck with LDAP-based address to address
rewriting via virtual_alias_maps not alias_maps.

> --------------------------------------------------
> 2014-08-20 20:43:10[info,mail]postfix/local[30922]: A798714259B:
> to=<m.kozlow...@poczta.mini.pw.edu.pl>, relay=local, delay=0.23,
> delays=0.12/0.01/0/0.11, dsn=5.1.1, status=bounced (unknown user:
> "m.kozlowski")

Exactly as expected.

-- 
        Viktor.

Reply via email to