使用Windows Server 2003阻止SMTP中继命令

我使用Windows 2003附带的POP3服务,并且要求我允许SMTP匿名身份validation。 虽然我已经closures了中继,但是我想要做的就是拒绝任何会尝试中继的命令,而只允许那些试图发送邮件的命令。

没有特别的命令告诉SMTP服务器进行中继。 它确定是否需要中继的方式是域名不同。

所以当你中继时,你仍然会像平常一样使用MAIL FROM:和RCPT TO:etc命令。

所以邮件发送给你@ domain.local会看起来像

HELO some.server.com RCPT TO: [email protected] MAIL FROM: [email protected] DATA Subject: Subject <Message Body> . 

虽然试图中继到domain.remote的邮件看起来像这样:

 HELO some.server.com RCPT TO: [email protected] <if you have relay restriction in place you'll get a relay denied message here> MAIL FROM: [email protected] DATA Subject: Subject <message Body> .