"
네이트에 메일 발송이 안되어서 로그 확인
Nov 13 18:34:48 localhost sendmail[25442]: xAD9Yltm025440: to=<ixxxx@nate.com>, ctladdr=<me@yeonghoon.kim> (1004/1004), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120459, relay=mx1.nate.com. [117.53.114.15], dsn=4.0.0, stat=Deferred: 421 Your ip is filtered by RBL.(IP:xxx.xxx.xxx.51)(Caues:https://www.spamhaus.org/query/ip/xxx.xxx.xxx.51)
링크 확인 후 해당 페이지 접속
XBL에 리스트가 있어서 CBL Lookup 클릭
xxx.xxx.xxx.51 was found to be using the following name as the HELO/EHLO parameter during connections: ""localhost.localdomain"".
실제로 위에 나온 내용처럼 메세지가 발생되는지 확인
telnet xxx.xxx.xxx.51 25
Trying xxx.xxx.xxx..51...
Connected to xxx.xxx.xxx.51.
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.15.2/8.15.2; Thu, 14 Nov 2019 10:43:15 +0900
HELO xxx.xxx.xxx.51
250 localhost.localdomain Hello [접속한 IP], pleased to meet you
localhost.localdomain을 리턴하는 메일서버가 스팸메일을 보내는 경우가 많아 차단된 것이므로 아래 링크를 참고하여 메일 설정 변경
https://www.abuseat.org/sendmailhelp.html
sed -i 's/#Dj$w.Foo.COM/Djmail.yeonghoon.kim/g' /etc/mail/sendmail.cf
systemctl restart sendmail.service
수정되었는지 확인
telnet xxx.xxx.xxx.51 25
Trying xxx.xxx.xxx.51...
Connected to xxx.xxx.xxx.51.
Escape character is '^]'.
220 mail.yeonghoon.kim ESMTP Sendmail 8.15.2/8.15.2; Thu, 14 Nov 2019 10:51:55 +0900
HELO xxx.xxx.xxx51
250 mail.yeonghoon.kim Hello [접속한 ip], pleased to meet you.
CBL Lookup 페이지 하단에서 SELF REMOVAL 항목이 존재하여 조치 후 리스트에서 제거 요청
메일큐 확인 시 발송되지 않은 메일 2통 존재. 시간이 지나면 발송될 것으로 예상됨.
[root@host-10-101-0-10 log]# mailq --help
/var/spool/mqueue (2 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
xAD9kMXb025790 10 Wed Nov 13 18:46 <me@yeonghoon.kim>
8BITMIME (Deferred: 421 Your ip is filtered by RBL.(IP:xxx.xxx.xxx.51)()
<xxxx@nate.com>
xAD9Yltm025440 16 Wed Nov 13 18:34 <me@yeonghoon.kim>
8BITMIME (Deferred)
<xxxx@nate.com>
Total requests: 2
약 1시간 후 정상적으로 메일 발송된 것을 확인
Nov 14 11:51:52 localhost sendmail[2235]: xAD9kMXb025790: to=<xxxx@nate.com>, ctladdr=<me@yeonghoon.kim> (1004/1004), delay=17:05:29, xdelay=00:00:00, mailer=esmtp, pri=1830452, relay=mx1.nate.com. [117.53.114.15], dsn=2.0.0, stat=Sent (Message accepted for delivery
"