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: [email protected] hostname
rcpt to: email [email protected] out
data
mail test from unix
.
Reference
[tags]sendmail debugging, debugging sendmail, sendmail, debugging, UNIX Coding School[/tags]