[Dovecot] Problem Authenticating with Master User

Henry Franco hfranco at drjays.com
Fri Apr 29 06:19:28 EEST 2011


So I removed the passdb's and the pass=yes since it doesn't work with PAM but I'm still not having any luck.  Any suggestions? I'm open.

$ telnet mail01.server.com 143
Trying 10.10.10.12...
Connected to mail01.server.com.
Escape character is '^]'.
* OK Dovecot ready.
1 login user at server.com*master my_password
1 NO Authentication failed.
1 login user at server.com*master my_password
1 OK Logged in.

# dovecot -n

# 1.1.20: /etc/dovecot.conf
# OS: Linux 2.6.18-8.el5xen x86_64 CentOS release 5.2 (Final) ext3
protocols: imaps imap
listen: *
ssl_ca_file: /etc/ssl/ca/ca-bundle.crt
ssl_cert_file: /etc/ssl/crt/server.crt
ssl_key_file: /etc/ssl/key/server.key
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
login_processes_count: 64
login_max_processes_count: 2048
valid_chroot_dirs: /home/vmail/domains
max_mail_processes: 4096
first_valid_uid: 102
last_valid_uid: 102
first_valid_gid: 102
last_valid_gid: 102
mail_uid: vmail
mail_gid: vmail
mail_location: maildir:/home/vmail/domains/%d/%n
lda:
  postmaster_address: postmaster at server.com
  auth_socket_path: /var/run/dovecot-auth-master
  global_script_path: /home/vmail/domains/server.com/sieve
  mail_plugins: cmusieve
auth default_with_listener:
  master_user_separator: *
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/run/dovecot/auth-client
      mode: 432
    master:
      path: /var/run/dovecot-auth-master
      mode: 384
      user: vmail
      group: vmail
auth default:
  master_user_separator: *
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: passwd-file
    args: /etc/dovecot.master
    master: yes
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: passwd
  userdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
On Apr 28, 2011, at 5:36 PM, Timo Sirainen wrote:

> On 29.4.2011, at 0.31, Henry Franco wrote:
> 
>> passdb:
>>   driver: passwd-file
>>   args: /etc/dovecot.master
>>   pass: yes
>>   master: yes
> 
> pass=yes doesn't work properly with PAM.
> 
>> passdb:
>>   driver: shadow
>> passdb:
>>   driver: pam
>> passdb:
>>   driver: ldap
>>   args: /etc/dovecot-ldap.conf
> 
> You also seem to have too many passdbs. You should probably remove either shadow or pam.
> 



More information about the dovecot mailing list