NEW Nmail PHP 3.4.0 업데이트 - 보안 강화(2단계 인증 등), 중요 메일, 대표 계정, 스팸 자동 업데이트
자세히 보기

Nbuilder PHP FAQ

리눅스용 Nbuilder - 메일발송실패시 해결방법

관*자 2004.02.01 16:28 조회 16029



################################################################################
# Nbuilder Unix/Linux - 메일발송실패시 해결방법
################################################################################

-. 메일발송시 출력되는 오류메세지별 해결방법.

    ◈ 에러 메세지 ◈
        unable to connect to smtp server localhost:25
    ☞ 상태
        서버내에서 메일서버가 동작중이 아닌 상태입니다.
    ☞ 해결방법
        서버관리자에게 문의하셔서 메일서버의 동작여부를 확인해보신뒤
        다른 주소에서 운영중이라면 해당주소로 설정을 변경하셔야 합니다.

    ◈ 에러 메세지 ◈
&nbsp; &nbsp; &nbsp; &nbsp; unable to add recipient [test@passkorea.net]: 550 5.7.1 <test@passkorea.net>...
&nbsp; &nbsp; &nbsp; &nbsp; Relaying denied. IP name lookup failed [127.0.0.1]
&nbsp; &nbsp; ☞ 상태
&nbsp; &nbsp; &nbsp; &nbsp; 메일서버에서 발송권한이 없는 상태입니다.
&nbsp; &nbsp; ☞ 해결방법
&nbsp; &nbsp; &nbsp; &nbsp; 서버관리자에게 문의하셔서 발송시 SMTP인증을 거쳐야 하는지 확인해보신뒤
&nbsp; &nbsp; &nbsp; &nbsp; SMTP인증을 거치도록 설정을 변경하셔야 합니다.

&nbsp; &nbsp; ◈ 에러 메세지 ◈
&nbsp; &nbsp; &nbsp; &nbsp; unable to authenticate to smtp server
&nbsp; &nbsp; ☞ 상태

&nbsp; &nbsp; ☞ 해결방법


&nbsp; &nbsp; ※ 위 에러메세지가 아닌경우에는 먼저 서버관리자에게 문의해보셔야 합니다.
&nbsp; &nbsp; ※ 해결이 안될때는 http://passkorea.net 으로 에러 메세지와 함께 문의주시면 됩니다.


-. 메일서버주소를 변경하는 방법.
&nbsp; &nbsp; : 서버관리자나 호스팅업체에 문의하셔서 정확한 메일서버주소를 알아내신뒤 변경하셔야 합니다.

&nbsp; &nbsp; nbuilder/include/global_var.inc.php
&nbsp; &nbsp; 23 line)
&nbsp; &nbsp; &nbsp; &nbsp; $SMTP_SERVER = "localhost";&nbsp; &nbsp; &nbsp; &nbsp; // mail_smtp();
&nbsp; &nbsp; =>
&nbsp; &nbsp; &nbsp; &nbsp; $SMTP_SERVER = "mail.kornet.net";&nbsp; &nbsp; &nbsp; &nbsp; // mail_smtp();


-. 메일서버에 SMTP인증을 거친후 발송하는 방법.
&nbsp; &nbsp; : 메일서버에서 발송권한이 없다는 에러메세지(Relaying denied)가 나올때만 변경하시면 됩니다.
&nbsp; &nbsp; : 서버관리자나 호스팅업체에 문의하셔서 정확한 메일계정를 알아내신뒤 변경하셔야 합니다.

&nbsp; &nbsp; nbuilder/include/mail_smtp.php
&nbsp; &nbsp; 70~72 line)
&nbsp; &nbsp; &nbsp; &nbsp; $params['auth'] = false;
&nbsp; &nbsp; &nbsp; &nbsp; $params['username'] = "";
&nbsp; &nbsp; &nbsp; &nbsp; $params['password'] = "";
&nbsp; &nbsp; =>
&nbsp; &nbsp; &nbsp; &nbsp; $params['auth'] = true;
&nbsp; &nbsp; &nbsp; &nbsp; $params['username'] = "USER_ID";
&nbsp; &nbsp; &nbsp; &nbsp; $params['password'] = "USER_PASSWORD";


-. 사용가능한 메일서버가 없을때 메일발송을 하지 않는 방법.

&nbsp; &nbsp; nbuilder/include/mail_smtp.php
&nbsp; &nbsp; 8 line)
&nbsp; &nbsp; &nbsp; &nbsp; include_once("../include/pear/Mail.php");
&nbsp; &nbsp; =>
&nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; &nbsp; &nbsp; include_once("../include/pear/Mail.php");


-. 메일발송시 에러가 발생할 경우 기록되는 로그파일.( Nbuilder 1.5 이상 )
&nbsp; &nbsp; : Telnet, FTP 를 통해서만 확인이 가능하고 웹상에서는 확인불가.
&nbsp; &nbsp; : 기록형식 - 날짜; 받는주소; 에러메세지

&nbsp; &nbsp; nbuilder/community/upload/mail_smtp_log.php

&nbsp; &nbsp; ex) 2004-01-15 14:49:26;test@passkorea.net;unable to connect to smtp server localhost:25
&nbsp; &nbsp;



################################################################################

이전 글 리눅스용 Nbuilder - 백업및복구/계정이전 방법 PASSKOREA 2004.03.09
다음 글 리눅스용 Nbuilder - 소스 및 디자인 수정안내(1.4) PASSKOREA 2003.12.08