[Dovecot] Domain part / auth_username_format

Timo Sirainen tss at iki.fi
Wed Jun 13 14:32:38 EEST 2007


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: not available
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.bin 


More information about the dovecot mailing list