Windows 上用于生产服务器的良好 SMTP 服务器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/274512/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:35:13  来源:igfitidea点击:

Good SMTP server on Windows for a production server

windowssmtp

提问by Waleed Eissa

I'm going to have my website hosted soon on a VPS or dedicated server (with Windows 2008), so I'm trying to plan ahead. I wonder whether the built-in SMTP server that comes with IIS7 is reliable enough for a production server or should I look for an alternative? I heard good things about hmailserver and best of all it's free, do you have any experience with using the bulit-in SMTP on a high traffic website.

我将很快将我的网站托管在 VPS 或专用服务器(使用 Windows 2008)上,因此我正在尝试提前计划。我想知道 IIS7 附带的内置 SMTP 服务器对于生产服务器是否足够可靠,还是我应该寻找替代方案?我听说了有关 hmailserver 的好消息,最重要的是它是免费的,您是否有在高流量网站上使用内置 SMTP 的经验。

Thanks a lot for any suggestions

非常感谢您的任何建议

回答by Luke Puplett

I hit this thread via Google but I was looking for an outbound only SMTP server for transactional emails (customer registration confirmation etc. but not marketing), then some things I discovered are:

我通过谷歌点击了这个线程,但我正在寻找一个仅用于交易电子邮件(客户注册确认等,但不是营销)的出站 SMTP 服务器,然后我发现了一些事情:

SMTP does still exist in Windows Server 2008.

SMTP 在 Windows Server 2008 中仍然存在。

Server Manager > Features (not Roles) > Right-click, Add > SMTP Server - then Configure IIS 7 SMTP to point to the local server.

服务器管理器 > 功能(不是角色)> 右键单击​​,添加 > SMTP 服务器 - 然后配置 IIS 7 SMTP 以指向本地服务器。

Then use the Framework to do the business: http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx

然后用Framework做业务:http: //msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx

Jango have a paid for but cheap enough service for exactly this kind of thing. The Free account only allows 200/month but might be useful for some folk.

Jango 为这类事情提供了付费但足够便宜的服务。免费帐户只允许 200/月,但可能对某些人有用。

http://www.jangosmtp.com/Pricing.asp

http://www.jangosmtp.com/Pricing.asp

Good luck!

祝你好运!

UPDATE

更新

I blogged about setting up the original MS SMTP Server on Windows Server 2008.

我写了一篇关于在 Windows Server 2008 上设置原始 MS SMTP 服务器的博客。

http://www.lukepuplett.com/2010/06/how-to-send-email-from-microsoft-server.html

http://www.lukepuplett.com/2010/06/how-to-send-email-from-microsoft-server.html

回答by Corey Trager

hMailServer. Free and open source.

邮件服务器。免费和开源。

回答by Simon Johnson

At work, we used to use the SMTP server in IIS 6.0 for years and it was perfectly fine.

在工作中,我们曾经在 IIS 6.0 中使用 SMTP 服务器多年,并且非常好。

Eventually, we just simply didn't want all the issues that come with running your SMTP server so we mapped our MX records to a third-party service and moved on with our lives.

最终,我们只是不想出现运行 SMTP 服务器所带来的所有问题,因此我们将 MX 记录映射到第三方服务并继续我们的生活。

It's not actually that bad an idea to map your MX records to a third-party provider, like Google. It's one service less to configure and one service less to patch.

将您的 MX 记录映射到第三方提供商(如 Google)实际上并不是一个坏主意。配置少了一项服务,补丁少了一项服务。

回答by Jess Coburn

This is an old post but I thought I'd make a recommendation since this does seem to come up frequently.

这是一篇旧帖子,但我想我会提出建议,因为这似乎经常出现。

In my opinion you should try to avoid running mail on your VPS/DedicatedServer if you can. It's one more thing to manage and one more headache. My recommendation would be that use a 3rd party service like sendgrid.com that will allow you to relay mail through them. This way you won't have to worry about your new server getting blacklisted or being seen as having a low reputation score and your messages not making it out of the user's spam box. The other issue is that when you setup your mail server, you need to secure it and you need to make sure it's got a reverse DNS entries, many providers won't provide that and/or they'll recycle IP addresses so that the IP address of your server actually has a poor reputation.

在我看来,VPS/Dedicated如果可以,您应该尽量避免在服务器上运行邮件。这是另一件需要管理的事情,也是一件令人头疼的事情。我的建议是使用像 sendgrid.com 这样的 3rd 方服务,它允许您通过它们中继邮件。这样您就不必担心您的新服务器被列入黑名单或被视为信誉评分低,并且您的邮件不会从用户的垃圾邮件箱中删除。另一个问题是,当你设置你的邮件服务器时,你需要保护它,你需要确保它有一个反向 DNS 条目,许多提供商不会提供它和/或他们会回收 IP 地址,以便 IP您服务器的地址实际上声誉不佳。

回答by VonC

What about xmailserver(as suggested in this SO question) ?

xmailserver怎么(如这个SO 问题中所建议的)?

It is free, and for Windows or linux (should you migrate on a linux server platform)

它是免费的,适用于 Windows 或 linux(如果您在 linux 服务器平台上迁移)

alt text
(source: xmailserver.org)

替代文字
(来源:xmailserver.org

回答by Osama Al-Maadeed

Being on windows, your best choice will probably be IIS.

在 Windows 上,您最好的选择可能是 IIS。

If it was Linux, I'd suggest postfix.

如果是 Linux,我建议使用 postfix。

回答by Loki

you haven't mentioned if you are needing to receive mail, or just to send it. One of the best all around solutions for a windows mail server is IpSwitch's iMail (http://www.ipswitch.com/), but it costs.

您没有提到您是需要接收邮件,还是只是发送邮件。Windows 邮件服务器最好的全方位解决方案之一是 IpSwitch 的 iMail ( http://www.ipswitch.com/),但它很昂贵。

If you mainly need to send mail, then your best bet is to use an upstream smtp server.

如果您主要需要发送邮件,那么最好的办法是使用上游 smtp 服务器。

IIS smtp services are, in general, not useful. If you use Exchange, it gets a bit better, but still not very efficient, and not the most secure by any means.

IIS smtp 服务通常没有用处。如果您使用 Exchange,它会好一点,但仍然不是很有效,而且无论如何都不是最安全的。

回答by William Yeung

Maybe sending it via gmail is a good one :P Ok serious. IIS7 seems I heard to have some decent improvement.If that's not doing it, I guess you could try free stuff like mailenable. (No I can't find the evidence on the improvement on IIS SMTP, people who know about this please comment)

也许通过 gmail 发送它是一个不错的选择:P 好吧,认真的。IIS7 似乎我听说有一些不错的改进。如果那不是这样做的,我想你可以尝试像mailenable这样的免费东西。(不,我找不到关于 IIS SMTP 改进的证据,了解这一点的人请发表评论)

Long term you might end up split it to a linux based smtp though, that gives you some flexibility on server farming if it goes too insane.

从长远来看,您最终可能会将其拆分为基于 linux 的 smtp,如果它变得过于疯狂,这将为您提供一些服务器耕作的灵活性。

And if its for any kind of mass mailing that might trigger spam server blocking, don't ever try to host it together with your other important stuff- you want to keep yourself have a back step if your server gets blocked.

如果它用于可能触发垃圾邮件服务器阻止的任何类型的群发邮件,请不要尝试将其与其他重要内容一起托管 - 如果您的服务器被阻止,您希望让自己退后一步。