{"id":187926,"date":"2013-07-26T13:01:03","date_gmt":"2013-07-26T09:01:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=187926"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=187926","title":{"rendered":"<span class=\"post_title\">Dovecot + Mail.ru: PAM_USER_UNKNOWN<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<p>  \u041f\u044b\u0442\u0430\u044e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 mail.ru \u0437\u0430\u0431\u043e\u0440 \u043f\u043e\u0447\u0442\u044b \u043f\u043e POP3 \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430(postfix+dovecot).<\/p>\n<p>  \u0421 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0431\u0438\u0440\u0430\u044e\u0442 \u043f\u043e\u0447\u0442\u0443 Gmail, \u042f\u043d\u0434\u0435\u043a\u0441 \u0438 TheBat, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u043b\u043e.<\/p>\n<p>  \u041d\u043e Mail.ru \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f: \u00ab\u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u043d\u0438 \u044f\u0449\u0438\u043a\u0430 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f. \u201e<\/p>\n<p>  \u0412 \u043b\u043e\u0433\u0430\u0445 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e PAM \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0435\u0441\u0442\u044c, \u0434\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u044e\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041c\u043e\u0436\u0435\u0442 \u043a\u0442\u043e-\u0442\u043e \u0443\u0436\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c?<\/p>\n<p>  \u041d\u0443\u0436\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 PAM. \u041b\u043e\u0433\u0438 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0412 mail.log  <\/p>\n<blockquote><p>Jul 26 12:32:26 actionlist dovecot: auth: Debug: auth client connected (pid=24277)<br \/>  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<br \/>  Jul 26 12:32:26 actionlist dovecot: auth-worker: Debug: pam(info_ru,209.85.219.7): #1\/1 style=1 msg=Password:<br \/>  Jul 26 12:32:26 actionlist dovecot: auth: Debug: client out: OK 1 user=info_ru<br \/>  Jul 26 12:32:26 actionlist dovecot: auth: Debug: master in: REQUEST 2905735169 24277 1 877cd6d625b192aba5f3bf7be8ec2c38<br \/>  Jul 26 12:32:26 actionlist dovecot: auth: Debug: passwd(info_ru,209.85.219.7): lookup<br \/>  Jul 26 12:32:26 actionlist dovecot: auth: Debug: master out: USER 2905735169 info_ru system_groups_user=info_ru uid=1016 gid=1016 home=\/home\/info_ru<br \/>  Jul 26 12:32:26 actionlist dovecot: pop3-login: Login: user=&lt;info_ru&gt;, method=PLAIN, rip=209.85.219.7, lip=my_ip, mpid=24278<br \/>  Jul 26 12:32:27 actionlist dovecot: pop3(info_ru): Disconnected: Logged out top=0\/0, retr=1\/4701, del=0\/147, size=41960151<\/p>\n<p>  \u0412 auth.log  <\/p>\n<blockquote><p>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<br \/>  Jul 26 12:31:29 actionlist auth: pam_winbind(dovecot:auth): getting password (0x00000388)<br \/>  Jul 26 12:31:29 actionlist auth: pam_winbind(dovecot:auth): pam_get_item returned a password<br \/>  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_USER, Error message was: No such user  <\/p><\/blockquote>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 dovecont  <\/p>\n<blockquote><p># 2.0.19: \/etc\/dovecot\/dovecot.conf<br \/>  # OS: Linux 3.0.0-16-generic-pae i686 Ubuntu 12.04 LTS<br \/>  auth_mechanisms = plain login<br \/>  auth_username_format = %Ln<br \/>  disable_plaintext_auth = no<br \/>  first_valid_gid = 0<br \/>  first_valid_uid = 0<br \/>  mail_location = maildir:~\/Maildir<br \/>  managesieve_notify_capability = mailto<br \/>  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<br \/>  passdb {<br \/>   driver = pam<br \/>  }<br \/>  plugin {<br \/>   sieve = ~\/.dovecot.sieve<br \/>   sieve_dir = ~\/sieve<br \/>  }<br \/>  protocols = imap pop3 sieve<br \/>  service auth {<br \/>   unix_listener \/var\/spool\/postfix\/private\/dovecot-auth {<br \/>   group = postfix<br \/>   mode = 0660<br \/>   user = postfix<br \/>   }<br \/>  }<br \/>  ssl_cert = &lt;\/etc\/ssl\/certs\/dovecot.pem<br \/>  ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM<br \/>  ssl_key = &lt;\/etc\/ssl\/private\/dovecot.pem<br \/>  userdb {<br \/>   driver = passwd<br \/>  }<br \/>  protocol imap {<br \/>   imap_client_workarounds = delay-newmail<br \/>   mail_max_userip_connections = 10<br \/>  }<br \/>  protocol pop3 {<br \/>   mail_max_userip_connections = 10<br \/>   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh<br \/>  }<br \/>  protocol lda {<br \/>   deliver_log_format = msgid=%m: %$<br \/>   mail_plugins = sieve<br \/>   postmaster_address = postmaster<br \/>   quota_full_tempfail = yes<br \/>   rejection_reason = Your message to &lt;%t&gt; was automatically rejected:%n%r<br \/>  }<\/p><\/blockquote>\n<\/blockquote>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/187926\/\"> http:\/\/habrahabr.ru\/post\/187926\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<p>  \u041f\u044b\u0442\u0430\u044e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 mail.ru \u0437\u0430\u0431\u043e\u0440 \u043f\u043e\u0447\u0442\u044b \u043f\u043e POP3 \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430(postfix+dovecot).<\/p>\n<p>  \u0421 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0431\u0438\u0440\u0430\u044e\u0442 \u043f\u043e\u0447\u0442\u0443 Gmail, \u042f\u043d\u0434\u0435\u043a\u0441 \u0438 TheBat, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u043b\u043e.<\/p>\n<p>  \u041d\u043e Mail.ru \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f: \u00ab\u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u043d\u0438 \u044f\u0449\u0438\u043a\u0430 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f. \u201e<\/p>\n<p>  \u0412 \u043b\u043e\u0433\u0430\u0445 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e PAM \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0435\u0441\u0442\u044c, \u0434\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u044e\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041c\u043e\u0436\u0435\u0442 \u043a\u0442\u043e-\u0442\u043e \u0443\u0436\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c?<\/p>\n<p>  \u041d\u0443\u0436\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 PAM. \u041b\u043e\u0433\u0438 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-187926","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/187926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187926"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/187926\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}