SMTP-AUTH→利用中止

vi /etc/make.conf
以下の行追加。
# Add SMTP AUTH support to Sendmail
SENDMAIL_CFLAGS+= -I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS+= -L/usr/local/lib
SENDMAIL_LDADD+= -lsasl

# cd /usr/ports/security/cyrus-sasl2-saslauthd
# make config
# make install clean

vi /etc/rc.conf
saslauthd_enable=”YES”
saslauthd_flags=”-a pam”

# /usr/local/etc/rc.d/saslauthd start

# svnlite checkout https://svn0.us-west.freebsd.org/base/release/10.1.0/ /usr/src
Error validating server certificate for ‘https://svn0.us-west.freebsd.org:443′:
– The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
– Hostname: svnmir.ysv.FreeBSD.org
– Valid: from Jul 29 22:01:21 2013 GMT until Dec 13 22:01:21 2040 GMT
– Issuer: clusteradm, FreeBSD.org, CA, US(clusteradm@FreeBSD.org)
– Fingerprint: 1C:BD:85:95:11:9F:EB:75:A5:4B:C8:A3:FE:08:E4:02:73:06:1E:61
(R)eject, accept (t)emporarily or accept (p)ermanently?

# cd /usr/src/lib/libsm
# make obj depend all
# cd /usr/src/lib/libsmutil
# make obj depend all
# cd /usr/src/usr.sbin/sendmail
# make clean obj depend all install
# sendmail -d0.1 -bv root

Version 8.14.9
Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = jg7sfr
(canonical domain name) $j = jg7sfr.mydns.jp
(subdomain name) $m = mydns.jp
(node name) $k = jg7sfr.mydns.jp
========================================================

jg7sfr@*****… deliverable: mailer relay, host smtp.mail.*******, user jg7sfr@*****

# cd /etc/mail
# make

# make
/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
/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

/etc/mail/jg7sfr.mydns.jp.submit.mc
dnl Set SASL options
TRUST_AUTH_MECH(`PLAIN’)
define(`confAUTH_MECHANISMS’, `PLAIN’)
# make install
# /etc/rc.d/sendmail restart

/usr/ports/security/cyrus-sasl2/files/Sendmail.READMEを見る。

面倒なのでまた明日。

参考にさせていただいたサイト。
http://blog.bixr.com/2014/02/696/
http://freebsd.fkimura.com/smtpauth-b0.html
http://www.next-hop.net/~hiraga/FreeBSD/smtp-auth-tls.shtml
https://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/SMTP-Auth.html
http://applelife100.blogspot.jp/2009/09/freebsd-15-smtp-authentication-smtp.html

カテゴリー: BSD

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA


日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)