Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to have multiple email accounts to which other users can log in using their logins and passwords in the same way as master user.

by adding additional table in my system I could control the access.

The problem is that dovecot can send to the sql query only domain or master user name, but not complete login ( account_name*master_user_login) or separately the account name. Is there an undocumented shortcut like with the '%; that provides that info ?

share|improve this question

According to Dovecot documentation,

pass=yes is especially useful with a Checkpassword passdb because the script gets both the login and the master username as environment variables. Other passdbs see only the login username in %u. In the future there will probably be another setting to make the user verification to be done from userdb.

(1.x and 2.x documentation say the same thing.)

Conclusion: if you are using Checkpassword for your passdb then you are good. Otherwise, this clearly states that the passdb doesn't get access to the master username, so the answer to your question is no.

If you want to know about undocumented shortcuts, then UTSL. But I doubt there is one.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.