[Dovecot] dovecot 2 variables

Pavel Dimow paveldimow at gmail.com
Mon Apr 8 22:27:41 EEST 2013


Interesting, but this means that we need to have one tree with all users
(where each user have additional attribute containing local ip), instead we
now have two separate trees because we use this for other authentication
purposes.

Thank you for sharing your thoughts Steffen




On Mon, Apr 8, 2013 at 2:34 PM, Steffen Kaiser <
skdovecot at smail.inf.fh-brs.de> wrote:

> -----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)
>
> iQEVAwUBUWK5PV3r2wJMiz2NAQKNMA**gAovEJQY0nhBwT0E/**d9tEd6wokF5XlVjpc
> 15vvc3zbJ9AaQVMz4LHAx1N4Secx+**BP+**UrJLiPPIegGAPbExA4gjI2oC31sEUc**JB
> 8iBtRlbVHLn+**pV0DnlG5FBn0KQgIyX1ml+**AafcFrVOq/PcCTQzdWqO0oyLR6PN8a
> SGpArMTweVjMpbhiYdR1fqtc5iYEI2**MefO4OjEG0Xxc2KfqzDZqUSZ1H4+**ftPT9a
> oA59e2sc3PRjCrjpeA4UbWNC/**ZEDSJFtt01mX3WZ00HVI/+**gMiPZVY7NTeaCC9W4
> rq0dI2J1O/zP2+**yY40KtuZrSt7Kw4b61LXO8Yp/**fJVpGoZzf6HvuWA==
> =/+hu
> -----END PGP SIGNATURE-----
>


More information about the dovecot mailing list