[Dovecot] Domain part / auth_username_format

Timo Sirainen
Wed, 13 Jun 2007 11:32:38 -0000

On Wed, 2007-06-13 at 16:43 +1200, Robert Coup wrote:
> Hey folks,
>
> I want to authenticate a pop3 user without a domain part and then use
> the domain part to specify a Maildir subfolder to grab messages from.
>
> So, this was my attempt:
>   # use the domain part to access a subfolder
>   mail_location = maildir:/mail/%n/Maildir/%d
>   # strip of the domain part for authentication purposes
>   auth_username_format = %n
>
> login: testuser at .INBOX.SubFolder
>
> Authentication of testuser works great, but mail_debug shows me that the
> domain-part (%d) is empty when expanding mail_location.

Do you mean that you want to have user at domain1.org and user at domain2.org
have the same password but different maildirs? What passdb and userdb
are you using? I don't think there's a way to do this with auth_*
settings. With SQL it would be easy.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20070613/5915e1fe/attachment-0002.bin>