728x90
sendmail Relaying denied. IP name lookup failed
sendmail access error
[root@dns1 ~]$ tail /var/log/maillog
Mar 30 02:21:29 dns1 dovecot: pop3-login: Login: user=<scbyun>, method=PLAIN, rip=192.168.43.237, lip=192.168.43.8
Mar 30 02:21:29 dns1 dovecot: POP3(scbyun): Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=579
Mar 30 02:22:53 dns1 sendmail[2463]: p2THMouO002463: ruleset=check_rcpt, arg1=<anti1346@gmail.com>, relay=[192.168.43.237], reject=550 5.7.1 <anti1346@gmail.com>... Relaying denied. IP name lookup failed [192.168.43.237]
[해결 방법]
[root@dns1 ~]$ cat /etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY
Connect:mail.sangchul.kr RELAY
Connect:sangchul.kr RELAY
Connect:192.168.43 RELAY
[root@dns1 ~]$
[root@dns1 ~]$ /usr/sbin/makemap hash /etc/mail/access < /etc/mail/access
**sendmail 재시작 없이 바로 적용됨
728x90
'리눅스' 카테고리의 다른 글
[리눅스] 하드디스크에 배드블록의 존재유무 점검 (0) | 2021.10.16 |
---|---|
[리눅스] 커널 컴파일 (0) | 2021.10.16 |
[리눅스] sendmail Relaying denied. IP name lookup failed (0) | 2021.10.16 |
[리눅스] 디스크의 배드블록 마크하기 (0) | 2021.10.16 |
[리눅스] Squirrelmail Install (0) | 2021.10.16 |
[리눅스] CentOS 7 RabbitMQ 설치 방법 (0) | 2021.10.16 |