Debugging Sendmail

[problem]

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

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

[/problem]

[solution]

Whilst debugging sendmail issues, came across this great test.

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

[/solution]

[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
.

[/example]

[reference]

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

[/reference]

If you have found my website useful, please consider buying me a coffee below 😉

Leave a Reply

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