无需身份验证即可使用 CDOSYS 发送电子邮件?

Sending email using CDOSYS without authentication?

我不得不使用 CDOSYS 在 ASP 中使用以下开始和结束代码重做一个脚本。 (我不太了解ASP或ASP.NET)我使用的smtp需要user/pass auth。但是电子邮件还是发送了,我没有输入该信息。这是否意味着 smtp 服务器只允许使用电子邮件地址进行中继?

<%
Set Mailer = CreateObject("CDO.Message")
 If IsObject(Mailer) = True Then


'header'
Mailer.From = request.Form("FROM")
Mailer.To="email@host.ca"
Mailer.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2

Mailer.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.host.ca"

Mailer.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25

Mailer.Configuration.Fields.Update

Mailer.send
%>

是的,这项技术正用于简化消息传递:

ASP Sending e-mail with CDOSYS:

CDO (Collaboration Data Objects) is a Microsoft technology that is designed to simplify the creation of messaging applications.

CDOSYS is a built-in component in ASP. We will show you how to use this component to send e-mail with ASP.

Does this mean the smtp server allows relaying with only the E-Mail address?

"depends" server/mta 设置:

  • IP白名单
  • 如果它有其他 "Post offices"(域),也许它允许在它们之间进行中继(又名 "internal")。

我已经有一段时间没有直接与 SMTP/MTAs 合作了,所以我相信那些有 more/current 经验的人可以提供更多 "relay restriction rules" 的例子..

愚蠢的我。

我拍的不够。我的 MTA 允许域到域(我的电子邮件到我的电子邮件)中继。但是,如果我尝试将我的电子邮件发送到另一个电子邮件(域),我会收到中继访问被拒绝的消息。