Debugging Sendmail

Problem

Issues with sendmail, tacking on another domain name, etc.

You want to manually test you mail host, from the command line.



Solution

Whilst debugging sendmail issues, came across this great test.

You can run this from the command line. See example.



Example



telnet mailrelay.domain 25

.... answer from mail relay .....

helo unix hostname
mail from: root@unix hostname
rcpt to: email test@something out
data

mail test from unix
.



Reference

[tags]sendmail debugging, debugging sendmail, sendmail, debugging, UNIX Coding School[/tags]



Leave a Reply

Your email address will not be published. Required fields are marked *