Step 1 : Connect to correct network. This will allow you to connect the service
Step 2 : Open Linux terminal and run bellow command. Then press enter key
telnet
email-service-host is the IP address or hostname of email service
Step 3 : Type bellow content. Then press enter key
EHLO MAIL
Step 4 : Type 'from' address. Every email service will configure with relevant from mail address. Then press enter key.
mail from:noreply@abc.com
Step 5 : Type 'to' address. Type your email address. From and To email address should be in same domain. Then press enter key
rcpt to:test@abc.com
Step 6 : Type 'data' and enter to enter email content. Then press enter key
data
Step 7 : Type the email content. Then press enter key
This is a test mail.
Step 8: Press enter key
Step 9: Type '.' to send the mail.
Step 10: Check your mail
Sample Output
dev64@dev64 ~ $ telnet mailhost.yourdomail.lk 25
Trying 192.168.4.35...
Connected to mailhost.yourdomail.lk.
Escape character is '^]'.
220 yourdomail.lk ESMTP Smtpd; Fri, 6 Dec 2019 09:51:46 +0530
EHLO MAIL
250-yourdomail.lk Hello , pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 209715200
250-DSN
250-STARTTLS
250-DELIVERBY
250 HELP
mail from:noreply@yourdomail.lk
250 2.1.0 noreply@yourdomail.lk... Sender ok
rcpt to:saminda.konkaduwa@yourdomail.lk
250 2.1.5 saminda.konkaduwa@yourdomail.lk... Recipient ok
data
354 Enter mail, end with "." on a line by itself
Test mail content
.
250 2.0.0 xB64Lkmg026459-xB64Lkmh026459 Message accepted for delivery
Sample Output
dev64@dev64 ~ $ telnet mailhost.yourdomail.lk 25
Trying 192.168.4.35...
Connected to mailhost.yourdomail.lk.
Escape character is '^]'.
220 yourdomail.lk ESMTP Smtpd; Fri, 6 Dec 2019 09:51:46 +0530
EHLO MAIL
250-yourdomail.lk Hello , pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 209715200
250-DSN
250-STARTTLS
250-DELIVERBY
250 HELP
mail from:noreply@yourdomail.lk
250 2.1.0 noreply@yourdomail.lk... Sender ok
rcpt to:saminda.konkaduwa@yourdomail.lk
250 2.1.5 saminda.konkaduwa@yourdomail.lk... Recipient ok
data
354 Enter mail, end with "." on a line by itself
This is a Test Content
.
250 2.0.0 xB64Lkmg026459-xB64Lkmh026459 Message accepted for delivery
No comments:
Post a Comment