2013-09-01 2 views
1

SMTP 메일을 MailEnable의 원격 도메인으로 중계하는 데 문제가 있으며 서버 설정에서 정확히 무엇이 누락되었는지 확인하는 데 도움이 필요합니다.Plesk/MailEnable SMTP 릴레이 오류

어제까지 SPF 레코드를 서버의 DNS 설정에 추가 할 때까지 실제로 설정이 제대로 작동했습니다. 그런 다음 어제 밤 (시스템이 자동 이메일을 보내려고 할 때)부터 원격 주소로가는 이메일이 실패하기 시작했습니다. 내가 말할 수있는 건, 내가 SMTP 호출의 인바운드 부분에 인증하고 있지만, 다른 서버로 메시지를 보낼 아웃 바운드 연결을 시도 할 때 인증되지 않은 것처럼는 역할을합니다.

배경 : 이것은 호스팅 회사에서 임대 한 자체 서버입니다. IIS/Plesk/MailEnable 사이트의 모든 설정에 액세스 할 수 있습니다. 내 사용자 지정 VB.NET 응용 프로그램이 내 도메인의 다른 주소로 전자 메일을 보내려고 할 때마다 제대로 작동합니다. 내 응용 프로그램이 원격 도메인 주소로 같은 메일을 보내려고 시도 할 때마다, 나는 다음에 다시 [email protected]에서 이메일을 수신 :

MailEnable: Message could not be delivered to some recipients. 
The following recipient(s) could not be reached: 

    Recipient: [SMTP:[email protected]] 
    Reason: 551 This mail server requires authentication before sending mail from a locally hosted domain. Please reconfigure your mail client to authenticate before sending mail. 

내가 간단한 VB.NET 테스트 프로그램 I이 이 디버깅하려고 쓴 :

  • 활성화 포트 587 및 submissio를 허용하기 전에 인증 을 필요로하는 상자를 선택 : MailEnable에서

    Dim replyTo As New System.Net.Mail.MailAddress("[email protected]", "MyUser") 
        Dim subject As String = "Test subject" 
        Dim SendTo As String = "[email protected]" 
        Dim body As String = "This is the email." 
    
        Dim message As New System.Net.Mail.MailMessage 
        message.From = New System.Net.Mail.MailAddress("[email protected]", "MyUser") 
        message.ReplyToList.Add(replyTo) 
        message.BodyEncoding = System.Text.Encoding.ASCII 
        message.IsBodyHtml = True 
        message.Subject = subject 
        message.Bcc.Add("[email protected]") 
        message.Body = body 
    
        Dim smtp As New System.Net.Mail.SmtpClient("mydomain.com") 
        Dim smtpCredential As System.Net.NetworkCredential = New System.Net.NetworkCredential("[email protected]", "password") 
        smtp.UseDefaultCredentials = False 
        smtp.Credentials = smtpCredential 
        smtp.Port = 587 
        smtp.Send(message) 
    

    을, 내가 가진 n 포트를 통해. 내가 주소 @ mydomain.com에 보낼 때 다시, 위의 프로그램 (포트 587를 통해) 작동하지만 여전히 @ otherdomain.com로 전송 아무것도 실패합니다.

  • 릴레이 탭에서 127.0.0.1, 내부 네트워크 IP
    주소 및 서버의 외부 IP 주소 각각에 대해 "권한이 부여 된 IP 범위에 대한 릴레이 허용"옵션에 항목을 추가했습니다. 완성도를 들어

(옵션은 인증 된 사용자에 대한 릴레이가 이미 확인되었고, 여전히 체크 할 수 있도록), 여기에 DNS에서 설정 한 SPF 레코드 어제 :

v=spf1 a mx ipv4:75.XX.XX.XX include:_spf.google.com -all 

MailEnable도 만든 와서 인증의 상단에 카운트를 기록 SMTP-IN-TOP.TXT라는 서버의 루트 드라이브에 파일을, 나는 모두 볼 나의이 파일에 계산을 시도 :

Recent Top Users Authentications During Previous Hour 
[email protected] 4 

그리고 마지막으로, 여기에 활동이다. MailEnable 트랜잭션 중 하나 보여주는에서 Y 및 디버그 로그 시도 :

활동 :

