19.04.2013 Views

2KKUU7ita

2KKUU7ita

2KKUU7ita

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Manual testing<br />

Chapter 13: Communication and Messaging Systems<br />

You can manually test your server for SMTP relay by telnetting to the e-mail<br />

server on port 25. Follow these steps:<br />

1. Telnet to your server on port 25.<br />

You can do this in two ways:<br />

• Use your favorite graphical telnet application, such as HyperTerminal<br />

(which comes with Windows) or SecureCRT (www.vandyke.com/<br />

products/securecrt/index.html).<br />

• Enter the following command at a Windows or UNIX command<br />

prompt:<br />

telnet mailserver_address 25<br />

You should see the SMTP welcome banner when the connection is made.<br />

2. Enter a command to tell the server, “Hi, I’m connecting from this<br />

domain.”<br />

After each command in these steps, you should receive a different-<br />

numbered message, such as 999 OK. You can ignore these messages.<br />

3. Enter a command to tell the server your e-mail address.<br />

For example:<br />

mail from:yourname@yourdomain.com<br />

You can use any e-mail address in place of yourname@yourdomain.com.<br />

4. Enter a command to tell the server who to send the e-mail to.<br />

For example:<br />

rcpt to:yourname@yourdomain.com<br />

Again, any e-mail address will suffice.<br />

5. Enter a command to tell the server that the message body is to follow.<br />

For example:<br />

data<br />

6. Enter the following text as the body of the message:<br />

A relay test!<br />

7. End the command with a period on a line by itself.<br />

You can enter ? or help at the first telnet prompt to see a list of all the<br />

supported commands and, depending on the server, get help on the use<br />

of the commands.<br />

263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!