田添 一哉と申します。
【 Satoshi IWAMOTO 】さんが
【 Mon, 12 Dec 2005 15:56:49 +0900 】に書かれた
【 [vine-users:073651] Re: postfix with smtp auth 】のメールに対する返
信です。
B フレッツ@nifty 利用者で、自宅 SMTP サーバーを立てているのですが、
2/15 から始まる Outbound Port25 Blocking の影響を受けるため、いわもとさ
んの投稿[vine-users:073649] を参考に、対応を進めているのですが、うまくい
かないところがありますので、よろしければ、コメントいただけないでしょう
か?
使用環境
Vine Linux 3.2
Postfix 2.0.20(apt-get しました。)
ネットワーク
ISP smtp --- B Flet's --- WebCaster V110 --- 自宅 smtp server
やったこと
(1) cyrus-sasl-1.5.28-2 は apt で導入されていました。
(2) postfix の srpm を入手(apt-get source にて)し、spec ファイルを
次のとおり修正しました。
CCARGS="-DMAX_DYNAMIC_MAPS \
-DHAS_LDAP \
-DHAS_PCRE -I/usr/include/pcre \
-DHAS_MYSQL -I/usr/include/mysql \
-DHAS_PGSQL -I/usr/include/pgsql \
-DUSE_SASL_AUTH -I/usr/include" \ この行を追加
AUXLIBS="-L/usr/lib -lsasl" "" の中を追加
(3) rpm -bb postfix.spec にて、Rebuild しました。
(4) 作成されたパッケージを rpm -Uvh にてインストールしました。
(5) main.cf の次の箇所を変更しました。
relayhost = [smtp.nifty.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/nifty_password
smtp_sasl_security_options = noanonymous
(6) vi /etc/postfix/nifty_password にて、パスワードファイルを作成し
ました。
(7) postmap /etc/postfix/nifty_password を実行しました。
(8) postfix を再起動しました。
(9) Sylpheed から自分宛にメール送信してみたのですが、届かないため、
maillog を確認してみたところ、smtp.nifty.com にて認証がなされて
いないようです。
---- /var/log/maillog から抜粋 ----------------------------------------
Dec 18 15:30:13 mail postfix/qmgr[9891]: B63312AF88:
from=<tazoe-kazuya@xxxxxxxxxxxxxxxxxx>, size=1119, nrcpt=1 (queue
active) Dec 18 15:30:13 mail postfix/smtpd[9893]: disconnect from
unknown[192.168.0.20] Dec 18 15:30:14 mail postfix/smtp[9897]:
B63312AF88: to=<tazoe-kazuya@xxxxxxxxxxxxxxxxxx>, relay=smtp.nifty.com
[202.248.238.12], delay=1, status=bounced (host smtp.nifty.com
[202.248.238.12] said: 530 5.7.0 Authentication required (in reply to
MAIL FROM command))
Dec 18 15:30:14 mail postfix/cleanup[9895]:
0DAEC2AF89:
message-id=<20051218063014.0DAEC2AF89@xxxxxxxxxxxxxxxxxxxxxx>
Dec 18 15:30:14 mail postfix/qmgr[9891]: 0DAEC2AF89: from=<>, size=2987,
nrcpt=1 (queue active)
Dec 18 15:30:14 mail postfix/smtp[9897]:
0DAEC2AF89: to=<tazoe-kazuya@xxxxxxxxxxxxxxxxxx>, relay=smtp.nifty.com
[202.248.238.12], delay=0, status=bounced (host smtp.nifty.com
[202.248.238.12] said: 530 5.7.0 Authentication required (in reply to
MAIL FROM command))
-----------------------------------------------------------------------------
なにか手順で漏れているのか、設定が足りないのか、見当が付かず、手詰ま
りとなっています。よろしければ、ご助言いただけませんでしょうか?
----+----1----+----2----+----3----+----4----+----5----+----6----+----7
田添 一哉 (Tazoe Kazuya) URL http://www.thinkpad-lover.org/
PC:ThinkPad T41改 OS:TurboLinux 10F mailer:Sylpheed 2.1.3