Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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>
.
share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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