[server] sendmail 잘 안나가는 메일 문제 > 팁앤테크

본문 바로가기

사이트 내 전체검색

뒤로가기 팁앤테크

[server] sendmail 잘 안나가는 메일 문제

본문

http://www.google.com/search?hl=ko&client=firefox-a&rls=org.mozilla%3Ako%3Aofficial&hs=xpG&q=stat%3DData+format+error&btnG=%EA%B2%80%EC%83%89&lr=lang_ko&aq=f&oq=

smtp로 직접 내보내면 한참후(한5분~10분)에라도 들어오긴 한다.
그러나 웹에서 쏘면 안나간다.

로그를 보니 

May 31 20:13:24 hostname sendmail[15815]: l4V333Aq020649: to=[email protected], ctladdr=nobody@localhost (99/99), delay=08:10:21, xdelay=00:00:05, mailer=esmtp, pri=840398, relay=bbb.com. [60.60.XX.XX], dsn=4.0.0, stat=Data format error: 451 4.1.8 Domain of sender address nobody@globalco does not resolve

라고 stat=Data format error 이라고 에러가 난다.

원인 : 각종 설정 파일중에 host네임이 제대로 지정되지 않거나 일치되지 않아서 그런다

해결 :
/etc/mail/local-host-name
/etc/resolv.conf
/etc/hosts
/etc/sysconfig/network
/proc/sys/kernel/hostname

을 제대로 수정해 주면 정상적으로 발송이 된다.
단 /proc/sys/kernel/hostname을 제외한 파일은 수정후 반드시
서버 리붓이나 서비스 재시작을 해야 한다. 이게 귀찮다면
/proc/sys/kernel/hostname을 수정하면 바로 적용된다.
추천0

댓글목록 0

등록된 댓글이 없습니다.

전체 32건 1 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기