Dovecot Master User

Clovis Tristao clovis at agr.unicamp.br
Thu Aug 28 13:41:52 UTC 2014


Hi,

I'm trying to use imapsync to migrate my accounts and mailbox (mbox) of 
an server A (Postfix + Dovecot) to a Server B (Zimbra), without having 
to change user passwords on the server A, using a master user account.
I'm using this paper http://wiki2.dovecot.org/Authentication/MasterUsers 
as guidance.
The Dovecot server A, is not letting me authenticate.

Follow the testing and debug below:

Testing:
# telnet <ip_address> 8143
Trying <ip_address>...
Connected to <ip_address>.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
IDLE AUTH=PLAIN] Dovecot ready.
a login mailadm*masteruser masterpass
a NO [AUTHENTICATIONFAILED] Authentication failed.
b logout
* BYE Logging out
b OK Logout completed.
Connection closed by foreign host.

Debug:
/var/log/maillog:

Aug 28 10:29:51 centosVM dovecot: master: Dovecot v2.0.9 starting up (core
dumps disabled)
Aug 28 10:30:02 centosVM dovecot: auth: Debug: Loading modules from 
directory: /usr/lib64/dovecot/auth
Aug 28 10:30:02 centosVM dovecot: auth: Debug: Module loaded: 
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Aug 28 10:30:02 centosVM dovecot: auth: Debug: Module loaded: 
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Aug 28 10:30:02 centosVM dovecot: auth: Debug: Module loaded: 
/usr/lib64/dovecot/auth/libmech_gssapi.so
Aug 28 10:30:02 centosVM dovecot: auth: Debug: passwd-file 
/etc/dovecot/passwd.masterusers: Read 1 users
Aug 28 10:30:02 centosVM dovecot: auth: Debug: auth client connected 
(pid=4693)
Aug 28 10:30:27 centosVM dovecot: auth: Debug: client in: 
AUTH#0111#011PLAIN#011service=imap#011lip=10.0.2.15#011rip=10.0.2.2#011lport=143#011rport=59847#011resp=<hidden>
Aug 28 10:30:27 centosVM dovecot: auth: Debug: 
auth(masteruser,10.0.2.2,master): Master user lookup for login: mailadm
Aug 28 10:30:27 centosVM dovecot: auth: Debug: 
passwd-file(masteruser,10.0.2.2,master): lookup: user=masteruser 
file=/etc/dovecot/passwd.masterusers
Aug 28 10:30:27 centosVM dovecot: auth: 
passwd-file(masteruser,10.0.2.2,master): unknown user
Aug 28 10:30:29 centosVM dovecot: auth: Debug: client out: 
FAIL#0111#011user=masteruser

What can be happening?
Thanks,

Clóvis

-- 
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