Normal SMTP operation

open connection to SMTP server (telnet smtp.foo.dns 25)
send:
–smtp start–
MAIL FROM:<dude@myserver.dk>
RCPT TO:<dude1@yourserver1.dk>
RCPT TO:<dude2@yourserver2.dk>
DATA
write the entire mail here
remember, this mail doesn’t got a header
which usually contains sender info and topic
end the conversation with a single dot on a line
after that you would probably like to close the connection
do that with a simple ‘QUIT’…
.
QUIT
–smtp stop–

that’s it!

a normal header for the mail could look like this:
–header start–
Delivered-To: reciever@domain.foo
Subject: subject
Date: Mon, 24 Mar 2003 11:14:55 +0100
From: “users real name” <user@smtp.foo>
To: <reciever@domain.foo>
Cc: <carboncopy@domain.foo>
–header stop–
but don’t rely on it

Dette indlæg blev udgivet i Knowledge Base, Linux, Networking, Old Base. Bogmærk permalinket.

Skriv et svar