\u81ea\u5b85\u306b\u7f6e\u3044\u3066\u3042\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\uff08FreeBSD\uff09\u306b wordpress \u3092\u5165\u308c\u3066 blog \u30b5\u30fc\u30d3\u30b9\u3092\u904b\u55b6\u3057\u3066\u3044\u308b\u3002<\/p>\n
\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306f\u9593\u306b\u5408\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u306e\u30b5\u30fc\u30d0\u3067\u30e1\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u308b\u5fc5\u8981\u306f\u306a\u3044\u304c\u3001blog \u306b\u30b3\u30e1\u30f3\u30c8\u304c\u4ed8\u3044\u305f\u3068\u304d\u306b\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u306a\u3069\u306f\u6b32\u3057\u3044\u304b\u3089\u30e1\u30fc\u30eb\u304c\u9001\u308c\u308b\u3088\u3046\u306b\u306f\u3057\u305f\u3044\u3002<\/p>\n
\u3057\u304b\u3057\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u306e OP25B \u306b\u3088\u3063\u3066\u3053\u306e\u30b5\u30fc\u30d0\u81ea\u8eab\u304c\u76f4\u63a5\u30e1\u30fc\u30eb\u3092\u9001\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002<\/p>\n
\u305d\u3053\u3067\u3001OP25B \u306e\u5f71\u97ff\u304c\u306a\u3044\u5225\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u30e1\u30fc\u30eb\u3092\u4e2d\u7d99\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n
MTA \u3067\u306f Postfix \u304c\u8a2d\u5b9a\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u3066\u3088\u3044\u3068\u601d\u3046\u304c\u3001FreeBSD \u306e\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b MTA \u306fSendmail \u3067\u3001\u30e1\u30fc\u30eb\u3092\uff11\u7b87\u6240\u306b\u4e2d\u7d99\u4ee5\u6765\u3059\u308b\u3060\u3051\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092\u5165\u308c\u66ff\u3048\u308b\u306e\u3082\u4ef0\u3005\u3057\u3044\u306e\u3067\u4eca\u56de\u306f Sendmail \u3067\u8a2d\u5b9a\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n
Sendmail \u30b7\u30b9\u30c6\u30e0\u306e\u632f\u308b\u821e\u3044\u306f \/etc\/mail\/sendmail.cf \u306b\u8a18\u8ff0\u3059\u308b\u304c\u3001m4 \u30de\u30af\u30ed\u306b\u3088\u3063\u3066\u3053\u308c\u3092\u751f\u6210\u3059\u308b\u4ed5\u7d44\u307f\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u4f7f\u3046\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n
\/etc\/mail \u306b\u79fb\u52d5\u3059\u308b\u3068 freebsd.mc \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u3066\u3053\u308c\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e sendmail.cf \u3092\u751f\u6210\u3059\u308b m4 \u30de\u30af\u30ed\u3002<\/p>\n
\/etc\/mail \u306b\u306f Makefile \u304c\u3042\u3063\u3066 make \u30b3\u30de\u30f3\u30c9\u3067 sendmail.cf \u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n
\u3068\u308a\u3042\u3048\u305a<\/p>\n
#su\r\n#make<\/pre>\n\u3068\u3057\u3066\u307f\u308b\u3002<\/p>\n
\u521d\u56de\u306e make \u3067\u306f<\/p>\n
cp freebsd.mc your.host.name.submit.mc\r\n\/usr\/bin\/m4 -D_CF_DIR_=\/usr\/share\/sendmail\/cf\/ \/usr\/share\/sendmail\/cf\/m4\/cf.m4 your.host.name.mc > your.host.name.cf<\/pre>\n\u306e\u3088\u3046\u306b\u51fa\u3066\u3001\u30db\u30b9\u30c8\u540d.mc \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u308b\u306e\u3067\u4ee5\u5f8c\u3053\u308c\u3092\u7de8\u96c6\u3001make \u3057\u3066 \u30db\u30b9\u30c8\u540d.cf \u3092\u5f97\u308b\u3002<\/p>\n
\u4eca\u56de\u306e\u3088\u3046\u306b\u7279\u5b9a\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u4e2d\u7d99\u3092\u4f9d\u983c\u3059\u308b\u306b\u306fSMART_HOST\u30de\u30af\u30ed\u3092\u8a2d\u5b9a\u3059\u308c\u3070\u3044\u3044\u3088\u3046\u3002<\/p>\n
nullclient\u3067\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e @ \u4ee5\u4e0b\u304c\u4e2d\u7d99\u3092\u4f9d\u983c\u3057\u305f\u30db\u30b9\u30c8\u540d\u306b\u66f8\u304d\u63db\u308f\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n
your.host.name.mc \u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3002<\/p>\n
dnl your.host.name.mc\r\ndefine(`SMART_HOST', `relay.smtp.server')dnl\r\ndefine(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl\r\nFEATURE(`authinfo', `hash \/etc\/mail\/relay-auth')\r\nTRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')\r\ndefine(`confAUTH_MECHANISMS', 'EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl<\/pre>\nm4\u3067\u306fdnl\u4ee5\u4e0b\u306f\u30b3\u30e1\u30f3\u30c8\u3002<\/p>\n
\u884c\u672b\u306bdnl\u3092\u3064\u3051\u3066\u3044\u308b\u306e\u306f\u3001\u30de\u30af\u30ed\u7f6e\u63db\u3057\u305f\u5f8c define \u6587\u304c\u7a7a\u884c\u3068\u3057\u3066\u6b8b\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3001\u5fc5\u8981\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u3002<\/p>\n
define(`SMART_HOST’, `relay.smtp.server’)dnl<\/strong>
\nSMART_HOST\u306e\u8a2d\u5b9a\u3002relay.smtp.server \u306f\u4e2d\u7d99\u3092\u4f9d\u983c\u3059\u308b\u30b5\u30fc\u30d0\u3002
\ncf \u30d5\u30a1\u30a4\u30eb\u3067\u306f DSrelay.smtp.server \u3068\u3044\u3046\u884c\u306b\u306a\u308b\u3002<\/p>\ndefine(`ESMTP_MAILER_ARGS’, `TCP $h 587′)dnl<\/strong>
\n\u30e1\u30fc\u30eb\u3092\u9001\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5f15\u6570\u3092\u6307\u5b9a\u3002
\nTCP\u306fsendmail\u306b\u5185\u8535\u3055\u308c\u3066\u3044\u308bSMTP\u3067\u30e1\u30fc\u30eb\u3092\u9001\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3002
\n$h\u306f\u76f8\u624b\u306e\u30db\u30b9\u30c8\u540d\u3067\u901a\u5e38\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e@\u4ee5\u4e0b\u3060\u3051\u3069SMART_HOST\u3092\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u306f\u4e2d\u7d99\u4f9d\u983c\u3059\u308b\u30b5\u30fc\u30d0\u3002
\nSMTP\u306e25\u756a\u3067\u9001\u3063\u305f\u306e\u3067\u306fOP25B\u306b\u5f15\u3063\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u914d\u9001\u30dd\u30fc\u30c8\u3067\u9001\u3063\u3066\u3044\u308b\u3002<\/p>\nFEATURE(`authinfo’, `hash \/etc\/mail\/relay-auth’)<\/strong>
\nSMTP-Auth\u306b\u3088\u308b\u8a8d\u8a3c\u3092\u4f7f\u7528\u3059\u308b\u306e\u3067\u305d\u306e\u8a2d\u5b9a\u3092\u547c\u3073\u51fa\u3059\u3002
\n\/etc\/mail\/relay-auth \u306f\u5f8c\u3067\u4f5c\u6210\u3002<\/p>\nTRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)<\/strong>
\ndefine(`confAUTH_MECHANISMS’, ‘EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)dnl<\/strong>
\n\u4f7f\u7528\u3059\u308b\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u3092\u6307\u5b9a\u3002<\/p>\n\u3042\u3068\u306f make \u3057\u3066\u3067\u304d\u305f your.host.name.cf \u3092<\/p>\n
# cp your.host.name.cf sendmail.cf\r\n# \/etc\/rc.d\/sendmail restart<\/pre>\n\u3068\u3057\u3066 sendmail.cf \u306b\u30b3\u30d4\u30fc\u3057\u3066\u3001sendmail \u3092\u30ea\u30b9\u30bf\u30fc\u30c8\u3059\u308c\u3070\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u308b\u3002<\/p>\n
\u305f\u3060\u3001\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u306e sendmail \u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067 SMTP-Auth \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u3068 Warning \u304c\u51fa\u308b\u3002sendmail \u3092 SASL \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u30ea\u30d3\u30eb\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n
Sendmail \u3092\u30ea\u30d3\u30eb\u30c9<\/h3>\n
\u3068\u308a\u3042\u3048\u305a SASL \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b ports \u304b\u3089 security\/cyrus-sasl2 \u3092\u5165\u308c\u308b\u3002<\/p>\n
\u30b3\u30f3\u30d5\u30a3\u30b0\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067\u3088\u304b\u3063\u305f\u3002<\/p>\n
\u6b21\u306b \/etc\/make.conf \u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3002<\/p>\n
# \/etc\/make.conf\r\nSENDMAIL_CFLAGS=-I\/usr\/local\/include -DSASL=2\r\nSENDMAIL_LDFLAGS=-L\/usr\/local\/lib\r\nSENDMAIL_LDADD=-lsasl2<\/pre>\nsendmail \u3092\u30ea\u30d3\u30eb\u30c9\u3002\u30bd\u30fc\u30b9\u3092\u5c55\u958b\u3057\u3066\u306a\u3044\u5834\u5408\u306f csup \u306a\u3069\u3067\u53d6\u5f97\u3001\u5c55\u958b\u3057\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n
# cd \/usr\/src\/lib\/libsmutil\r\n# make obj && make depend && make\r\n# cd \/usr\/src\/lib\/libsm\r\n# make obj && make depend && make\r\n# cd \/usr\/src\/usr.sbin\/sendmail\r\n# make obj && make depend && make && make install<\/pre>\n\u518d\u3073 sendmail \u3092\u30ea\u30b9\u30bf\u30fc\u30c8\u3059\u308b\u3068 Warning \u306f\u6d88\u3048\u305f\u3002<\/p>\n
\u8a8d\u8a3c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u308b<\/h3>\n
\u5148\u307b\u3069 sendmail.cf \u306b\u8a2d\u5b9a\u3057\u305f \/etc\/mail\/relay-auth \u3092\u4f5c\u308b\u3002<\/p>\n
\/etc\/mail\/relay-auth \u306b<\/p>\n
AuthInfo:your.host.name \"U:name\" \"I:name@your.host.name\" \"P:password\"<\/pre>\n\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002I \u306b\u306f\u8a8d\u8a3cID\u3092\u66f8\u304f\u3002\u666e\u901a\u306fPOP\u306e\u8a8d\u8a3cID\u3068\u540c\u3058\u306a\u306e\u3067\u30c9\u30e1\u30a4\u30f3\u307e\u3067\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u306f\u8981\u78ba\u8a8d\uff08eonet.ne.jp \u3067\u306f@\u306e\u4ee3\u308f\u308a\u306b%\uff09\u3002<\/p>\n
\u305d\u306e\u5f8c\u3001<\/p>\n
# cd \/etc\/mail\r\n# makemap hash relay-auth < relay-auth\r\n# chmod 600 relay-auth.db relay-auth<\/pre>\n\u3068\u3059\u308b\u3068\u3001relay-auth.db \u304c\u3067\u304d\u3066\u8a8d\u8a3c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u306f\u5b8c\u4e86\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u66f8\u304b\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092 600 \u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n
\u4e2d\u7d99\u3059\u308b\u30b5\u30fc\u30d0\u3092\u8a2d\u5b9a<\/h3>\n
\u30d7\u30ed\u30d0\u30a4\u30c0\u304c\u4e2d\u7d99\u3092\u53d7\u3051\u5165\u308c\u3066\u304f\u308c\u308b\u5834\u5408\u306f\u4ee5\u4e0a\u3067\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u304c\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f\u4e2d\u7d99\u3092\u53d7\u3051\u5165\u308c\u308b\u30b5\u30fc\u30d0\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n
\u81ea\u5206\u306e\u74b0\u5883\u306e\u5834\u5408\u3001\u3053\u3061\u3089\u3082 FreeBSD \u3060\u304c MTA \u306f Postfix \u306a\u306e\u3067 Postfix \u306e\u5834\u5408\u306b\u3064\u3044\u3066\u66f8\u304f\u3002<\/p>\n
\u3068\u308a\u3042\u3048\u305a ports \u304b\u3089 security\/cyrus-sasl2 \u3092\u5165\u308c\u308b\u3002\u30b3\u30f3\u30d5\u30a3\u30b0\u306f\u305d\u306e\u307e\u307e\u3067\u3088\u304b\u3063\u305f\u3002<\/p>\n
Postfix \u3092 SASL \u4ed8\u304d\u3067\u30d3\u30eb\u30c9\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u30b3\u30f3\u30d5\u30a3\u30b0\u3067 SASL \u3092\u6709\u52b9\u306b\u3057\u3066\u30ea\u30d3\u30eb\u30c9\u3057\u3066\u304a\u304f\u3002<\/p>\n
\/usr\/local\/etc\/postfix\/main.cf \u3092\u4fee\u6b63\u3002<\/p>\n
\r\nsmtpd_sasl_auth_enable=yes\r\nsmtpd_sasl_security_options=noanonymous\r\n\r\nsmtpd_recipient_restrictions =\r\n permit_mynetworks,\r\n permit_sasl_authenticated,\r\n reject_unauth_destination\r\n<\/pre>\nsmtpd_recipient_restrictions \u306fSMTP\u3067\u9001\u4fe1\u5148\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u53d7\u3051\u53d6\u3063\u305f\u3068\u304d\u306b\u8a31\u53ef\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u306a\u306e\u3067\u3001\u8981\u306f\u4e2d\u7d99\u3092\u8a31\u53ef\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002<\/p>\n
\u304a\u305d\u3089\u304f\u5143\u304b\u3089\u3042\u308b\u8a2d\u5b9a\u306a\u306e\u3067\u3001 permit_sasl_authenticated \u3092\u8ffd\u8a18\u3057\u305f\u5f62\u306b\u306a\u308b\u3002<\/p>\n
\u3042\u3068\u306f\u3001<\/p>\n
\r\n# saslpasswd2 -c -u mydomainname myaccount\r\n# postfix reload\r\n<\/pre>\n\u3068\u3057\u3066 relay-auth \u3067\u8a2d\u5b9a\u3057\u305f\u306e\u3068\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u3084\u308c\u3070\u3088\u3044\u3002<\/p>\n
\u53c2\u8003<\/strong>
\n\u8fd1\u9803\u306esendmail\u4e8b\u60c5<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u81ea\u5b85\u306b\u7f6e\u3044\u3066\u3042\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\uff08FreeBSD\uff09\u306b wordpress \u3092\u5165\u308c\u3066 blog \u30b5\u30fc\u30d3\u30b9\u3092\u904b\u55b6\u3057\u3066\u3044\u308b\u3002
\n\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306f\u9593\u306b\u5408\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u306e\u30b5\u30fc\u30d0\u3067\u30e1\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u308b\u5fc5\u8981\u306f\u306a\u3044\u304c\u3001blog \u306b\u30b3\u30e1\u30f3\u30c8\u304c\u4ed8\u3044\u305f\u3068\u304d\u306b\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u306a\u3069\u306f\u6b32\u3057\u3044\u304b\u3089\u30e1\u30fc\u30eb\u304c\u9001\u308c\u308b\u3088\u3046\u306b\u306f\u3057\u305f\u3044\u3002
\n\u3057\u304b\u3057\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u306e OP25B \u306b\u3088\u3063\u3066\u3053\u306e\u30b5\u30fc\u30d0\u81ea\u8eab\u304c\u76f4\u63a5\u30e1\u30fc\u30eb\u3092\u9001\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002
\n\u305d\u3053\u3067\u3001OP25B \u306e\u5f71\u97ff\u304c\u306a\u3044\u5225\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u30e1\u30fc\u30eb\u3092\u4e2d\u7d99\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u306b\u3059\u308b\u3002 Continue reading Sendmail \u3067 OP25B \u56de\u907f<\/span>