09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX   220 mydomain.com ESMTP MailEnable Service, Version: 7.0-- ready at 09/01/13 15:07:26 0 0 
09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX EHLO EHLO mydomain-web-01 250-mydomain.com [75.XX.XX.XX], this server offers 4 extensions 127 21 
09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX AUTH {blank} 334 UGFzc3dvcmQ6 18 41 [email protected] 
09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX AUTH d29iVFY= 235 Authenticated 19 10 [email protected] 
09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX MAIL MAIL FROM:<[email protected]> 250 Requested mail action okay, completed 43 34 [email protected] 
09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX RCPT RCPT TO:<[email protected]> 250 Requested mail action okay, completed 43 36 [email protected] 
09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX RCPT RCPT TO:<[email protected]> 250 Requested mail action okay, completed 43 34 [email protected] 
09/01/13 15:07:26 SMTP-IN 5300BA9154CC413AAD202DE4FBA6CB71.MAI 596 75.XX.XX.XX DATA DATA 354 Start mail input; end with <CRLF>.<CRLF> 46 6 [email protected] 
09/01/13 15:07:27 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 780 50.XX.XX.XX CONN  220 recipientserver.com ESMTP MailEnable Service, Version: 6.53-- ready at 09/01/13 15:07:26 0 86 
09/01/13 15:07:27 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 780 50.XX.XX.XX EHLO EHLO mydomain.com 250-recipientserver.com [75.XX.XX.XX], this server offers 4 extensions 18 127 
09/01/13 15:07:27 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 780 50.XX.XX.XX MAIL MAIL FROM:<[email protected]> SIZE=423 551 This mail server requires authentication before sending mail from a locally hosted domain. Please reconfigure your mail client to authenticate before sending mail. 43 169 
09/01/13 15:07:27 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 780 50.XX.XX.XX QUIT QUIT 221 Service closing transmission channel 6 42 
09/01/13 15:07:28 SMTP-IN 8E182A43292745538949A1160E407982.MAI 780 127.0.0.1   220 mydomain.com ESMTP MailEnable Service, Version: 7.0-- ready at 09/01/13 15:07:28 0 0 
09/01/13 15:07:28 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 576 127.0.0.1 CONN  220 mydomain.com ESMTP MailEnable Service, Version: 7.0-- ready at 09/01/13 15:07:28 0 85 
09/01/13 15:07:28 SMTP-IN 8E182A43292745538949A1160E407982.MAI 780 127.0.0.1 EHLO EHLO mydomain.com 250-mydomain.com [127.0.0.1], this server offers 4 extensions 123 18 
09/01/13 15:07:28 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 576 127.0.0.1 EHLO EHLO mydomain.com 250-mydomain.com [127.0.0.1], this server offers 4 extensions 18 123 
09/01/13 15:07:28 SMTP-IN 8E182A43292745538949A1160E407982.MAI 780 127.0.0.1 MAIL MAIL FROM:<> SIZE=1052 250 Requested mail action okay, completed 43 24 
09/01/13 15:07:28 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 576 127.0.0.1 MAIL MAIL FROM:<> SIZE=1052 250 Requested mail action okay, completed 24 43 
09/01/13 15:07:28 SMTP-IN 8E182A43292745538949A1160E407982.MAI 780 127.0.0.1 RCPT RCPT TO:<[email protected]> 250 Requested mail action okay, completed 43 32 
09/01/13 15:07:28 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 576 127.0.0.1 RCPT RCPT TO:<[email protected]> 250 Requested mail action okay, completed 32 43 
09/01/13 15:07:28 SMTP-IN 8E182A43292745538949A1160E407982.MAI 780 127.0.0.1 DATA DATA 354 Start mail input; end with <CRLF>.<CRLF> 46 6 
09/01/13 15:07:28 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 576 127.0.0.1 DATA DATA 354 Start mail input; end with <CRLF>.<CRLF> 6 46 
09/01/13 15:07:28 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 576 127.0.0.1 DATE  250 Requested mail action okay, completed 1063 43 
09/01/13 15:07:28 SMTP-IN 05D1026706304C7F941CD6348057CC71.MAI 780 127.0.0.1 QUIT QUIT 221 Service closing transmission channel 42 6 
09/01/13 15:07:28 SMTP-OU D65C7059FE274FBCBA296953ABA4221F.MAI 576 127.0.0.1 QUIT QUIT 221 Service closing transmission channel 6 42 

