문제

나를 구성하려고 시도하는 전용 서버를 실행하는 ASP.NET 메일을 보낼을 통해 지역 IIS SMTP 서버지만 메일은 막히기 큐에서 폴더를 얻지 않는다.

나는에서 이 코드를 사용하는.페이지 테스트:

<%@ Page Language="C#" AutoEventWireup="true" %>

<% new System.Net.Mail.SmtpClient("localhost").Send("info@thedomain.com", 
    "jcarrascal@gmail.com", "testing...", "Hello, world.com"); %>    

그 후,나는 다음과 같은 추가 할 수 있습니다.config file:

<system.net>
  <mailSettings>
    <smtp>
      <network host="localhost"/>
    </smtp>
  </mailSettings>
</system.net>

IIS 관리자에서 변경했는 다음의 속성에서"기본 SMTP 가상 서버에".

General: [X] Enable Logging
Access / Authentication: [X] Windows Integrated Authentication
Access / Relay Restrictions: (o) Only the list below, Granted 127.0.0.1
Delivery / Advanced: Fully qualified domain name = thedomain.com

마지막으로,내가 실행 SMTPDiag.exe 도구는 다음과 같다:

C:\>smtpdiag.exe info@thedomain.com jcarrascal@gmail.com

Searching for Exchange external DNS settings.
Computer name is THEDOMAIN.
Failed to connect to the domain controller. Error: 8007054b

Checking SOA for gmail.com.
Checking external DNS servers.
Checking internal DNS servers.
SOA serial number match: Passed.

Checking local domain records.
Checking MX records using TCP: thedomain.com.
Checking MX records using UDP: thedomain.com.
Both TCP and UDP queries succeeded. Local DNS test passed.

Checking remote domain records.
Checking MX records using TCP: gmail.com.
Checking MX records using UDP: gmail.com.
Both TCP and UDP queries succeeded. Remote DNS test passed.

Checking MX servers listed for jcarrascal@gmail.com.
Connecting to gmail-smtp-in.l.google.com [209.85.199.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to gmail-smtp-in.l.google.com.
Connecting to gmail-smtp-in.l.google.com [209.85.199.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [209.85.135.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [209.85.135.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt1.gmail-smtp-in.l.google.com [209.85.133.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt1.gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [74.125.79.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [74.125.79.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt1.gmail-smtp-in.l.google.com [209.85.133.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt1.gmail-smtp-in.l.google.com.
Connecting to gsmtp183.google.com [64.233.183.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to gsmtp183.google.com.
Connecting to gsmtp147.google.com [209.85.147.27] on port 25.
Connecting to the server failed. Error: 10051
Failed to submit mail to gsmtp147.google.com.

내가 사용하는 ASP.NET 2.0,윈도우 2003 서버 및 IIS 가 함께 제공됩니다.

당신은 내게 말할 수는 다른 무엇을 변경하여 문제를 해결?

감사


@mattlant

이것은 전용 서버는 설치 SMTP 수 있습니다.

편집:내가 사용하는 환 그래서 작은 다르지만,그라는 똑똑한 호스트 에서 교환 그러나 일반 SMTP 서비스 config 생각이라고 뭔가 니다.를 기억하지 못 정확히 설정에 이름입니다.

당신은 나에게 똑똑한 호스트 분야이다.메일을 받고 지금 전달했다.

에 SMTP 기본 가상 서버의 특성,전달 탭을 클릭 고급고 채우기 위해"스마트"란 주소로 귀하의 공급자가를 제공합니다.내 경우(고 대디)였 k2smtpout.secureserver.net.

더 많은 정보를 원하시면 여기: http://help.godaddy.com/article/1283

도움이 되었습니까?

해결책

내가 찾는 최고의 것은 일반적으로 방식에 따라 많은 이메일이 있지만 앞으로 메일을 통해 해당 ISP SMTP server.적 두통.처럼 보이는 곳이는 데 문제가 있에서,SMTP 를 외부 서버지 asp.net 귀하의 SMTP.

그냥 귀하의 SMTP 서버 설정을 보내는 ISP 에,또는 구성할 수 있습니다 asp.net 를 보냅니다.

편집:내가 사용하는 환 그래서 조금 다르지만,그것은이라는 똑똑한 호스트에서 교환 그러나 일반 SMTP 서비스 config 이라고 생각 다른 뭔가가 있습니다.

내가 기억할 수 없는 정확하게 설정은 이름입니다.

다른 팁

일 방화벽이 되지 않을시키는 SMTP(TCP port25)의 네트워크입니다.

두 개의 명백한 질문(다만 그들이 없었다 포함) 1.는 윈도우 방화벽을 사용되지 않?2.당신이 개인/회사의 방화벽을 방해하는 메일로 전송되는?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top