[Dovecot] dovecot 2 variables

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Mon Apr 8 15:34:05 EEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 7 Apr 2013, Pavel Dimow wrote:

> Just to be clear my goal is to have multiple domains on multiple addresses
> but use one dovecot instance and to let users logging without @domain part.

If %l is expanded in the LDAP query, you could add an attribute with the 
local IP address, e.g.:

pass_filter = 
(&(objectClass=mailUser)(|(mail=%Lu)(&(localPart=%Lu)(localIP=%l))))

(check if parenthesis are balanced) Same with user_filter

The idea:

mailUserLDAPItem && ( nameWithDomain || ( nameWithoutDomain && localIP ) )

So the user could login with domain on any local port and without domain 
on one or more local interfaces.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUWK5PV3r2wJMiz2NAQKNMAgAovEJQY0nhBwT0E/d9tEd6wokF5XlVjpc
15vvc3zbJ9AaQVMz4LHAx1N4Secx+BP+UrJLiPPIegGAPbExA4gjI2oC31sEUcJB
8iBtRlbVHLn+pV0DnlG5FBn0KQgIyX1ml+AafcFrVOq/PcCTQzdWqO0oyLR6PN8a
SGpArMTweVjMpbhiYdR1fqtc5iYEI2MefO4OjEG0Xxc2KfqzDZqUSZ1H4+ftPT9a
oA59e2sc3PRjCrjpeA4UbWNC/ZEDSJFtt01mX3WZ00HVI/+gMiPZVY7NTeaCC9W4
rq0dI2J1O/zP2+yY40KtuZrSt7Kw4b61LXO8Yp/fJVpGoZzf6HvuWA==
=/+hu
-----END PGP SIGNATURE-----


More information about the dovecot mailing list