Sendmail is refusing connection after configuring SMTP relay

Posted by coder on Server Fault See other posts from Server Fault or by coder
Published on 2011-01-11T18:52:55Z Indexed on 2011/01/11 18:55 UTC
Read the original article Hit count: 440

Filed under:

I'm setting up sendmail on my home computer to use with my webserver. I've set it to use my SMTP server provided by my hosting company.

If I use the following command, it works

sendmail -Am -t -v

and then I enter the to and from emails.


But if I try the following, it does not work.

sendmail -v [email protected] < test.txt

The TO email is the same as in the earlier command, but in this case I haven't specified a FROM e-mail, which I think is the problem.

My guess is that it's sending the mail from user@localhost causing the smtp server to reject it. If so, how do I make it send from [email protected]?

© Server Fault or respective owner

Related posts about sendmail