{"id":5026,"date":"2019-06-25T22:48:07","date_gmt":"2019-06-25T22:48:07","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=5026"},"modified":"2019-06-25T22:48:07","modified_gmt":"2019-06-25T22:48:07","slug":"plesk-roundcube-sending-error-smtp-error-535-authentication-failed","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2019\/06\/25\/plesk-roundcube-sending-error-smtp-error-535-authentication-failed\/","title":{"rendered":"Plesk Roundcube sending error &#8211; SMTP Error (535): Authentication failed"},"content":{"rendered":"<p>When sending from Roundcube on an Ubuntu server with plesk, we get the following error:<\/p>\n<p>SMTP Error (535): Authentication failed<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2019\/06\/roundcube_error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5027\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2019\/06\/roundcube_error.png\" alt=\"\" width=\"682\" height=\"163\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2019\/06\/roundcube_error.png 682w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2019\/06\/roundcube_error-300x72.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>Symptoms<\/p>\n<p>While trying to send an email via Roundcube, the following error appears:<\/p>\n<p>SMTP Error (535): Authentication failed<\/p>\n<p>In \/var\/log\/maillog following entries can be found:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nwarning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory\nwarning: SASL authentication failure: Password verification failed\nwarning: localhost&#x5B;::1]: SASL PLAIN authentication failed: generic failure\n\n<\/pre>\n<p>saslauthd service is running:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n    service saslauthd status\n    Redirecting to \/bin\/systemctl status saslauthd.service\n    \u25cf saslauthd.service - SASL authentication daemon.\n    Loaded: loaded (\/usr\/lib\/systemd\/system\/saslauthd.service; enabled; vendor preset: disabled)\n    Active: active (running)\n\n<\/pre>\n<p>compatibility_level value was previously defined in \/etc\/postfix\/main.cf as following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># grep compatibility_level \/etc\/postfix\/main.cf\ncompatibility_level = 2\n\n<\/pre>\n<p>Here is the fix: Comment out compatibility_level in \/etc\/postfix\/main.cf<\/p>\n<p>Resolution<br \/>\nLogin to the server via SSH.<br \/>\nCreate a backup of \/etc\/postfix\/main.cf:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># cp -p \/etc\/postfix\/main.cf \/etc\/postfix\/main.cf_bck\n<\/pre>\n<p>Remove compatibility_level value from \/etc\/postfix\/main.cf using the favorite text editor.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># nano \/etc\/postfix\/main.cf\n#compatibility_level = 2\n\n<\/pre>\n<p>Check SMTP daemon configuration:<br \/>\nIf RHEL\/CentOS\/CloudLinux is used, verify that chrooted mode is disabled:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">egrep &quot;^smtp &quot; \/etc\/postfix\/master.cf | grep inet\nsmtp inet n - n - - smtpd\n<\/pre>\n<p>If Debian\/Ubuntu is used, verify that chrooted mode is enabled:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">egrep &quot;^smtp &quot; \/etc\/postfix\/master.cf | grep inet\nsmtp inet n - y - - smtpd\n<\/pre>\n<p>Reload postfix configuration:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">service postfix reload\n<\/pre>\n<p>Source: https:\/\/support.plesk.com\/hc\/en-us\/articles\/360004930633-Unable-to-send-an-email-from-Plesk-server-SMTP-Error-535-Authentication-failed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When sending from Roundcube on an Ubuntu server with plesk, we get the following error: SMTP Error (535): Authentication failed<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-5026","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=5026"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5026\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=5026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=5026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=5026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}