{"id":1636,"date":"2018-04-27T12:46:19","date_gmt":"2018-04-27T19:46:19","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1636"},"modified":"2018-11-27T12:38:51","modified_gmt":"2018-11-27T19:38:51","slug":"centos-7-smarthost-authentication","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1636","title":{"rendered":"CentOS 7 &#8211; smarthost authentication"},"content":{"rendered":"<p>Using the default MTA (Postfix), the following needs to be configured.  I have tested authenticating to an Exchange 2010 server.<\/p>\n<p>I am not really sure about the minimum software needed in CentOS 7 for this, but I did install the following in a minimum installation (postfix installed by default):<\/p>\n<blockquote><p>cyrus-sasl-plain<br \/>\ncyrus-sasl-lib<\/p><\/blockquote>\n<p>Create a credential file:<\/p>\n<blockquote><p># cd \/etc\/postfix<br \/>\n# vi cr_info<br \/>\nmy.server.domain theusername:andtheirpassword<br \/>\n# chmod 600 cr_info<br \/>\n# postmap hash:\/etc\/postfix\/cr_info<\/p><\/blockquote>\n<p>Configure postfix for smarthost authentication:<\/p>\n<blockquote><p># vi \/etc\/postfix\/main.cf<br \/>\n&#8230;<br \/>\n# JGZ 4\/27\/2018<br \/>\nrelayhost = my.server.domain<br \/>\nsmtp_use_tls = yes<br \/>\nsmtp_sasl_auth_enable = yes<br \/>\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/cr_info<br \/>\nsmtp_sasl_security_options = noanonymous<br \/>\n&#8230;<\/p><\/blockquote>\n<p>Restart postfix:<\/p>\n<blockquote><p># postfix reload<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Using the default MTA (Postfix), the following needs to be configured. I have tested authenticating to an Exchange 2010 server. I am not really sure about the minimum software needed in CentOS 7 for this, but I did install the following in a minimum installation (postfix installed by default): cyrus-sasl-plain cyrus-sasl-lib Create a credential file: [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1636","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1636"}],"version-history":[{"count":2,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1636\/revisions"}],"predecessor-version":[{"id":1696,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1636\/revisions\/1696"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}