IIS smtp消息卡在inetpub / mailroot / queue中

时间:2014-05-08 11:41:51

标签: smtp iis-6 message

我使用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。问题仍未解决。

请帮助您获得宝贵的答案和经验。感谢每个人的回答。

提前致谢, Subbu

4 个答案:

答案 0 :(得分:2)

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

  1. 为此,您需要打开事件查看器并转到 Windows 记录,然后应用程序enter image description here
  2. 如果它是4.3.1错误那么就是它 表示\ inetpud \ mailroot \没有对mailroot文件夹的适当权限,所以给它IIS_IUSRS以及IIS AppPool \&#34;你的应用程序池&#34;
  3. 如果问题仍然存在,请确保在本地服务器上安装了vmstp,为此,您需要在服务器上安装smtpclient并转到IIS管理器(而不是inetpub)并添加新的VSMTP服务器。 在交付中选择出站安全性,然后添加您的Gmail或您使用的邮件。 并确保允许端口25通过防火墙 enter image description here

答案 1 :(得分:0)

使用telnet尝试通过发送非常简单的电子邮件确认所有内容。感谢维基(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

答案 2 :(得分:0)

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

答案 3 :(得分:0)

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