Hi, Does anyone have any idea or hint how to configure dovecot master user? I'm already on it for almost fifteen days and can not find a solution. I appreciate any help, Clovis -- Clovis Tristao - UNICAMP/Faculdade de Engenharia Agricola Administrador de Redes - Secao de Informatica (SINFO) E-mail: clovis at feagri.unicamp.br http://www.feagri.unicamp.br MSN: clovis_tristao33 at hotmail.com Fone: 55(19) 35211031-35211038-35211047-91173116
Hi Clovis,
try something like this:
**In this example you should have your users in a MySQL database.
On /etc/dovecot/conf.d/10-auth.conf file add this:
# Master login <username>*master-user
auth_master_user_separator = *
# Use for master login
passdb {
args = /etc/dovecot/dovecot-sql-master.conf.ext
driver = sql
master = yes
pass = yes
}
Create /etc/dovecot/dovecot-sql-master.conf.ext file with this content:
driver = mysql
connect = host=<mysqlserverhostname.com> dbname=<database name>
user=<user> password=<pass>
default_pass_scheme = MD5-CRYPT
password_query = \
SELECT Password AS password \
FROM Users \
WHERE User = 'master-user'
user_query = \
SELECT Password AS password \
FROM Users \
WHERE User = 'master-user'
To do tests:
telnet your-dovecot-server.com 143
AUTH LOGIN <user>*master-user <master-user password>
Good Luck
--
Thiago Henrique
Em 08-09-2014 12:48, Clovis Tristao escreveu:> Hi,
>
> Does anyone have any idea or hint how to configure dovecot master user?
> I'm already on it for almost fifteen days and can not find a solution.
> I appreciate any help,
>
> Clovis
>
On 2014-09-08 17:48, Clovis Tristao wrote:> Hi, > > Does anyone have any idea or hint how to configure dovecot master > user? > I'm already on it for almost fifteen days and can not find a solution. > I appreciate any help, > > ClovisIt's quite simple: # Authentication for master users. Included from 10-auth.conf. # By adding master=yes setting inside a passdb you make the passdb a list # of "master users", who can log in as anyone else. # <doc/wiki/Authentication.MasterUsers.txt> # Example master user passdb using passwd-file. You can use any passdb though. passdb { driver = passwd-file master = yes args = /etc/dovecot/passwd.masterusers # Unless you're using PAM, you probably still want the destination user to # be looked up from passdb that it really exists. pass=yes does that. pass = yes } then use htpasswd from Apache to generate the file "/etc/dovecot/passwd.masterusers" The documentation explains it quite well: http://wiki2.dovecot.org/Authentication/MasterUsers