海辺管理備忘録

YahooBB OP25B対策 (sendmail編)

OP25B実施後でも、ダイナミックDNSによる自前のSMTPサーバーを継続運用する為の記録

1.sendmailのSMTP-AUTH対応

Cyrus SASLをportsからインストールした後、
/etc/make.conf に下記を追加し、sendmailをコンパイルし直す。

ファイル /etc/make.conf

追加内容
SENDMAIL_CFLAGS=-I/usr/local/include/sasl1 -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl

参考URL
http://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/smtp-auth.html

2.Yahoo SMTPサーバーのSMTP-AUTHクライアントとして動作するよう設定

 ①.Change directory to where your sendmail configuration files (sendmail.mc and sendmail.cf) are located,usually /etc/mail/.
 ②.Create a safe subdirectory (suggested name auth/):
# mkdir auth
# chmod 700 auth

③.Create a file with your authentication information (suggested name auth/client-info):

AuthInfo:your.isp.net "U:root" "I:user" "P:password"

filling in your ISP's mail server, your user name, and your password. 
(Note: Earthlink, and perhaps other ISP's, requires your full e-mail address as a user name.) 

以下、実際のclient-infoの内容
AuthInfo:ybbsmtp.mail.yahoo.co.jp "U:[Yahoo! JAPAN ID]" "I:[登録メールアドレス(メイン)]" "P:[Yahoo! JAPAN IDのパスワード]"

④.Generate the authentication database and make both files readable only by root:
# cd auth
# makemap hash client-info < client-info
# chmod 600 client-info*
# cd ..

mbstringについて

php.iniの方は、先に入れたグループウエアの為に、
mbstring.internal_encoding = EUC-JP
mbstring.encoding_translation = On
としてあるので、weblogの下の.htaccessの内容を下記として暫定対応。

php_flag mbstring.encoding_translation Off
php_flag mbstring.http_input pass
php_flag mbstring.http_output pass