Hello everyone,
I have successfully set up Dovecot with an LDAP backend, and everything works like a charm, except one small use case.
I know it is possible, so if anyone knows a solution, thank you!
Basically, I just want to send an email to one of my email address, which contains an accent, i.e. andré@homebox.space....
Every other alias works, but not those with accents. They are correctly stored in the LDAP database, using base64.
I suspect I would need to use base64 again before the lookup, but I don't know how to do and if it is even possible.
My filter is set up as this:
filter=(&(objectClass=posixAccount)(|(uid=%n)(mail=%u)(mailLocalAddress=%u)))
It works perfectly for any email without accent.
Thanks for your help.
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libauthdb_ldap.so
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: LDAP initialization took 7 msecs
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: auth client connected (pid=0)
Mar 18 22:14:28 homebox dovecot[24636]: quota-status(andré@homebox.space): Debug: Loading modules from directory: /usr/lib/dovecot/modules Mar 18 22:14:28 homebox dovecot[24636]: quota-status(andré@homebox.space): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: master in: USER 1 andré@homebox.space service=quota-status
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: ldap(andré@homebox.space): user search: base=dc=homebox,dc=space scope=subtree filter=(&(objectClass=posixAccount)(|(uid=andré)(mailLocalAddress=andré@homebox.space))) fields=homeDirectory,uidNumber,gidNumber,mail
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: ldap(andré@homebox.space): no fields returned by the server
Mar 18 22:14:28 homebox dovecot[24636]: auth: ldap(andré@homebox.space): unknown user
Mar 18 22:14:28 homebox dovecot[24636]: auth: Debug: userdb out: NOTFOUND 1
Mar 18 22:14:28 homebox dovecot[24636]: quota-status(andré@homebox.space): Debug: auth USER input:
Mar 18 22:14:28 homebox postfix/smtpd[24734]: NOQUEUE: reject: RCPT from smtpfr.rodier.me[164.132.53.161]: 554 5.7.1 <andré@homebox.space>: Recipient address rejected: Unknown user; from=<root@smtpuk.rodier.me> to=<andré@homebox.space> pro to=ESMTP helo=<smtpuk.rodier.me>
Mar 18 22:14:28 homebox postfix/smtpd[24734]: disconnect from smtpfr.rodier.me[164.132.53.161] ehlo=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=4/6