您的 ISP 可能有一个邮件服务器,如果您来自他们的 IP 范围,该服务器将在不进行身份验证的情况下接受您的邮件,但即使这样,现在也相当不寻常。
您可以在本地安装 MTA(邮件传输代理)以进行测试。
但是,如果您想要发送邮件到 @gmail.com 地址进行测试,则无需身份验证即可将邮件发送到 Google 的 MX 服务器,例如 gmail-smtp-in.l .google.com)将起作用,因为他们接受本地投递的邮件。
(一般规则是,您仅通过 SMTP 接受未经身份验证的邮件,该身份验证用于本地发送到邮箱,或者可能来自您控制和信任的 IP 范围;其他任何内容都应该进行身份验证,否则您最终会无意中被垃圾邮件发送者利用转发垃圾邮件。)
You're asking for an open relay; those are abused by spammers and get shut down pretty quickly.
Your ISP might have a mailserver which will accept mails from you without authentication if you're coming from their IP range, but even that's fairly unusual these days.
You could install an MTA (mail transfer agent) locally for testing purposes.
However, if you have e.g. an @gmail.com address you want to send mails for to test, sending your mail without authentication to Google's MX servers for example, gmail-smtp-in.l.google.com) will work, as they're accepting the mail for local delivery.
(The general rule being that you only accept mail via SMTP without authentication that's for local delivery to a mailbox, or or possibly from an IP range you control and trust; anything else should be authenticated, otherwise you end up unwittingly being used by spammers to relay spam.)
发布评论
评论(2)
您要求开放中继;这些被垃圾邮件发送者滥用并很快被关闭。
您的 ISP 可能有一个邮件服务器,如果您来自他们的 IP 范围,该服务器将在不进行身份验证的情况下接受您的邮件,但即使这样,现在也相当不寻常。
您可以在本地安装 MTA(邮件传输代理)以进行测试。
但是,如果您想要发送邮件到
@gmail.com
地址进行测试,则无需身份验证即可将邮件发送到 Google 的 MX 服务器,例如gmail-smtp-in.l .google.com
)将起作用,因为他们接受本地投递的邮件。(一般规则是,您仅通过 SMTP 接受未经身份验证的邮件,该身份验证用于本地发送到邮箱,或者可能来自您控制和信任的 IP 范围;其他任何内容都应该进行身份验证,否则您最终会无意中被垃圾邮件发送者利用转发垃圾邮件。)
You're asking for an open relay; those are abused by spammers and get shut down pretty quickly.
Your ISP might have a mailserver which will accept mails from you without authentication if you're coming from their IP range, but even that's fairly unusual these days.
You could install an MTA (mail transfer agent) locally for testing purposes.
However, if you have e.g. an
@gmail.com
address you want to send mails for to test, sending your mail without authentication to Google's MX servers for example,gmail-smtp-in.l.google.com
) will work, as they're accepting the mail for local delivery.(The general rule being that you only accept mail via SMTP without authentication that's for local delivery to a mailbox, or or possibly from an IP range you control and trust; anything else should be authenticated, otherwise you end up unwittingly being used by spammers to relay spam.)
您可以安装一个小型的假 SMTP 服务器,例如 Dumbster (开源,用 Java 编写)。
You could install a small fake SMTP server like Dumbster (open source, written in Java).