Configure Dovecot Master User
Clovis Tristao
clovis at agr.unicamp.br
Wed Sep 10 19:11:37 UTC 2014
I'm using this setting in dovecot:
# dovecot -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.29.2.el6.x86_64 x86_64 CentOS release 6.5 (Final)
auth_debug = yes
auth_debug_passwords = yes
auth_master_user_separator = *
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = plain
disable_plaintext_auth = no
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mbox_write_locks = fcntl
passdb {
args = /etc/dovecot/passwd.masterusers
driver = passwd-file
master = yes
pass = yes
}
passdb {
driver = shadow
}
ssl = no
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
args = allow_all_users=yes master_user=%u
driver = static
}
I still can not authenticate with the master user, any suggestions or tips?
Tkx
Clovis
Em 08-09-2014 14:00, Listas at Adminlinux escreveu:
> 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
>>
>
--
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
More information about the dovecot
mailing list