{"id":1142,"date":"2017-02-22T16:39:27","date_gmt":"2017-02-22T21:39:27","guid":{"rendered":"http:\/\/easy-admin.ca\/?p=1142"},"modified":"2017-08-21T10:16:56","modified_gmt":"2017-08-21T14:16:56","slug":"postfix-smtp-auth-error-no-sasl-authentication-mechanisms","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2017\/02\/22\/postfix-smtp-auth-error-no-sasl-authentication-mechanisms\/","title":{"rendered":"Postfix SMTP Auth Error &#8220;no SASL authentication mechanisms&#8221;"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1167 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2017\/02\/POSTFIX-SASL_8a92e523db593d739cc2e902474468b8.png\" alt=\"\" width=\"720\" height=\"231\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2017\/02\/POSTFIX-SASL_8a92e523db593d739cc2e902474468b8.png 720w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2017\/02\/POSTFIX-SASL_8a92e523db593d739cc2e902474468b8-300x96.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>I have been setting up a new mail server recently with Postfix and SMTP Auth, and got the error message &#8220;no SASL authentication mechanisms&#8221;.<\/p>\n<p>If you have enabled SMTP Auth with Postfix like this:<\/p>\n<pre>smtpd_sasl_auth_enable = yes\r\nsmtpd_sasl_security_options = noanonymous\r\nsmtpd_sasl_local_domain = $myhostname\r\nbroken_sasl_auth_clients = yes\r\nsmtpd_recipient_restrictions =\r\n    permit_sasl_authenticated,\r\n    permit_mynetworks,\r\n    reject_unauth_destination<\/pre>\n<p>and are getting messages like this (the extract below is from the mail log file):<\/p>\n<pre>Nov  2 15:31:09 vps131 postfix\/smtpd[14007]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled\r\nNov  2 15:31:09 vps131 postfix\/smtpd[14007]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms\r\nNov  2 15:31:09 vps131 postfix\/smtpd[14007]: fatal: no SASL authentication mechanisms\r\nNov  2 15:31:10 vps131 postfix\/master[12004]: warning: process \/usr\/libexec\/postfix\/smtpd pid 14007 exit status 1\r\nNov  2 15:31:10 vps131 postfix\/master[12004]: warning: \/usr\/libexec\/postfix\/smtpd: bad command startup -- throttling<\/pre>\n<p>then you need to install the cyrus-sasl-plain package like so:<\/p>\n<pre>yum install cyrus-sasl-plain<\/pre>\n<p>The above method will install the cyrus-sasl-plain packages on CentOS and other RPM\/Yum based Linux distributions, so you would need to use the appropriate package manager (and software package) for other Linux distros.<\/p>\n<ul>\n<li>Also make sure the SASAUTHD is running on your system<\/li>\n<\/ul>\n<p># systemctl status saslauthd<\/p>\n<p># systemctl start saslauthd<\/p>\n<p># systemctl enable saslauthd<\/p>\n<p>NOTES :<\/p>\n<p><strong># SASL CONFIGURATION<\/strong><br \/>\nsmtpd_sasl_auth_enable = yes<br \/>\nsmtpd_sasl_security_options = noanonymous<br \/>\nsmtpd_sasl_local_domain = $myhostname<br \/>\nbroken_sasl_auth_clients = yes<br \/>\nsmtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated<br \/>\n<strong>#<\/strong><\/p>\n<p><strong>You may verified your email server security score here:<\/strong><\/p>\n<p>http:\/\/www.emailsecuritygrader.com<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1171 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2017\/02\/email-security-score_ae3461e528851e6e43238486f18f87a3.png\" alt=\"\" width=\"720\" height=\"231\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2017\/02\/email-security-score_ae3461e528851e6e43238486f18f87a3.png 720w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2017\/02\/email-security-score_ae3461e528851e6e43238486f18f87a3-300x96.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p><strong>Here is a part of my \/etc\/postfix\/main.cf<\/strong><\/p>\n<p><strong># Sender restrictions<\/strong><br \/>\nsmtpd_sender_restrictions =<br \/>\npermit_mynetworks,<br \/>\nreject_non_fqdn_sender,<br \/>\nreject_unknown_sender_domain,<br \/>\npermit<br \/>\n<strong>#<\/strong><br \/>\nreject_rbl_client zen.spamhaus.org,<br \/>\nreject_rbl_client bl.spamcop.net,<br \/>\ncheck_policy_service unix:postgrey\/socket,<br \/>\npermit<br \/>\n<strong># Postfix AntiSpam Configuration<\/strong><br \/>\ndisable_vrfy_command = yes<br \/>\nsmtpd_helo_required = yes<br \/>\nsmtpd_helo_restrictions = permit_mynetworks,<br \/>\nreject_non_fqdn_hostname,<br \/>\nreject_invalid_hostname,<br \/>\npermit<br \/>\n<strong>#<\/strong><br \/>\nsmtpd_sasl_auth_enable = yes<br \/>\nsmtpd_sasl_local_domain = $myhostname<br \/>\n<strong>#<\/strong><br \/>\nbroken_sasl_auth_clients = yes<br \/>\nsmtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated<br \/>\n<strong>#<\/strong><br \/>\nsmtpd_error_sleep_time = 1s<br \/>\nsmtpd_soft_error_limit = 10<br \/>\nsmtpd_hard_error_limit = 20<br \/>\nsmtpd_client_restrictions = permit_mynetworks permit_inet_interfaces<br \/>\n<strong>#<\/strong><br \/>\nsmtpd_enforce_tls = yes<br \/>\nsmtpd_tls_loglevel = 1<br \/>\nsmtpd_use_tls = yes<br \/>\nsmtpd_tls_key_file = \/etc\/postfix\/smtpd.key<br \/>\nsmtpd_tls_cert_file = \/etc\/postfix\/smtpd.cert<br \/>\n<strong># Experimental<\/strong><br \/>\nsmtpd_tls_security_level = may<br \/>\nsmtpd_tls_auth_only = yes<br \/>\nsmtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination<br \/>\nsmtpd_sasl_security_options = noanonymous<br \/>\nsmtpd_sasl_application_name = smtpd<\/p>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been setting up a new mail server recently with Postfix and SMTP Auth, and got the error message &#8220;no SASL authentication mechanisms&#8221;. If you have enabled SMTP Auth with Postfix like this: smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination and are getting messages &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2017\/02\/22\/postfix-smtp-auth-error-no-sasl-authentication-mechanisms\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Postfix SMTP Auth Error &#8220;no SASL authentication mechanisms&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Postfix SMTP Auth Error \"no SASL authentication mechanisms\" - HP Server","description":"I have been setting up a new mail server recently with Postfix and SMTP Auth, and got the error message \"no SASL authentication mechanisms\". If you have enabled"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1142","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1142"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1142\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}