【问题标题】:IIS smtp messages stuck in inetpub/mailroot/queueIIS smtp 消息卡在 inetpub/mailroot/queue
【发布时间】:2014-06-25 18:49:52
【问题描述】:

我使用 utl_mail.send 发起了一封电子邮件

begin
  utl_mail.send(
  sender     => <<sender mail>>,
  recipients => <<recipient mail>>,
  message    => 'Hello World'
  );
  commit;

end;
/

但是,邮件不会发送给收件人,而是保留在 inetpub/mailroot/queue 中。

我们验证了所有 smtp 服务器设置并且看起来不错。 我们看到端口 25 也打开了。 另外,我们停止了 smtp,清除了队列,然后重新启动了 smtp。问题还是没有解决。

请帮助您提供宝贵的答案和经验。每一个单独的答案都值得赞赏。

提前致谢, 分部

【问题讨论】:

    标签: smtp iis-6 message


    【解决方案1】:

    我在 Server 2019 上遇到了同样的问题。我的问题是从客户端发送时使用的“发件人电子邮件地址”与 SMTP 服务器上的设置不匹配。一旦客户端使用正确的“发件人电子邮件地址”开始发送,邮件就不再停留在队列中。

    【讨论】:

      【解决方案2】:

      我最近在服务器 2016 上遇到了同样的问题。使用 IIS6 管理器配置了 SMTP。事实证明,SMTP 也必须在 IIS 中正确配置。基本上,我从 IIS 服务器节点中选择了 SMTP,输入了我的 smtp 服务器的凭据并保存了它。卡在队列文件夹中的项目立即开始交付。不知道为什么这是必要的,因为我是从控制台应用程序访问中继,但解决方案确实有效。

      【讨论】:

      • “IIS 服务器节点”中的 SMTP 在哪里?在常规的 IIS 管理器中?我在那里没有看到任何与 SMTP 相关的内容。我遇到了同样的问题,但我没有想法。
      【解决方案3】:

      检查事件查看器是否有任何日志

      1. 为此,您需要打开 事件查看器 并转到 Windows 日志,然后是应用程序
      2. 如果是 4.3.1 错误,那么简单 意味着 \inetpud\mailroot\ 对 mailroot 文件夹没有适当的权限,所以给它 IIS_IUSRS 和 IIS AppPool\"Your App Pool"
      3. 如果问题仍然存在,请确保您在本地服务器上安装了 vmstp,为此您需要在服务器上安装 smtpclient 并转到 IIS 管理器(不是 inetpub)并添加新的 VSMTP 服务器。 并在交付中选择出站安全,然后添加您的 gmail 或您使用的任何邮件。 并确保您允许端口 25 通过防火墙

      【讨论】:

      • 谢谢,我在系统下找到了我正在寻找的日志。
      【解决方案4】:

      使用 telnet 尝试通过发送一封非常简单的电子邮件来确认一切正常。感谢 wiki (http://www.askstudent.com/techtips/how-to-use-telnet-to-send-email-over-port-25-using-smtp/) 的说明:

      Step # 1: First, open a command prompt. To open a command prompt window, click Start, Run and then type in cmd and press Enter. You can also press the +R to open the Run prompt and then type in cmd in the open text box.
      
      Step # 2: You need to know a remote mail server. If you are still in school or working, there is the excellent opportunity to use your University mail server or your company’s mail server for this.
      
          type in telnet RemoteMailServer 25 at the command prompt. The Remote mail server here in this command is the mail server of your school or company. It is usually mailhost..edu or compmail..com or something on those lines. When you press enter, you are shown a quick prompt that you are connecting to the remote mail server.
      
      Step # 3: Introduce yourself to the mail server. Play around a bit.
      
          type in helo mailhost at the command prompt. The mail server responds back with something like this
      
          250 RemoteMailHost. Hello , pleased to meet you.
      
      Step # 4: You can now enter your email address.
      
          type in mail from: your email id @ blah.com
      
          The mail server responds back with a 250 … sender ok
      
      Step # 5: You can now enter your receipient’s email address
      
          type in rcpt to: recipient email id @ blah.com
      
          The mail server responds back with a “Recipient OK” message
      
      Step # 6: Now, you are ready to type in the body of the email message.
      
          type in data and press enter.
      
          Now, type your message and then finally press Enter. To end your message type in a single period “.” . Your message is now in the queue
      
      Step # 7: To complete and finish the process, type in quit and press enter. The mail server responds with a “Bye” after which you see a “Connection to host lost” message displaye
      

      【讨论】:

      • 感谢您的回复。我尝试通过telnet。我仍然面临同样的问题。邮件排队进入 C:\inetpub\mailroot\Queue 并且没有被提取。
      • 我认为 SMTP 已设置并设置为在那里提取?启用日志记录(请参阅“IIS SMTP 服务?请启用日志记录”),发送一封测试电子邮件,然后查看位于 C:\windows\system32\logfiles\smtpsvc\....的 IIS SMTP 日志。
      • 抱歉延迟回复。我们没有看到在此路径中生成任何日志文件。最近的日志文件是 2014 年 4 月 22 日。
      • 一定要启用它。有几个步骤,所以在duckduckgo上搜索“Enable Logging IIS SMTP”并按照步骤操作。如果它没有从队列中出来,它很可能会在那里报告。
      • 您好,请忽略之前的回复。 PFB,日志。 - SMTPSVC1 0 hello - +mailhost 500 0 32 14 0 SMTP - - - - mailhost SMTPSVC1 0 HELO - +mailhost 250 0 66 13 0 SMTP - - - - mailhost SMTPSVC1 0 - - 500 0 32 38 0 SMTP - - - - mailhost SMTPSVC1 0 MAIL - +from:+ 250 0 43 29 0 SMTP - - - - mailhost SMTPSVC1 0 RCPT - +to:+ 250 0 51 47 0 SMTP - - - - mailhost SMTPSVC1 0 DATA - Tst@.com> 250 0 151 106 428437 SMTP - - - -
      猜你喜欢
      • 2013-01-07
      • 1970-01-01
      • 1970-01-01
      • 2014-05-22
      • 1970-01-01
      • 2013-06-05
      • 2019-10-30
      • 1970-01-01
      • 2013-06-07
      相关资源
      最近更新 更多