简体   繁体   English

为什么我自己的邮件服务器无法将邮件传递到gmail,hotmail等…?

[英]Why my own mail server can not deliver mail to gmail, hotmail etc…?

I am trying to build a mail server using Ubuntu to send mail 我正在尝试使用Ubuntu构建邮件服务器以发送邮件

I have done some research on that and find it is nearly impossible for a individual to send 我对此进行了一些研究,发现个人几乎不可能发送

the mail eg hotmail , gmail. 邮件,例如hotmail,gmail。

The question i am asking is not how to build a own server , it is why i can not build my own server . 我要问的问题不是如何构建自己的服务器 ,这就是为什么我无法构建自己的服务器

To be precise: 确切地说:

Questions: 问题:

1) what are the requirements to send to those eg hotmail ,gmail server ? 1)对那些发送到例如hotmail,gmail服务器的要求是什么? eg mx record , clear dns record . 例如mx记录,清除dns记录。 (only from server aspect , not concerning other factors such as headers or mail content), It would be easier to understand if they are listed out. (仅从服务器方面而言,与标题或邮件内容之类的其他因素无关),如果列出它们,将更容易理解。

2) I read some document and it said the problem can be overcome by relayhost, what is it about and is it feasible? 2)我阅读了一些文档,它说可以通过Relayhost解决该问题,它是关于什么的,它是否可行?

3) For those ISP , what are their procedure in building the mail server? 3)对于那些ISP来说,他们在构建邮件服务器时将执行哪些步骤? How is it different from my own small Ubuntu one? 与我自己的小型Ubuntu Ubuntu有何不同?

Sorry for asking a lot of question, any help would be nice and well appreciated . 很抱歉问了很多问题,任何帮助都将是很好的,我们将不胜感激。

Most people use an out-of-the-box package as a mail server, rather than trying to write one that follows all of the relevant RFC specifications for SMTP, Internet Message Format, IMAP4, POP3, etc. I'm not saying "don't write your own", just that if you do, be prepared for months and months of hard work, lots of bugs and even more frustration. 大多数人使用开箱即用的软件包作为邮件服务器,而不是尝试编写遵循SMTP,Internet邮件格式,IMAP4,POP3等所有相关RFC规范的软件包。我不是说“不要写自己的东西”,只是如果您愿意的话,就需要为几个月又几个月的辛苦工作,大量的错误以及更多的挫败感做好准备。 It's a big project. 这是一个大项目。

In terms of sending messages, you will need to follow the Simple Mail Transfer Protocol (SMTP) to send messages; 在发送消息方面,您将需要遵循简单邮件传输协议(SMTP)来发送消息。 and they should be sent to the correct server, as per the recipient's DNS records - see RFC 1034 and RFC 1035 . 并将其按照收件人的DNS记录发送到正确的服务器-请参阅RFC 1034RFC 1035 If you are correctly using SMTP to send valid messages to the right server, there's not a lot else you can do. 如果您正确使用SMTP将有效的邮件发送到正确的服务器,则您无能为力。

Your next problem is going to be reputation. 您的下一个问题将是声誉。 This would be the same, whichever software you use to send your messages. 无论使用哪种软件发送消息,都是相同的。 It's easy for a spammer to set up a new mail server and start sending messages, so it will take a while for some mail servers to trust you (particularly those that are regularly targeted, such as Hotmail, Gmail, etc). 垃圾邮件发送者很容易设置新的邮件服务器并开始发送邮件,因此某些邮件服务器(特别是那些经常作为攻击目标的邮件服务器,例如Hotmail,Gmail等)信任您可能需要一段时间。

Instead of sending messages directly to the recipient's server, you can use SMTP to send the messages to a relay server. 您可以使用SMTP将消息发送到中继服务器,而不是直接将消息发送到收件人的服务器。 This would usually be your own ISP's server, but it can be any willing partner. 这通常是您自己的ISP的服务器,但也可以是任何愿意的伙伴。 You would normally need to make advance arrangements, so that they will permit you to relay messages. 通常,您需要提前安排,以便他们允许您中继邮件。 The relay server would then attempt to send the message to the recipient server. 然后,中继服务器将尝试将消息发送到收件人服务器。 If it cannot do so, it must report the failure to the sender. 如果不能这样做,则必须向发送者报告失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM