How To Test Postfix From Command Line?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Send a test message from the command line:
telnet localhost 25
helo example.com
mail from: <test@example.com>
rcpt to: <test@example.com>
data
Subject: Test message
This is a test message sent from the command line.
.
quit
2. Check the mail log to confirm that the mail was sent successfully:
tail /var/log/maillog
3. Check the mail queue to confirm that the mail is in the queue:
postqueue -p