나는 최근에 apache2 웹 서버에 SMTP 메일 서버를 설정하는 개발 팀의 웹 사이트(ironfi.st)에 대한 과제를 완료했습니다. 나는 우리 웹사이트에 연락처 페이지 기능을 구현하기 위해 WP-MAIL-SMTP라는 WordPress SMTP 플러그인과 함께 sendmail을 사용하여 이 작업을 수행합니다. 그러나 현재 직면하고 있는 문제는 서버가 메일을 보내지 않는다는 것입니다.
내가 sendmail을 선택한 이유 중 하나는 설정이 쉽다는 것입니다. 그래서 내가 뭘 잘못하고 있는지 판단하는 데 어려움을 겪고 있습니다. Ubuntu를 통해 서버에 연결하고 거기에 sendmail을 설치했습니다. 그런 다음 구성 설정을 실행한 다음 /etc/hosts에서 호스트 파일을 편집했습니다.
다음은 호스트 파일에 넣은 내용의 복사본입니다. 127.0.1.1ironfi.stironfi.st 127.0.0.1 localhost localhost.localdomainironfi.st
그런 다음 제가 사용하고 있는 WP 플러그인과 함께 제공되는 "테스트 이메일 보내기" 기능을 사용하여 SMTP 서버를 테스트했습니다. 말씀하신 대로 이메일이 전송되지 않았습니다. 플러그인의 로그 출력을 읽기 시작했습니다. 다만, 이 분야는 반드시 제 전문 분야가 아니기 때문에 로그에 누락된 내용이 있을 수 있으므로 /var/log의 최신 SMTP 서버 로그 파일인 mail.log에서 직접 가져온 로그를 첨부해 놓았습니다. 및 다음 플러그인 로그 파일:
플러그인의 로그:
테스트 메시지가 전송되었습니다.
결과 :
bool(false)
The full debugging output is shown below:
object(PHPMailer)#445 (75) {
["Version"]=>
string(6) "5.2.14"
["Priority"]=>
NULL
["CharSet"]=>
string(10) "iso-8859-1"
["ContentType"]=>
string(10) "text/plain"
["Encoding"]=>
string(4) "8bit"
["ErrorInfo"]=>
string(0) ""
["From"]=>
string(14) "root@localhost"
["FromName"]=>
string(9) "Root User"
["Sender"]=>
string(0) ""
["ReturnPath"]=>
string(0) ""
["Subject"]=>
string(0) ""
["Body"]=>
string(0) ""
["AltBody"]=>
string(0) ""
["Ical"]=>
string(0) ""
["MIMEBody":protected]=>
string(0) ""
["MIMEHeader":protected]=>
string(0) ""
["mailHeader":protected]=>
string(0) ""
["WordWrap"]=>
int(0)
["Mailer"]=>
string(4) "mail"
["Sendmail"]=>
string(18) "/usr/sbin/sendmail"
["UseSendmailOptions"]=>
bool(true)
["PluginDir"]=>
string(0) ""
["ConfirmReadingTo"]=>
string(0) ""
["Hostname"]=>
string(0) ""
["MessageID"]=>
string(0) ""
["MessageDate"]=>
string(0) ""
["Host"]=>
string(9) "localhost"
["Port"]=>
int(25)
["Helo"]=>
string(0) ""
["SMTPSecure"]=>
string(0) ""
["SMTPAutoTLS"]=>
bool(true)
["SMTPAuth"]=>
bool(false)
["SMTPOptions"]=>
array(0) {
}
["Username"]=>
string(0) ""
["Password"]=>
string(0) ""
["AuthType"]=>
string(0) ""
["Realm"]=>
string(0) ""
["Workstation"]=>
string(0) ""
["Timeout"]=>
int(300)
["SMTPDebug"]=>
bool(true)
["Debugoutput"]=>
string(4) "echo"
["SMTPKeepAlive"]=>
bool(false)
["SingleTo"]=>
bool(false)
["SingleToArray"]=>
array(0) {
}
["do_verp"]=>
bool(false)
["AllowEmpty"]=>
bool(false)
["LE"]=>
string(1) "
"
["DKIM_selector"]=>
string(0) ""
["DKIM_identity"]=>
string(0) ""
["DKIM_passphrase"]=>
string(0) ""
["DKIM_domain"]=>
string(0) ""
["DKIM_private"]=>
string(0) ""
["action_function"]=>
string(0) ""
["XMailer"]=>
string(0) ""
["smtp":protected]=>
NULL
["to":protected]=>
array(0) {
}
["cc":protected]=>
array(0) {
}
["bcc":protected]=>
array(0) {
}
["ReplyTo":protected]=>
array(0) {
}
["all_recipients":protected]=>
array(0) {
}
["RecipientsQueue":protected]=>
array(0) {
}
["ReplyToQueue":protected]=>
array(0) {
}
["attachment":protected]=>
array(0) {
}
["CustomHeader":protected]=>
array(0) {
}
["lastMessageID":protected]=>
string(0) ""
["message_type":protected]=>
string(0) ""
["boundary":protected]=>
array(0) {
}
["language":protected]=>
array(0) {
}
["error_count":protected]=>
int(0)
["sign_cert_file":protected]=>
string(0) ""
["sign_key_file":protected]=>
string(0) ""
["sign_extracerts_file":protected]=>
string(0) ""
["sign_key_pass":protected]=>
string(0) ""
["exceptions":protected]=>
bool(true)
["uniqueid":protected]=>
string(0) ""
}
메일 로그:
Feb 5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0k027655: from=root, size=196, class=0, nrcpts=1, msgid=<201702051556.v15FuS0k027655@ironfist-droplet>, relay=root@localhost
Feb 5 10:56:28 ironfist-droplet sm-mta[27657]: v15FuSaG027657: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0k027655: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 10:56:28 ironfist-droplet sm-mta[27657]: v15FuSaG027657: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0k027655: v15FuS0l027655: DSN: User unknown
Feb 5 10:56:28 ironfist-droplet sm-mta[27657]: v15FuSaI027657: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051556.v15FuS0l027655@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0l027655: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15FuSaI027657 Message accepted for delivery)
Feb 5 10:56:28 ironfist-droplet sm-mta[27658]: v15FuSaI027657: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 11:03:40 ironfist-droplet sendmail[27694]: v15G3ehZ027694: from=root, size=196, class=0, nrcpts=1, msgid=<201702051603.v15G3ehZ027694@ironfist-droplet>, relay=root@localhost
Feb 5 11:03:40 ironfist-droplet sm-mta[27696]: v15G3e0P027696: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 11:03:40 ironfist-droplet sendmail[27694]: v15G3ehZ027694: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 11:03:40 ironfist-droplet sm-mta[27696]: v15G3e0P027696: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:03:40 ironfist-droplet sendmail[27694]: v15G3ehZ027694: v15G3eha027694: DSN: User unknown
Feb 5 11:03:40 ironfist-droplet sm-mta[27696]: v15G3e0R027696: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051603.v15G3eha027694@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:03:40 ironfist-droplet sendmail[27694]: v15G3eha027694: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G3e0R027696 Message accepted for delivery)
Feb 5 11:03:40 ironfist-droplet sm-mta[27697]: v15G3e0R027696: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxv027702: from=root, size=196, class=0, nrcpts=1, msgid=<201702051604.v15G4Uxv027702@ironfist-droplet>, relay=root@localhost
Feb 5 11:04:30 ironfist-droplet sm-mta[27704]: v15G4UL7027704: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxv027702: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 11:04:30 ironfist-droplet sm-mta[27704]: v15G4UL7027704: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxv027702: v15G4Uxw027702: DSN: User unknown
Feb 5 11:04:30 ironfist-droplet sm-mta[27704]: v15G4UL9027704: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051604.v15G4Uxw027702@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxw027702: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G4UL9027704 Message accepted for delivery)
Feb 5 11:04:30 ironfist-droplet sm-mta[27705]: v15G4UL9027704: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPh027710: from=root, size=196, class=0, nrcpts=1, msgid=<201702051604.v15G4hPh027710@ironfist-droplet>, relay=root@localhost
Feb 5 11:04:43 ironfist-droplet sm-mta[27712]: v15G4hZC027712: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPh027710: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 11:04:43 ironfist-droplet sm-mta[27712]: v15G4hZC027712: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPh027710: v15G4hPi027710: DSN: User unknown
Feb 5 11:04:43 ironfist-droplet sm-mta[27712]: v15G4hZE027712: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051604.v15G4hPi027710@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPi027710: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G4hZE027712 Message accepted for delivery)
Feb 5 11:04:43 ironfist-droplet sm-mta[27713]: v15G4hZE027712: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmc027722: from=root, size=196, class=0, nrcpts=1, msgid=<201702051606.v15G6qmc027722@ironfist-droplet>, relay=root@localhost
Feb 5 11:06:52 ironfist-droplet sm-mta[27724]: v15G6qtl027724: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmc027722: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 11:06:52 ironfist-droplet sm-mta[27724]: v15G6qtl027724: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmc027722: v15G6qmd027722: DSN: User unknown
Feb 5 11:06:52 ironfist-droplet sm-mta[27724]: v15G6qtn027724: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051606.v15G6qmd027722@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmd027722: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G6qtn027724 Message accepted for delivery)
Feb 5 11:06:52 ironfist-droplet sm-mta[27725]: v15G6qtn027724: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDO027730: from=root, size=196, class=0, nrcpts=1, msgid=<201702051606.v15G6vDO027730@ironfist-droplet>, relay=root@localhost
Feb 5 11:06:57 ironfist-droplet sm-mta[27732]: v15G6vBt027732: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDO027730: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 11:06:57 ironfist-droplet sm-mta[27732]: v15G6vBt027732: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDO027730: v15G6vDP027730: DSN: User unknown
Feb 5 11:06:57 ironfist-droplet sm-mta[27732]: v15G6vBv027732: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051606.v15G6vDP027730@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDP027730: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G6vBv027732 Message accepted for delivery)
Feb 5 11:06:57 ironfist-droplet sm-mta[27733]: v15G6vBv027732: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA4027745: from=root, size=196, class=0, nrcpts=1, msgid=<201702051608.v15G8hA4027745@ironfist-droplet>, relay=root@localhost
Feb 5 11:08:43 ironfist-droplet sm-mta[27747]: v15G8hUp027747: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA4027745: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 11:08:43 ironfist-droplet sm-mta[27747]: v15G8hUp027747: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA4027745: v15G8hA5027745: DSN: User unknown
Feb 5 11:08:43 ironfist-droplet sm-mta[27747]: v15G8hUr027747: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051608.v15G8hA5027745@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA5027745: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G8hUr027747 Message accepted for delivery)
Feb 5 11:08:43 ironfist-droplet sm-mta[27748]: v15G8hUr027747: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0s027772: from=root, size=196, class=0, nrcpts=1, msgid=<201702051609.v15G9U0s027772@ironfist-droplet>, relay=root@localhost
Feb 5 11:09:30 ironfist-droplet sm-mta[27774]: v15G9UTw027774: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0s027772: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 11:09:30 ironfist-droplet sm-mta[27774]: v15G9UTw027774: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0s027772: v15G9U0t027772: DSN: User unknown
Feb 5 11:09:30 ironfist-droplet sm-mta[27774]: v15G9UU0027774: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051609.v15G9U0t027772@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0t027772: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G9UU0027774 Message accepted for delivery)
Feb 5 11:09:30 ironfist-droplet sm-mta[27775]: v15G9UU0027774: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9ME029166: from=root, size=196, class=0, nrcpts=1, msgid=<201702052034.v15KY9ME029166@ironfist-droplet>, relay=root@localhost
Feb 5 15:34:09 ironfist-droplet sm-mta[29168]: v15KY9Bg029168: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9ME029166: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 15:34:09 ironfist-droplet sm-mta[29168]: v15KY9Bg029168: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9ME029166: v15KY9MF029166: DSN: User unknown
Feb 5 15:34:09 ironfist-droplet sm-mta[29168]: v15KY9Bi029168: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052034.v15KY9MF029166@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9MF029166: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KY9Bi029168 Message accepted for delivery)
Feb 5 15:34:09 ironfist-droplet sm-mta[29169]: v15KY9Bi029168: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAq029179: from=root, size=196, class=0, nrcpts=1, msgid=<201702052034.v15KYxAq029179@ironfist-droplet>, relay=root@localhost
Feb 5 15:34:59 ironfist-droplet sm-mta[29181]: v15KYx21029181: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAq029179: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 15:34:59 ironfist-droplet sm-mta[29181]: v15KYx21029181: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAq029179: v15KYxAr029179: DSN: User unknown
Feb 5 15:34:59 ironfist-droplet sm-mta[29181]: v15KYx23029181: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052034.v15KYxAr029179@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAr029179: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KYx23029181 Message accepted for delivery)
Feb 5 15:34:59 ironfist-droplet sm-mta[29182]: v15KYx23029181: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKB029189: from=root, size=196, class=0, nrcpts=1, msgid=<201702052035.v15KZNKB029189@ironfist-droplet>, relay=root@localhost
Feb 5 15:35:24 ironfist-droplet sm-mta[29191]: v15KZOSx029191: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKB029189: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 15:35:24 ironfist-droplet sm-mta[29191]: v15KZOSx029191: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKB029189: v15KZNKC029189: DSN: User unknown
Feb 5 15:35:24 ironfist-droplet sm-mta[29191]: v15KZOT1029191: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052035.v15KZNKC029189@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKC029189: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KZOT1029191 Message accepted for delivery)
Feb 5 15:35:24 ironfist-droplet sm-mta[29192]: v15KZOT1029191: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb 5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoU029199: from=root, size=196, class=0, nrcpts=1, msgid=<201702052035.v15KZYoU029199@ironfist-droplet>, relay=root@localhost
Feb 5 15:35:34 ironfist-droplet sm-mta[29201]: v15KZYQ4029201: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb 5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoU029199: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb 5 15:35:34 ironfist-droplet sm-mta[29201]: v15KZYQ4029201: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoU029199: v15KZYoV029199: DSN: User unknown
Feb 5 15:35:34 ironfist-droplet sm-mta[29201]: v15KZYQ6029201: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052035.v15KZYoV029199@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoV029199: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KZYQ6029201 Message accepted for delivery)
Feb 5 15:35:34 ironfist-droplet sm-mta[29202]: v15KZYQ6029201: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
누구든지 로그에서 도움이 될 만한 내용을 발견하면 언제든지 알려주시기 바랍니다. 나는 여전히 무엇이 잘못될 수 있는지 조사하고 로그를 살펴보려고 노력하고 있지만, 이 분야에 능숙하지 않기 때문에 어떤 종류의 도움이라도 감사하게 생각합니다.
Mail.err.1 로그:
Jan 24 23:21:47 ironfist-droplet sendmail[2417]: My unqualified host name (ironfist-droplet) unknown; sleeping for retry
Jan 24 23:22:47 ironfist-droplet sendmail[2417]: unable to qualify my own domain name (ironfist-droplet) -- using short name
Jan 24 23:22:47 ironfist-droplet sm-mta[2486]: My unqualified host name (ironfist-droplet) unknown; sleeping for retry
Jan 24 23:22:50 ironfist-droplet sm-msp-queue[2491]: My unqualified host name (ironfist-droplet) unknown; sleeping for retry
Jan 24 23:23:47 ironfist-droplet sm-mta[2486]: unable to qualify my own domain name (ironfist-droplet) -- using short name
Jan 24 23:23:50 ironfist-droplet sm-msp-queue[2491]: unable to qualify my own domain name (ironfist-droplet) -- using short name
감사해요.
답변1
sendmail
제가 함께 일한 지 오랜 시간이 지났기 때문에 postfix
귀하의 MTA 구성에 대해 적절한 조언을 제공할 수 없습니다.
내가 아는 한, 귀하의 인터넷 도메인 이름은 ironfi.st
(참조 which ironfi.st
)이며, 이는 인터넷에서 액세스할 때 HTTP 서버 이름()이기도 host ironfi.st
하며 (적어도) 추가 이름/별칭이 필요합니다 www.ironfi.st
.
메일이 배달될 수 있도록 ironfi.st
이 주소를 가리키는 MX 레코드도 있습니다 . 이 정보는 DNS를 쿼리하여 공개적으로 사용할 수 있습니다.mx-caprica.easydns.com
[email protected]
내가 확실하지 않은 것은 로컬 네트워크/서버의 구성입니다. 귀하의 서버가 일부 포트가 귀하의 서버로 전달되는 NAS를 사용하는 라우터 뒤에 있다고 가정하기 때문입니다(다른 것은 매우 안전하지 않습니다). 따라서 호스트에는 루프백 네트워크(127.0.0.x)와 라우터에 연결하기 위한 하나 이상의 다른 개인 네트워크가 있어야 합니다. 여기와 아래에서는 귀하의 Apache 서버가 Linux 운영 체제를 기반으로 한다고 가정하고 IPV4 구성만 언급합니다.
언뜻 이상해 보이는 것이 당신의 것입니다 /etc/hosts
. 일반적으로 기본값은 다음과 같습니다.
127.0.0.1 localhost
<privateIP> <hostname> <hostname.domainname>
귀하의 상황에 따르면 mail.log
귀하의 호스트 이름은 다음과 같습니다 ironfist-droplet
. 귀하의 DNS 도메인 이름이 설정되어 있는지 모르겠습니다. 이것을 이용 hostname -f
하고 확인할 수 있습니다 dnsdomainname
. 귀하의 개인 IP가 192.168.1.10
(단순한 가정일 뿐입니다!) 이고 hostname -f
return 이라고 가정하면 ironfist-droplet.ironfi.st
두 번째 줄은 다음과 같아야 합니다.
192.168.1.10 ironfist-droplet ironfist-droplet.ironfi.st
완전성을 위해 다음이 있을 수 있습니다.
192.168.1.10 ironfist-droplet ironfist-droplet.ironfi.st ironfi.st
이제 테스트할 수 있습니다
ping localhost
ping ironfist-droplet
ping ironfist-droplet.ironfi.st
ping ironfi.st
올바른 IP를 반환해야 하며 패킷 손실이 없어야 합니다.
이제 항목으로 이동하세요 mail.log
.
root
릴레이 를 통해 에서 로 메일을 보내고 있습니다 root
(이유는 확실하지 않음) root@localhost
. 그런 다음 보낸 사람은 root@ironfist-droplet
보낸 사람 주소로 거부되는 도메인 으로 인코딩됩니다 does not exist
. 이메일이 다시 전달되었는데 from <>
뭔가가 전달되었습니다. MTA에서 보낸 사람에게 전달할 수 없는 메시지인 것 같습니다. 비슷한 프로그램을 사용하여 루트의 로컬 메일함을 봅니다.root@ironfist-droplet
localhost
mailx
s-nail
플러그인의 구성 WP-MAIL-SMTP
(발신자, 수신자) 및 sendmail(책임이 있는 도메인, 메일을 보낼 수 있는 발신자, 메일을 전달할 위치)을 철저히 반영해야 합니다. 내가 말했듯이 여기서는 조언을 드릴 수 없습니다. 예를 들어, 메일을 보내려면 보낸 사람 만 [email protected]
유효한 발신자로 구성해야 합니다 .root
root
/var/log/mail.err
더 많은 힌트가 있는지 확인하세요 . 일반적으로 오류 메시지만 포함되지만 mail.log
성공 메시지도 포함됩니다.