Doggy
04-07-2004, 05:47 PM
An "open relay" is a server that allows third-parties (non-customers) to send mail to other third-parties. In other words, an open relay mail server processes a mail message where neither the sender nor the recipient is a local user.
There are several techniques that spammers use to get other's mail servers to send their mail. (The spammer's goal is to be able to send to the outside -- not just to the local accounts.) The following are some of the techniques used to try to get a mail server to relay mail. (Some other techniques include abusing form-to-mail CGIs on webservers.)
First off I will be using telnet to connect to the mail server. Open a new shell on your local machine or if your on windows run>"cmd"
Here is a basic session:
>micxz@neptune:~> telnet yourhost.com 25
Trying xxx.xx.xx.xx...
Connected to yourhost.com.
Escape character is '^]'.
220 hostname.yourhost.com ESMTP
>helo
250 hostname.yourhost.com
>mail from: me@youremail.com
250 ok
>rcpt to: me@thirdparty.com
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
>rcpt to: me@yourhost.com
250 ok
>data
354 go ahead
>This is a test email via telnet session' Hi'
>
>.
250 ok 1080286547 qp 31615
>rset
250 flushed
>quit
221 hostname.yourhost.com
Connection closed by foreign host.
micxz@neptune:~>
OK so that's pretty simple right.
NOTE: I added ">" to every line I typed.
More commands HERE (http://www.reedmedia.net/misc/mail/open-relay.html)
There are several techniques that spammers use to get other's mail servers to send their mail. (The spammer's goal is to be able to send to the outside -- not just to the local accounts.) The following are some of the techniques used to try to get a mail server to relay mail. (Some other techniques include abusing form-to-mail CGIs on webservers.)
First off I will be using telnet to connect to the mail server. Open a new shell on your local machine or if your on windows run>"cmd"
Here is a basic session:
>micxz@neptune:~> telnet yourhost.com 25
Trying xxx.xx.xx.xx...
Connected to yourhost.com.
Escape character is '^]'.
220 hostname.yourhost.com ESMTP
>helo
250 hostname.yourhost.com
>mail from: me@youremail.com
250 ok
>rcpt to: me@thirdparty.com
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
>rcpt to: me@yourhost.com
250 ok
>data
354 go ahead
>This is a test email via telnet session' Hi'
>
>.
250 ok 1080286547 qp 31615
>rset
250 flushed
>quit
221 hostname.yourhost.com
Connection closed by foreign host.
micxz@neptune:~>
OK so that's pretty simple right.
NOTE: I added ">" to every line I typed.
More commands HERE (http://www.reedmedia.net/misc/mail/open-relay.html)
