Hi friends, i have a question. I have a running dovecot install on my server and a lot of virtual domains. It works great. The users are logging in with user at domain.tld but one old domain must be logged in with only the username only (without @domain.tld). My problem is that in this case the mailbox_localtion don't work. For example:> mail_location = maildir:/var/mail/%d/%n/maildir:INDEX=/var/mail/%d/%n/indiziesThe variable %d is not replaced with the domain. The dokumentation says: domain part in user at domain, empty if user there's no domain Okay, but is there a way to add a domain to this beause i need the %%d for mailbox sharing. Can i override the domain with a value from the user db or is it possible with a login script or somethink? Thank you a lot Greetings from Austria Leo
Yes...... This is from auth.conf (dovecot 2.X) # Default realm/domain to use if none was specified. This is used for both # SASL realms and appending @domain to username in plaintext logins. #auth_default_realm so, if you put in auth_default_realm, your default domain, it will append this to the username. 2010/4/14 Leo Unglaub <leo.unglaub at gmail.com>> Hi friends, > i have a question. I have a running dovecot install on my server and a > lot of virtual domains. It works great. The users are logging in with > user at domain.tld but one old domain must be logged in with only the > username only (without @domain.tld). My problem is that in this case > the mailbox_localtion don't work. For example: > > mail_location > maildir:/var/mail/%d/%n/maildir:INDEX=/var/mail/%d/%n/indizies > The variable %d is not replaced with the domain. The dokumentation > says: domain part in user at domain, empty if user there's no domain > Okay, but is there a way to add a domain to this beause i need the %%d > for mailbox sharing. > > Can i override the domain with a value from the user db or is it > possible with a login script or somethink? > Thank you a lot > Greetings from Austria > Leo >
Hi, thanks for your answer.>so, if you put in auth_default_realm, your default domain, it will append this to the username.i already found this option in the documentation, but it only works on the login. The login process is using the new auth_default_realm, but the variable %d is empty. in the mail_localtion. My dovecot version is>mail:/etc/dovecot# dovecot --version >1.2.11Is there a other solution for this? Thanks a lot Greetings Leo
On Wed, 2010-04-14 at 11:59 +0200, Leo Unglaub wrote:> Hi friends, > i have a question. I have a running dovecot install on my server and a > lot of virtual domains. It works great. The users are logging in with > user at domain.tld but one old domain must be logged in with only the > username only (without @domain.tld). My problem is that in this case > the mailbox_localtion don't work. For example: > > mail_location = maildir:/var/mail/%d/%n/maildir:INDEX=/var/mail/%d/%n/indizies > The variable %d is not replaced with the domain.Your passdb query is dropping the domain from username. Usually this is because SQL password_query returns 'user' field that contains only the username part, but no domain. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100414/a7a91a15/attachment-0002.bin>