如何在windowx xp中配置SMTP服务器以将邮件发送到gmail?

时间:2021-11-05 14:32:10

forgive my ignorance, I thought it was going to be a no-brainer but I still couldn't figure it out

原谅我的无知,我认为这将是一个不费脑子但我仍然无法弄明白

I'm using redmine (is a ticket system made with rails) and it has the option of sending you mails to notify events.

我正在使用redmine(是一个用rails制作的票务系统),它可以选择发送邮件通知事件。

So far now I could not configure a smtp server to relay mails to my gmail account.

到目前为止,我无法配置smtp服务器将邮件中继到我的Gmail帐户。

I want to configure some local client (thunderbird, for example) and to be able to send mails to xx@gmail.com using my own smtp server, and then I'll configure redmine to do the same.

我想配置一些本地客户端(例如thunderbird)并能够使用我自己的smtp服务器将邮件发送到xx@gmail.com,然后我将配置redmine来执行相同操作。

I've followed this tutorial:

我已经按照本教程:

http://www.ehow.com/how_4489548_set-up-smtp-server-windows.html

and configured thunderbird with localhost as outgoing mail...

并使用localhost配置thunderbird作为外发邮件...

I get the following:

我得到以下内容:

in F:\Inetpub\mailroot\Badmail\0029d2423191605200900000001.BAD

Final-Recipient: rfc822;xxxx@gmail.com Action: failed Status: 5.0.0 Diagnostic-Code: smtp;550-5.7.1 [201.250.95.2] The IP you're using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn more at http://mail.google 550 5.7.1 .com/support/bin/answer.py?answer=10336 6si8453947yxg.40

最终收件人:rfc822; xxxx@gmail.com操作:失败状态:5.0.0诊断代码:smtp; 550-5.7.1 [201.250.95.2]您用于发送邮件的IP未授权550- 5.7.1直接向我们的服务器发送电子邮件。请改用550-5.7.1服务提供商的SMTP中继。有关详情,请访问http://mail.google 550 5.7.1 .com / support / bin / answer.py?answer = 10336 6si8453947yxg.40

well at http://mail.google.com/support/bin/answer.py?answer=10336

以及http://mail.google.com/support/bin/answer.py?answer=10336

'The IP you're using to send email is not authorized...' In order to prevent spam, Gmail refuses mail when the sending IP address does not match the sending domain. To send mail from your server to Gmail, we suggest using the SMTP relay provided by your ISP. Please note that we are unable to whitelist IP addresses or otherwise make exceptions at this time.

“您用于发送电子邮件的IP未经授权......”为了防止垃圾邮件,当发送IP地址与发送域不匹配时,Gmail会拒绝邮件。要将邮件从您的服务器发送到Gmail,我们建议您使用ISP提供的SMTP中继。请注意,我们目前无法将IP地址列入白名单或以其他方式设置例外情况。

any idea how to do it???

任何想法怎么做???

2 个解决方案

#1


Google's error explanation is pretty straightforward. If you want to deliver to them, they check to make sure you're not using a bogus sender domain.

谷歌的错误解释非常简单。如果您想要发送给他们,他们会检查以确保您没有使用伪造的发件人域名。

How about you just use gmail's own SMTP server for relaying? You get the advantage of not having to worry about who you can subsequently deliver to (since you're authenticating to their SMTP, they'll happily deliver anywhere).

你怎么用gmail自己的SMTP服务器进行中继?您可以不必担心随后可以向谁发送邮件(因为您要对其SMTP进行身份验证,他们会乐意在任何地方提供服务)。

This should get you started.

这应该让你开始。

#2


In a nutshell, you're sending mail from "me@example.com", but "example.com" doesn't specify your IP address as an allowed sender for that domain -- by default only the destination server for the domain (the MX) is allowed to send mail coming from the domain.

简而言之,您从“me@example.com”发送邮件,但“example.com”未指定您的IP地址作为该域的允许发件人 - 默认情况下仅为域的目标服务器( MX)允许发送来自域的邮件。

If Google is your mail provider, you should be relaying the mail through them, use smtp.gmail.com (which requires you to log in, by the way).

如果Google是您的邮件提供商,您应该通过它们转发邮件,请使用smtp.gmail.com(顺便说一下,这需要您登录)。

Otherwise, you should be relaying the mail through whoever is your mail provider. If you are your mail provider, then your DNS settings are probably incorrect. In that case, I would suggest hiring a tech professional to examine your setup and give you suggestions on what to do next.

否则,您应该通过邮件提供商的任何人转发邮件。如果您是您的邮件提供商,那么您的DNS设置可能不正确。在这种情况下,我建议聘请技术专业人员来检查您的设置,并为您提供下一步操作的建议。

#1


Google's error explanation is pretty straightforward. If you want to deliver to them, they check to make sure you're not using a bogus sender domain.

谷歌的错误解释非常简单。如果您想要发送给他们,他们会检查以确保您没有使用伪造的发件人域名。

How about you just use gmail's own SMTP server for relaying? You get the advantage of not having to worry about who you can subsequently deliver to (since you're authenticating to their SMTP, they'll happily deliver anywhere).

你怎么用gmail自己的SMTP服务器进行中继?您可以不必担心随后可以向谁发送邮件(因为您要对其SMTP进行身份验证,他们会乐意在任何地方提供服务)。

This should get you started.

这应该让你开始。

#2


In a nutshell, you're sending mail from "me@example.com", but "example.com" doesn't specify your IP address as an allowed sender for that domain -- by default only the destination server for the domain (the MX) is allowed to send mail coming from the domain.

简而言之,您从“me@example.com”发送邮件,但“example.com”未指定您的IP地址作为该域的允许发件人 - 默认情况下仅为域的目标服务器( MX)允许发送来自域的邮件。

If Google is your mail provider, you should be relaying the mail through them, use smtp.gmail.com (which requires you to log in, by the way).

如果Google是您的邮件提供商,您应该通过它们转发邮件,请使用smtp.gmail.com(顺便说一下,这需要您登录)。

Otherwise, you should be relaying the mail through whoever is your mail provider. If you are your mail provider, then your DNS settings are probably incorrect. In that case, I would suggest hiring a tech professional to examine your setup and give you suggestions on what to do next.

否则,您应该通过邮件提供商的任何人转发邮件。如果您是您的邮件提供商,那么您的DNS设置可能不正确。在这种情况下,我建议聘请技术专业人员来检查您的设置,并为您提供下一步操作的建议。