A regular SMTP conversation will go something like this:
( <=received, >=typed )
$ telnet mail.domain.com 25
< 220 mail.domain.com ESMTP
> helo mail.sendingdomain.com
< 250 mail.domain.com
> mail from: <[email protected]>
< 250 ok
> rcpt to: <[email protected]>
< 250 ok
> data
< 354 go ahead
> To: [email protected]
> From: [email protected]
> Subject: Test Message
>
> Body of message
> more message
> .
< 250 accepted
A message is made up of 3 things:
- the 'envelope' (which is the 'mail from' and 'rcpt to')
- the headers (the items before the blank line)
- the body (everything after the blank line and before a period alone on a line)
When it gets to the user, the envelope is discarded, and only the headers and body remain.
Some ISPs block outgoing traffic on port 25 to stop their customers from spamming.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.