M
M
mihavxc2013-07-26 12:04:53
System administration
mihavxc, 2013-07-26 12:04:53

Dovecot + Mail.ru: PAM_USER_UNKNOWN

Good afternoon.

I'm trying to configure mail.ru to collect mail via POP3 from my mail server (postfix+dovecot).

Gmail, Yandex and TheBat successfully pick up mail from the same server, there have never been any problems.

But Mail.ru swears: “The connection to the server was successful, but the authorization failed. Check that the mailbox name and password are correct. „

The logs show that PAM cannot find the user. Naturally, there is a user, and other clients will be authorized without problems. Maybe someone has already experienced something similar?

The variant with authorization through PAM is necessary.

In mail.log

Jul 26 12:32:26 actionlist dovecot: auth: Debug: auth client connected (pid=24277)
Jul 26 12:32:26 actionlist dovecot: auth: Debug: client in: AUTH 1 PLAIN service=pop3 lip=my_ip rip= 209.85.219.7 lport=110 rport=64292 resp=Jul 26 12:32:26 actionlist dovecot: auth-worker: Debug: pam(info_ru,209.85.219.7): lookup service=dovecot
Jul 26 12:32:26 actionlist dovecot: auth-worker: Debug: pam(info_ru,209.85.219.7): #1/1 style=1 msg=Password:
Jul 26 12:32:26 actionlist dovecot: auth: Debug: client out: OK 1 user=info_ru
Jul 26 12:32:26 actionlist dovecot: auth: Debug: master in: REQUEST 2905735169 24277 1 877cd6d625b192aba5f3bf7be8ec2c38
Jul 26 12:32:26 actionlist dovecot: auth: Debug: passwd(info_ru,209.85.219.7): lookup
Jul 26 12:32:26 dovecot actionlist: auth: Debug: master out: USER 2905735169 info_ru system_groups_user=info_ru uid=1016 gid=1016 home=/home/info_ru
Jul 26 12:32:26 dovecot actionlist: pop3-login: Login : user=<info_ru>, method=PLAIN, rip=209.85.219.7, lip=my_ip, mpid=24278
Jul 26 12:32:27 pm actionlist dovecot: pop3(info_ru): Disconnected: Logged out top=0/0, retr =1/4701, del=0/147, size=41960151


In auth.log

Jul 26 12:31:29 pm actionlist auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=info rhost=217.69.128.71 user=info
Jul 26 12:31:29 pm actionlist auth: pam_winbind(dovecot:auth): getting password (0x00000388)
Jul 26 12:31: 29 actionlist auth: pam_winbind(dovecot:auth): pam_get_item returned a password
Jul 26 12:31:29 actionlist auth: pam_winbind(dovecot:auth): request wbcLogonUser failed: WBC_ERR_AUTH_ERROR, PAM error: PAM_USER_UNKNOWN (10), NTSTATUS: NT_STATUS_NO_SUCH_US Error message was: No such user


dovecont settings

# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.0.0-16-generic-pae i686 Ubuntu 12.04 LTS
auth_mechanisms = plain login
auth_username_format = %Ln
disable_plaintext_auth = no
first_valid_gid = 0
first_valid_uid = 0
mail_location = maildir :~/Maildir
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
passdb {
driver = pam
}
plugin {
sieve = ~/.dovecot .sieve
sieve_dir = ~/sieve
}
protocols = imap pop3 sieve
service auth {
unix_listener /var/spool/postfix/private/dovecot-auth {
group = postfix
mode = 0660
user = postfix
}
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_cipher_list = ALL: !LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
driver = passwd
}
protocol imap {
imap_client_workarounds = delay-newmail
mail_max_userip_connections = 10
}
protocol pop3 {
mail_max_userip_connections = 10
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
deliver_log_format = msgid=%m: %$
mail_plugins = sieve
postmaster_address = postmaster
quota_full_tempfail = yes
rejection_reason = Your message to <%t> was automatically rejected:%n%r
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
J_o_k_e_R, 2013-07-26
@J_o_k_e_R

Firstly, your log excerpts are not synchronized in time.
mail.log
Jul 26 12:32:26
auth.log
Jul 26 12:31:29
Second, I think the problem is that
Jul 26 12:31:29 actionlist auth: pam_unix(dovecot:auth): authentication failure ; logname= uid=0 euid=0 tty=dovecot ruser=info rhost=217.69.128.71 user=info
here is the user info, which is not found further, but the correct one should be
Jul 26 12:32:26 actionlist dovecot: auth: Debug: client in: AUTH 1 PLAIN service=pop3 lip=my_ip rip=209.85.219.7 lport=110 rport=64292 resp=Jul 26 12:32:26 actionlist dovecot: auth-worker: Debug: pam(info_en,209.85.219.7): lookup service=dovecot
i.e. info_ru

V
Vladimir Dubrovin, 2013-07-26
@z3apa3a

Can I ask you to make and give a test account on your server so that we can check the creation of the collector from our side?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question