I use the POP3 Service that comes with Windows 2003 and that requires that I allow SMTP Anonymous Authentication. Although I've turned off relaying, I would like to do is reject any commands that would try to relay, and only allow the ones that are trying to deliver mail.

link|improve this question

62% accept rate
feedback

1 Answer

up vote 0 down vote accepted

There are no special commands that tell the SMTP server to relay. The way it determines if it needs to relay is if the domain name is different.

So when you relay you'll still use the MAIL FROM: & RCPT TO: etc commands as normal.

so mail sent to you @ domain.local would look like

HELO some.server.com
RCPT TO: someone@domain.local
MAIL FROM: someone@sending.domain
DATA
Subject: Subject
<Message Body>
.

While mail that is trying to relay to domain.remote would look like this:

HELO some.server.com
RCPT TO: someone@domain.remote
<if you have relay restriction in place you'll get a relay denied message here>
MAIL FROM: evildoer@sending.domain
DATA
Subject: Subject
<message Body>
.
link|improve this answer
The only case you don't receive a relay denied message is when you try a command like this: RCPT TO: <"user@domain.com"> These end up in the Drop folder. – Josh Sep 14 '09 at 22:08
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.