When I send an e-mail from my server(hostname of the server is syslog) with command (echo "To: [email protected]"; echo "From: [email protected]"; echo "Subject: test; echo; echo "test"; echo) | sendmail -t, then MTA of example.com complains that domain of sender address root@syslog does not exist. Why doesn't my MTA use the address [email protected] instead of root@syslog? I have specified example.org as a domain in my /etc/resolv.conf file:

root@syslog:~# grep domain /etc/resolv.conf 
domain example.org

1 Answer 1


There is a difference between the From: header and the envelope sender. Try to use | sendmail -t -f '[email protected]' to use a different sender address

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .