GoDaddy를 통해 메일을 보내기 위해 내 sendmail 서버가 스마트 호스트 역할을 하도록 하려고 합니다. 포트 3535에서 smtpout.secureserver.net에 텔넷할 수 있고 해당 SMTP 응답이 올바른지 확인했습니다. 하지만 내 sendmail 서비스는 메일을 보낼 수 없습니다. 이유를 모르겠습니다. sendmail의 스마트호스트 부분을 다음과 같이 구성했습니다.
define(`SMART_HOST', `smtpout.secureserver.net')dnl
define(`RELAY_MAILER',`esmtp')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 3535')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /data/smtp/client-info')dnl
메일 로그에 다음이 표시됩니다(로그 수준 99).
Feb 26 12:03:56 myhost sendmail[4694]: v1QH3uXi004692: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:57 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120448, relay=smtpout.secureserver.net. [173.201.192.229], dsn=5.0.0, stat=Service unavailable
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: dropenvelope, e_flags=0x4605862, OpMode=q, pid=4694
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: alias <[email protected]> => [email protected]
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: assigned id
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: v1QH3vXi004694: DSN: Service unavailable
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: queueup ./qfv1QH3vXi004694
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: sendenvelope, flags=0x604082
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:58 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: [email protected], delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=31662, relay=smtpout.secureserver.net. [173.201.193.101], dsn=5.0.0, stat=Service unavailable
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: dropenvelope, e_flags=0x46050a2, OpMode=q, pid=4694
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias MAILER-DAEMON => postmaster
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias postmaster => root
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias root => [email protected]
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias postmaster => root
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias root => [email protected]
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: assigned id
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: v1QH3vXj004694: return to sender: Service unavailable
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: queueup ./qfv1QH3vXj004694
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: sendenvelope, flags=0x604082
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:59 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: [email protected], delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=32686, relay=smtpout.secureserver.net. [173.201.193.101], dsn=5.0.0, stat=Service unavailable
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: dropenvelope, e_flags=0x46050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias MAILER-DAEMON => postmaster
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias postmaster => root
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias root => [email protected]
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./dfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./qfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: done; delay=00:00:01, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./xfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: ./xfv1QH3vXj004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x4050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: Losing ./qfv1QH3vXi004694: savemail panic
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: SYSERR(root): savemail: cannot save rejected email anywhere
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlink ./qfv1QH3vXi004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: ./qfv1QH3vXi004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: done; delay=00:00:03, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlink ./xfv1QH3vXi004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: ./xfv1QH3vXi004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x4050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./dfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./qfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: done; delay=00:00:04, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./xfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: ./xfv1QH3uXi004692: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x407062, OpMode=q, pid=4694
나생각하다로그에 다른 오류가 표시되지 않으므로 이는 연결과 관련이 있습니다. 자격 증명과 관련된 경우 더 많은 정보를 게시할 수 있습니다.
누군가 이것이 실패하는 이유를 설명할 수 있습니까?
답변1
sendmail은 수신측에 문제가 있을 때 어떤 단서도 남기지 않는 것 같습니다. 이전에 텔넷을 사용하여 SMTP 연결을 테스트했지만 인증이 필요하기 때문에 (텔넷을 통해) 전체 이메일을 보낼 수 없을 것 같습니다. 내가 찾은이 링크auth 명령을 빌드한 다음 이메일을 테스트하는 방법을 보여줍니다.
FROM 행에 도메인 이름에 대한 DNS 항목이 없기 때문에 수신 SMTP 서버가 메시지를 거부한 것으로 나타났습니다. 문제를 해결한 후 메일은 텔넷을 통해 전송되었고 이어서 sendmail을 통해 전송되었습니다.