메일 로그를 확인해보면 아래와 같이 쌓인다.
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: to=, ctladdr= (3785/3785), delay=00:00:22, xdelay=00:00:22, mailer=esmtp, pri=60595, relay=pricol.co.in.linuxsystem.net. [210.114.223.93], dsn=5.7.1, stat=User unknown
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: to=, ctladdr= (3785/3785), delay=00:00:22, xdelay=00:00:22, mailer=esmtp, pri=60595, relay=pricol.co.in.linuxsystem.net. [210.114.223.93], dsn=5.7.1, stat=User unknown
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: forward /home/jane/.forward.web2: Permission denied
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: forward /home/jane/.forward: Permission denied
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: i4L5AUKP006022: DSN: User unknown
May 21 14:10:30 web2 sendmail[6022]: i4L5AUKP006022: to=, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=67283, dsn=2.0.0, stat=Sent
일단 의심되는 제일 첫 부분은 /etc/resolv.conf 파일내의
search linuxsystem.net 항목으로 도메인의 쿼리가 실패했을 경우
해당 도메인(원래는 2차 도메인의 이름만으로 쿼리할 목적인듯..)뒤에
linuxsystem.net을 붙여서 재쿼리하기 위해 사용이 되어 지는데
문제가 된 도메인이 그 순간 쿼리에 실패해서 linuxsystem이 붙은듯 하다.
일단 메일의 경우 순간적인 증상에 의해 발송이 지연되더라도
일정 시간이 지난 후 재발송이 되기 때문에 search 항목을 삭제했다.
그리고도 문제가 발생하는듯 해서 서버상에서 직접 아래와 같이
테스트를 해보니 호스트네임 부분에서 경고가 발생을 해서
해당 부분을 아래쪽과 같이 조치를 취했다.
[root@web2 var]# ping pricol.co.in
ping: unknown host pricol.co.in
[root@web2 var]# mail -v test@pricol.co.in
Subject: test
test.
.
Cc:
WARNING: local host name (web2) is not qualified; fix $j in config file
test@pricol.co.in... Connecting to [127.0.0.1] via relay...
220 web2.linuxsystem.net ESMTP Sendmail 8.12.8/8.12.5; Fri, 21 May 2004 14:30:48 +0900
>>> EHLO web2
250-web2.linuxsystem.net Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
>>> MAIL From: SIZE=43 AUTH=root@web2
250 2.1.0... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i4L5UmKP007366 Message accepted for delivery
test@pricol.co.in... Sent (i4L5UmKP007366 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 web2.linuxsystem.net closing connection
이 때 /etc/hosts 파일의 내용
[root@web2 var]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
210.114.223.106 web2
이 파일을 아래와 같이 수정
[root@web2 var]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost web2
[root@web2 var]# mail -v test@pricol.co.in
Subject: test
test.
.
Cc:
test@pricol.co.in... Connecting to [127.0.0.1] via relay...
220 web2.linuxsystem.net ESMTP Sendmail 8.12.8/8.12.5; Fri, 21 May 2004 14:32:10 +0900
>>> EHLO localhost.localdomain
250-web2.linuxsystem.net Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
>>> MAIL From: SIZE=43 AUTH=root@localhost.localdomain
250 2.1.0... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i4L5WAKP007507 Message accepted for delivery
test@pricol.co.in... Sent (i4L5WAKP007507 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 web2.linuxsystem.net closing connection
경고 부분이 사라진것을 확인할 수 있음.
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: to=
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: to=
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: forward /home/jane/.forward.web2: Permission denied
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: forward /home/jane/.forward: Permission denied
May 21 14:10:30 web2 sendmail[6022]: i4L59gKP005996: i4L5AUKP006022: DSN: User unknown
May 21 14:10:30 web2 sendmail[6022]: i4L5AUKP006022: to=
일단 의심되는 제일 첫 부분은 /etc/resolv.conf 파일내의
search linuxsystem.net 항목으로 도메인의 쿼리가 실패했을 경우
해당 도메인(원래는 2차 도메인의 이름만으로 쿼리할 목적인듯..)뒤에
linuxsystem.net을 붙여서 재쿼리하기 위해 사용이 되어 지는데
문제가 된 도메인이 그 순간 쿼리에 실패해서 linuxsystem이 붙은듯 하다.
일단 메일의 경우 순간적인 증상에 의해 발송이 지연되더라도
일정 시간이 지난 후 재발송이 되기 때문에 search 항목을 삭제했다.
그리고도 문제가 발생하는듯 해서 서버상에서 직접 아래와 같이
테스트를 해보니 호스트네임 부분에서 경고가 발생을 해서
해당 부분을 아래쪽과 같이 조치를 취했다.
[root@web2 var]# ping pricol.co.in
ping: unknown host pricol.co.in
[root@web2 var]# mail -v test@pricol.co.in
Subject: test
test.
.
Cc:
WARNING: local host name (web2) is not qualified; fix $j in config file
test@pricol.co.in... Connecting to [127.0.0.1] via relay...
220 web2.linuxsystem.net ESMTP Sendmail 8.12.8/8.12.5; Fri, 21 May 2004 14:30:48 +0900
>>> EHLO web2
250-web2.linuxsystem.net Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
>>> MAIL From:
250 2.1.0
>>> RCPT To:
>>> DATA
250 2.1.5
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i4L5UmKP007366 Message accepted for delivery
test@pricol.co.in... Sent (i4L5UmKP007366 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 web2.linuxsystem.net closing connection
이 때 /etc/hosts 파일의 내용
[root@web2 var]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
210.114.223.106 web2
이 파일을 아래와 같이 수정
[root@web2 var]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost web2
[root@web2 var]# mail -v test@pricol.co.in
Subject: test
test.
.
Cc:
test@pricol.co.in... Connecting to [127.0.0.1] via relay...
220 web2.linuxsystem.net ESMTP Sendmail 8.12.8/8.12.5; Fri, 21 May 2004 14:32:10 +0900
>>> EHLO localhost.localdomain
250-web2.linuxsystem.net Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
>>> MAIL From:
250 2.1.0
>>> RCPT To:
>>> DATA
250 2.1.5
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i4L5WAKP007507 Message accepted for delivery
test@pricol.co.in... Sent (i4L5WAKP007507 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 web2.linuxsystem.net closing connection
경고 부분이 사라진것을 확인할 수 있음.
'서버 > 메일' 카테고리의 다른 글
| SendMail 메일주소뒤에 호스트명 붙는 문제 (0) | 2011/07/06 |
|---|---|
| MIME-Version 에 대해 (0) | 2010/10/28 |
| 첨부파일이 winmail.dat로 보일때. (0) | 2010/05/17 |
| SPF란 무엇인가? (0) | 2009/01/08 |
| RBL이란 무엇인가? (0) | 2009/01/08 |
| SPF 의 매커니즘 (0) | 2009/01/08 |