如何阻止IIS SMTP服务器发送退回电子邮件?

时间:2021-04-07 18:14:27

How do you stop the "Default SMTP Virtual Server" from sending bounce messages for email addresses that you don't have?

如何阻止“默认SMTP虚拟服务器”为您没有的电子邮件地址发送退回邮件?

i.e. I'm using IIS' SMTP server to handle my email and if an email is sent unknown at mydomain.com a bounce email with 'address not known' (or something like that) is sent back to the sender. I want it to silently fail.

即我正在使用IIS的SMTP服务器来处理我的电子邮件,如果在mydomain.com上发送了一封未知的电子邮件,则会向发件人发送一封“地址未知”(或类似内容)的退回电子邮件。我希望它默默地失败。

3 个解决方案

#1


3  

I found this article which has a script you can run to configure a catch-all account on your server. All emails which would generate a NDR will instead be directed to this account. Sorry, I haven't tested it. The article above has been removed here it is via the WayBack Machine

我发现这篇文章有一个脚本,您可以运行该脚本来配置服务器上的catch-all帐户。所有生成NDR的电子邮件都将转发到此帐户。对不起,我还没有测试过。上面的文章已经通过WayBack Machine删除了

Basically the short answer to your question is no.

基本上你的问题的简短答案是否定的。

On another note, if you don't want to spend any money, or have no budget, and want a better email system, try something like Smarter Mail which you can use for free up to 10 users. I am sure there are others out there, but I have used Smarter Mail in the past successfully.

另外请注意,如果您不想花钱或没有预算,并且想要更好的电子邮件系统,请尝试使用智能邮件,最多可以免费使用10个用户。我相信还有其他人,但我过去使用过Smarter Mail成功。

#2


0  

This isn't an IIS failure. The SMTP server receiving the message is looking for a valid email address, and when it doesn't find one, sends an email back to your email address saying that there isn't one there. The only way to have it silently fail is by putting the from address as a bogus email like no-reply@company.com, etc.

这不是IIS失败。接收邮件的SMTP服务器正在查找有效的电子邮件地址,如果找不到,则会向您的电子邮件地址发送一封电子邮件,说明其中没有邮件地址。让它无声地失败的唯一方法是将来自地址作为虚假电子邮件,如no-reply@company.com等。

#3


0  

From an SMTP point of view, a better way to handle this is to reject the RCPT request at some point during the SMTP transaction. This way, your server isn't responsible for sending any blowback to the alleged sender.

从SMTP的角度来看,处理此问题的更好方法是在SMTP事务期间的某个时刻拒绝RCPT请求。这样,您的服务器不负责向所谓的发件人发送任何反吹。

I don't know how to configure IIS to do this specifically, but you certainly can with Postfix (which is what I use).

我不知道如何配置IIS专门做这个,但你肯定可以使用Postfix(这是我使用的)。

#1


3  

I found this article which has a script you can run to configure a catch-all account on your server. All emails which would generate a NDR will instead be directed to this account. Sorry, I haven't tested it. The article above has been removed here it is via the WayBack Machine

我发现这篇文章有一个脚本,您可以运行该脚本来配置服务器上的catch-all帐户。所有生成NDR的电子邮件都将转发到此帐户。对不起,我还没有测试过。上面的文章已经通过WayBack Machine删除了

Basically the short answer to your question is no.

基本上你的问题的简短答案是否定的。

On another note, if you don't want to spend any money, or have no budget, and want a better email system, try something like Smarter Mail which you can use for free up to 10 users. I am sure there are others out there, but I have used Smarter Mail in the past successfully.

另外请注意,如果您不想花钱或没有预算,并且想要更好的电子邮件系统,请尝试使用智能邮件,最多可以免费使用10个用户。我相信还有其他人,但我过去使用过Smarter Mail成功。

#2


0  

This isn't an IIS failure. The SMTP server receiving the message is looking for a valid email address, and when it doesn't find one, sends an email back to your email address saying that there isn't one there. The only way to have it silently fail is by putting the from address as a bogus email like no-reply@company.com, etc.

这不是IIS失败。接收邮件的SMTP服务器正在查找有效的电子邮件地址,如果找不到,则会向您的电子邮件地址发送一封电子邮件,说明其中没有邮件地址。让它无声地失败的唯一方法是将来自地址作为虚假电子邮件,如no-reply@company.com等。

#3


0  

From an SMTP point of view, a better way to handle this is to reject the RCPT request at some point during the SMTP transaction. This way, your server isn't responsible for sending any blowback to the alleged sender.

从SMTP的角度来看,处理此问题的更好方法是在SMTP事务期间的某个时刻拒绝RCPT请求。这样,您的服务器不负责向所谓的发件人发送任何反吹。

I don't know how to configure IIS to do this specifically, but you certainly can with Postfix (which is what I use).

我不知道如何配置IIS专门做这个,但你肯定可以使用Postfix(这是我使用的)。