{"id":494,"date":"2015-06-10T20:51:02","date_gmt":"2015-06-10T11:51:02","guid":{"rendered":"https:\/\/jg7sfr.mydns.jp\/?p=494"},"modified":"2015-06-11T09:41:45","modified_gmt":"2015-06-11T00:41:45","slug":"smtp-auth","status":"publish","type":"post","link":"https:\/\/jg7sfr.mydns.jp\/?p=494","title":{"rendered":"SMTP-AUTH\u2192\u5229\u7528\u4e2d\u6b62"},"content":{"rendered":"<p>vi \/etc\/make.conf<br \/>\n\u4ee5\u4e0b\u306e\u884c\u8ffd\u52a0\u3002<br \/>\n   # Add SMTP AUTH support to Sendmail<br \/>\n    SENDMAIL_CFLAGS+=   -I\/usr\/local\/include -DSASL=2<br \/>\n    SENDMAIL_LDFLAGS+=  -L\/usr\/local\/lib<br \/>\n    SENDMAIL_LDADD+=    -lsasl<\/p>\n<p># cd \/usr\/ports\/security\/cyrus-sasl2-saslauthd<br \/>\n# make config<br \/>\n# make install clean<\/p>\n<p>vi \/etc\/rc.conf<br \/>\nsaslauthd_enable=&#8221;YES&#8221;<br \/>\nsaslauthd_flags=&#8221;-a pam&#8221;<\/p>\n<p># \/usr\/local\/etc\/rc.d\/saslauthd start<\/p>\n<p># svnlite checkout https:\/\/svn0.us-west.freebsd.org\/base\/release\/10.1.0\/ \/usr\/src<br \/>\nError validating server certificate for &#8216;https:\/\/svn0.us-west.freebsd.org:443&#8242;:<br \/>\n &#8211; The certificate is not issued by a trusted authority. Use the<br \/>\n   fingerprint to validate the certificate manually!<br \/>\nCertificate information:<br \/>\n &#8211; Hostname: svnmir.ysv.FreeBSD.org<br \/>\n &#8211; Valid: from Jul 29 22:01:21 2013 GMT until Dec 13 22:01:21 2040 GMT<br \/>\n &#8211; Issuer: clusteradm, FreeBSD.org, CA, US(clusteradm@FreeBSD.org)<br \/>\n &#8211; Fingerprint: 1C:BD:85:95:11:9F:EB:75:A5:4B:C8:A3:FE:08:E4:02:73:06:1E:61<br \/>\n(R)eject, accept (t)emporarily or accept (p)ermanently?<\/p>\n<p># cd \/usr\/src\/lib\/libsm<br \/>\n# make obj depend all<br \/>\n# cd \/usr\/src\/lib\/libsmutil<br \/>\n# make obj depend all<br \/>\n# cd \/usr\/src\/usr.sbin\/sendmail<br \/>\n# make clean obj depend all install<br \/>\n# sendmail -d0.1 -bv root<\/p>\n<p>Version 8.14.9<br \/>\n Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7<br \/>\n                NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2<br \/>\n                SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG<\/p>\n<p>============ SYSTEM IDENTITY (after readcf) ============<br \/>\n      (short domain name) $w = jg7sfr<br \/>\n  (canonical domain name) $j = jg7sfr.mydns.jp<br \/>\n         (subdomain name) $m = mydns.jp<br \/>\n              (node name) $k = jg7sfr.mydns.jp<br \/>\n========================================================<\/p>\n<p>jg7sfr@*****&#8230; deliverable: mailer relay, host smtp.mail.*******, user jg7sfr@*****<\/p>\n<p># cd \/etc\/mail<br \/>\n# make<\/p>\n<p># make<br \/>\n\/usr\/bin\/m4 -D_CF_DIR_=\/usr\/share\/sendmail\/cf\/   \/usr\/share\/sendmail\/cf\/m4\/cf.m4 \/etc\/mail\/sendmail.mc > \/etc\/mail\/sendmail.cf<br \/>\n\/usr\/bin\/m4 -D_CF_DIR_=\/usr\/share\/sendmail\/cf\/   \/usr\/share\/sendmail\/cf\/m4\/cf.m4 jg7sfr.mydns.jp.submit.mc > jg7sfr.mydns.jp.submit.cf<\/p>\n<p>\/etc\/mail\/jg7sfr.mydns.jp.submit.mc<br \/>\ndnl Set SASL options<br \/>\nTRUST_AUTH_MECH(`PLAIN&#8217;)<br \/>\ndefine(`confAUTH_MECHANISMS&#8217;, `PLAIN&#8217;)<br \/>\n# make install<br \/>\n# \/etc\/rc.d\/sendmail restart<\/p>\n<p>\/usr\/ports\/security\/cyrus-sasl2\/files\/Sendmail.README\u3092\u898b\u308b\u3002<\/p>\n<p>\u9762\u5012\u306a\u306e\u3067\u307e\u305f\u660e\u65e5\u3002<\/p>\n<p>\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u30b5\u30a4\u30c8\u3002<br \/>\nhttp:\/\/blog.bixr.com\/2014\/02\/696\/<br \/>\nhttp:\/\/freebsd.fkimura.com\/smtpauth-b0.html<br \/>\nhttp:\/\/www.next-hop.net\/~hiraga\/FreeBSD\/smtp-auth-tls.shtml<br \/>\nhttps:\/\/www.freebsd.org\/doc\/ja_JP.eucJP\/books\/handbook\/SMTP-Auth.html<br \/>\nhttp:\/\/applelife100.blogspot.jp\/2009\/09\/freebsd-15-smtp-authentication-smtp.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>vi \/etc\/make.conf \u4ee5\u4e0b\u306e\u884c\u8ffd\u52a0\u3002 # Add SMTP AUTH support to Sendmail SENDMAIL_CFLAGS+= -I\/usr\/local\/include -DSASL=2 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-494","post","type-post","status-publish","format-image","hentry","category-bsd","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=494"}],"version-history":[{"count":14,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/494\/revisions\/509"}],"wp:attachment":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}