[Dovecot] strip domains

Timo Sirainen tss at iki.fi
Wed Apr 12 18:22:51 EEST 2006


On Wed, 2006-04-12 at 17:06 +0200, Johannes Berg wrote:
> > # Username formatting before it's looked up from databases. You can use
> > # the standard variables here, eg. %Lu would lowercase the username, %n would
> > # drop away the domain if it was given, or "%n-AT-%d" would change the '@' into
> > # "-AT-". This translation is done after auth_username_translation changes.
> > #auth_username_format =
> 
> Great, that clears things up, thanks :) Except that in the latter case,
> a username _without_ domain like 'johannes' is changed into
> 'johannes-AT-', no?

Yea, but in that case you probably won't have usernames without domains.
And auth_default_realm could help there also to get the domain in there.
And if you _really_ want to have both "user-AT-domain" usernames and
plain "user" usernames, then you can always patch the sources :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060412/409fc8fd/attachment.pgp


More information about the dovecot mailing list