メールが届かない

Date 2015-1-20 5:28:34 | Topic: Linux (CentOS)運用時のメモ

自分のサーバーからのメールが届いて入るので気がつかなかったが、外部からのメールが届かない。
自分のドメイン内のメールは送受信とも問題ない
この時のメールーのログ(/var/log/maillog)
Jan 20 13:58:08 web4 postfix/smtpd[10859]: connect from mm.e-trend.co.jp[221.253.81.58]
Jan 20 13:58:09 web4 postfix/smtpd[10859]: NOQUEUE: reject: RCPT from mm.e-trend.co.jp[221.253.81.58]:
 554 5.7.1 Service unavailable; Client host [mm.e-trend.co.jp] blocked using rhsbl.ahbl.org; List shut down.
 See: http://www.ahbl.org/content/last-notice-wildcarding-services-jan-1st;
 from=<ds-id0i54rctffrl.febd91f4@mm.e-trend.co.jp> to=<f-otake@kinryokai.net> proto=ESMTP helo=<mm.e-trend.co.jp>
Jan 20 13:58:09 web4 postfix/smtpd[10859]: lost connection after RCPT from mm.e-trend.co.jp[221.253.81.58]
Jan 20 13:58:09 web4 postfix/smtpd[10859]: disconnect from mm.e-trend.co.jp[221.253.81.58]
Jan 20 14:00:27 web4 postfix/smtpd[11019]: connect from m112.secure.ne.jp[150.60.13.240]
Jan 20 14:00:28 web4 postfix/smtpd[11019]: 32390807B6: client=m112.secure.ne.jp[150.60.13.240]
Jan 20 14:00:28 web4 postfix/smtpd[11019]: disconnect from m112.secure.ne.jp[150.60.13.240]
[10859]の様にエラーの内容がlogに残っているものもあれば、[11019]の様に突然disconnectしている物も在る。
送信相手に帰ったエラーメッセージ
Hi. This is the qmail-send program at m112.secure.ne.jp.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<f-otake@kinryokai.net>:
218.219.246.130 does not like recipient.
Remote host said: 554 5.7.1 Service unavailable; Client host [m112.secure.ne.jp] blocked using rhsbl.ahbl.org; List shut down.
 See: http://www.ahbl.org/content/last-notice-wildcarding-services-jan-1st
Giving up on 218.219.246.130.
この原因は私がスパムチェックの為に使っているahbl.orgのweb(データーベース)が止まっている為です。そこで設定ファイルを変更し、ここを使わないようにする
# gedit /etc/postfix/main.cf
smtpd_client_restrictions =
     permit_mynetworks,
     reject_non_fqdn_sender,
     reject_non_fqdn_recipient,
     reject_unknown_client,
     reject_rbl_client all.rbl.jp,
     reject_rbl_client zen.spamhaus.org,
     reject_rbl_client bl.spamcop.net,
#    reject_rhsbl_client rhsbl.ahbl.org, → コメントアウトする
     check_client_access hash:/etc/postfix/access,
     permit
そしてpostfixを再起動
# service postfix restart
これで外部からメールが来るようになった


This article comes from 錦稜会 KINRYOKAI
https://www.kinryokai.net

The URL for this story is:
https://www.kinryokai.net/article.php?storyid=251