디버그 :

09/01/13 15:07:26 ME-I0135: Authenticating User:[email protected] using Authentication Provider Credentials 
09/01/13 15:07:26 ME-I0107: [596] Relay Granted: Sender IP (75.xx.xx.xx) is within an authorized IP range. 
09/01/13 15:07:26 ME-I0101: [596] Local Delivery: Address ([SMTP:[email protected]]) is local. 
09/01/13 15:07:26 ME-I0149: [596] 5300BA9154CC413AAD202DE4FBA6CB71.MAI was received successfully and delivery thread was initiated 
09/01/13 15:07:26 ME-E0070: (recv) socket [596] error during [DATA] command from host 75.xx.xx.xx. Socket was disconnected - Error: (10054) 
09/01/13 15:07:26 ME-I0074: [596] (Debug) End of conversation 
09/01/13 15:07:27 ME-I0018: [2B8847ABCC1242EDBF3417D32DA6DB59.MAI] Outbound message from ([SMTP:[email protected]]) requeued as [D65C7059FE274FBCBA296953ABA4221F.MAI] to the target domain [otherdomain.com] 
09/01/13 15:07:27 ME-I0123: Domain [otherdomain.com] has MX list [mail.otherdomain.com] 
09/01/13 15:07:27 ME-I0026: [D65C7059FE274FBCBA296953ABA4221F.MAI] Sending message 
09/01/13 15:07:27 ME-IXXXX: [D65C7059FE274FBCBA296953ABA4221F.MAI] DNS resolved to the following record: IP Address=50.XX.XX.XX, Family=2, Type=1, Protocol=6 
09/01/13 15:07:27 ME-IXXXX: [D65C7059FE274FBCBA296953ABA4221F.MAI] Remote server returned a response indicating a permanent error. Server Response: (551 This mail server requires authentication before sending mail from a locally hosted domain. Please reconfigure your mail client to authenticate before sending mail.**) 
09/01/13 15:07:27 ME-E0036: [D65C7059FE274FBCBA296953ABA4221F.MAI] MAIL FROM command Failed. 
09/01/13 15:07:27 ME-E0008: [D65C7059FE274FBCBA296953ABA4221F.MAI] Outbound, could not send the command to the server (error 10038). 
09/01/13 15:07:27 ME-E0060: [D65C7059FE274FBCBA296953ABA4221F.MAI] - Message could not be delivered to target domain (otherdomain.com). Message returned to Sender. 
09/01/13 15:07:28 ME-I0119: Domain [mydomain.com] has used local loopback address [127.0.0.1] because it is hosted locally. 
09/01/13 15:07:28 ME-I0026: [D65C7059FE274FBCBA296953ABA4221F.MAI] Sending message 
09/01/13 15:07:28 ME-IXXXX: [D65C7059FE274FBCBA296953ABA4221F.MAI] DNS resolved to the following record: IP Address=127.0.0.1, Family=2, Type=1, Protocol=0 
09/01/13 15:07:28 ME-I0101: [780] Local Delivery: Address ([SMTP:[email protected]]) is local. 
09/01/13 15:07:28 ME-I0149: [780] 8E182A43292745538949A1160E407982.MAI was received successfully and delivery thread was initiated 
09/01/13 15:07:28 ME-I0049: [D65C7059FE274FBCBA296953ABA4221F.MAI] Send Completed Successfully 
09/01/13 15:07:28 ME-I0074: [780] (Debug) End of conversation 

답변

1

OK, 문제를 발견했다. 문제를 테스트하기 위해 사용했던 "외부"주소는 실제로이 전용 서버로 이동하기 전에 우리 웹 사이트가 있던 이전 서버에 있습니다. 분명히 우리 사이트에서 그 서버에 대한 사이트/메일 설정이 제거 된 적이 없었습니다. 따라서 새 서버에서 새 서버로 이전 서버에 여전히 호스팅 된 주소로 보낼 때 이전 서버는 전자 메일을 인증되지 않은 내부 주소에서 오는 것으로 해석합니다.