[Dovecot] strip domains

Johannes Berg johannes at sipsolutions.net
Wed Apr 12 18:06:38 EEST 2006


On Wed, 2006-04-12 at 17:36 +0300, Timo Sirainen wrote:

> I think I'm doing it the way you want, but you just misunderstood the
> explanation. %u means username with domain, %n means the username
> without domain and %d is only the domain. I updated the comment to
> contain one more example:

Yeah, sorry about that. I did indeed misunderstand that based on the
fact that I can never remember if I want %d or %n :)

> # 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?

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


More information about the dovecot mailing list