mega_tron
asked on
Manual Mail ...
If I connect to the sendmail daemon(port 25) can I add headers manually?
Lets say:
connected to server.com sendmail 8.8.8 ready..
HELO myserver
pleased to meet you myserver
MAIL From <me@myserver.com>
RECPT To: <someone@server.com>
-> HEADER X-Name: "Here is goes: This is Header X-Name"
DATA
begin to write and end with a dot
TEST MESSAGE
.
Quit
closed ...
How this HEADER X-Name: "Here is goes: This is Header X-Name" goes manually in telnet prompt at mail server port 25???
thanks,
depends on the deamon/service answering on port 25, if it has a command for that you can, otherwise you only may add this as part of the DATA section.
ASKER
soory but I know that the daemon runs on port 25. I want to know how I can enetr everything manually including the headers too. What a Mailer Agent does through its instructions included inside its binary code I want to do them manually. Can I? I know the answer is YES but I do not know HOW: comas, brackets, paranthesis etc. I should use, format of entering them etc.
I will connect throught telnet host.smtp.server.com 25
thanks,
I will connect throught telnet host.smtp.server.com 25
thanks,
ASKER
Here is manually what I did:
220 mail.smtp.server.com ESMTP 8.8.8-970530/8.8.5/MX-9803
>>> EHLO my.computer.com
250-mail.smtp.server.com Hello my.computer.com [999.999.999.999], pleased to meet you
250-EXPN
250-VERB
250-8BITMIME
250-SIZE 10000000
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From:<me@my.computer.com> SIZE=22
250 <me@my.computer.com>... Sender ok
>>> RCPT To:<someone@server.com>
250 <someone@server.com>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 AAA10411 Message accepted for delivery
someone@server.com... Sent (AAA10411 Message accepted for delivery)
Closing connection to mail.smtp.server.com.
>>> QUIT
221 mail.smtp.server.com closing connection
NOW HOW CAN I ENTER HEADER HERE ...???
thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
narzola,
that's works... I'm giving you an A. Also thank you!