{"id":81,"date":"2013-07-24T18:28:34","date_gmt":"2013-07-24T18:28:34","guid":{"rendered":"https:\/\/adeelejaz.com\/blog\/?p=81"},"modified":"2016-01-13T00:02:44","modified_gmt":"2016-01-13T00:02:44","slug":"smtp-authorization-does-not-work-on-plesk-11","status":"publish","type":"post","link":"https:\/\/adeelejaz.com\/blog\/smtp-authorization-does-not-work-on-plesk-11\/","title":{"rendered":"SMTP authorization does not work on Plesk 11"},"content":{"rendered":"<p>I was having this issue today and wasted quite a lot of time trying to figure out what was going wrong. The client&#8217;s server was running Plesk 11 and had SMTP running with port 25 open. IMAP was working flawlessly but Outlook kept returning the login box with &#8220;Login Failed&#8221; error pointing towards wrong credentials. But I knew the password was correct so I started haunting.<\/p>\n<p>I logged in as root user and checked the mail log file at:<br \/>\n<code>\/usr\/local\/psa\/var\/log\/maillog<\/code><\/p>\n<p>And there I found a lot of warnings but one stood out:<\/p>\n<blockquote><p><code>postfix\/smtpd[31280]: warning: SASL authentication failure: realm changed: authentication aborted<br \/>\npostfix\/smtpd[31280]: warning: SASL DIGEST-MD5 authentication failed: authentication failure<br \/>\n<strong>postfix\/smtpd[31280]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory<\/strong><br \/>\npostfix\/smtpd[31280]: warning: SASL LOGIN authentication failed: generic failure<\/code><\/p><\/blockquote>\n<p>&#8220;No such file or directory&#8221;? Interesting.<\/p>\n<p>I did a quick edit of the smtpd.conf by running:<br \/>\n<code>nano \/usr\/lib64\/sasl2\/smtpd.conf<\/code><\/p>\n<p>And there I saw the problem. The saslauthd_path and sql_database were wrong paths:<\/p>\n<blockquote><p><code>pwcheck_method: auxprop saslauthd<br \/>\nauxprop_plugin: sql_sqlite3<br \/>\n<strong>saslauthd_path: \/postfix\/private\/plesk_saslauthd<\/strong><br \/>\nmech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN<br \/>\nauto_transition: yes<br \/>\nsql_engine: sqlite3<br \/>\nsql_hostnames: localhost<br \/>\n<strong>sql_database: \/postfix\/plesk\/passwd.db<\/strong><br \/>\nsql_select: SELECT `%p` FROM domains d, users u WHERE u.name='%u' and d.name='%r' and d.status=0 and u.status=0 and u.dom_id=d.id<br \/>\nsql_verbose: yes<br \/>\nlog_level: 9<\/code><\/p><\/blockquote>\n<p>I just added the &#8220;\/var\/spool\/postfix&#8221; before the paths and the correct file looks like:<\/p>\n<blockquote><p><code>pwcheck_method: auxprop saslauthd<br \/>\nauxprop_plugin: sql_sqlite3<br \/>\n<strong>saslauthd_path: \/var\/spool\/postfix\/private\/plesk_saslauthd<\/strong><br \/>\nmech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN<br \/>\nauto_transition: yes<br \/>\nsql_engine: sqlite3<br \/>\nsql_hostnames: localhost<br \/>\n<strong>sql_database: \/var\/spool\/postfix\/plesk\/passwd.db<\/strong><br \/>\nsql_select: SELECT `%p` FROM domains d, users u WHERE u.name='%u' and d.name='%r' and d.status=0 and u.status=0 and u.dom_id=d.id<br \/>\nsql_verbose: yes<br \/>\nlog_level: 9<\/code><\/p><\/blockquote>\n<p>Saved and got out, restarted the postfix:<br \/>\n<code>\/etc\/init.d\/postix restart<\/code><\/p>\n<p>And hit the Send\/Receive button and guess what&#8230; it worked! Please share this post and leave a comment if this worked for you.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><p class=\"wp-flattr-button\"><a href=\"https:\/\/adeelejaz.com\/blog\/?flattrss_redirect&amp;id=81&amp;md5=b07334085a94616d7b87e0307ee05c72\" title=\"Flattr\" target=\"_blank\"><img src=\"https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white.png\" srcset=\"https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white.png, https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white@2x.png 2xhttps:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white.png, https:\/\/adeelejaz.com\/blog\/wp-content\/plugins\/flattr\/img\/flattr-badge-white@3x.png 3x\" alt=\"Flattr this!\"\/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>I was having this issue today and wasted quite a lot of time trying to figure out what was going wrong. The client&#8217;s server was running Plesk 11 and had SMTP running with port 25 open. IMAP was working flawlessly but Outlook kept returning the login box with &#8220;Login Failed&#8221; error pointing towards wrong credentials. [&hellip;]<!-- AddThis Advanced Settings generic via filter on wp_trim_excerpt --><!-- AddThis Share Buttons generic via filter on wp_trim_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-bugs"],"_links":{"self":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":1,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/posts\/81\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adeelejaz.com\/blog\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}