sendmail: How can I prevent localhost.localdomain from appearing in email?
When I send email through sendmail, by using a command such as:
Code:
echo "test" | mail test@gmail.com Quote:
Quote:
Thanks. |
sendmail is a beast to configure, and as using the machine's hostname is a very reasonable default, if you want to change it, you have to edit and "compile" some macro files. I did that a long time ago, but I get the impression that you don't really WANT to use sendmail in your scenario? Because, if all you want is getting mails off your system with smtp, there are much easier alternatives:
- probably the easiest that does nothing else than forwarding your local system's mail per smtp: ssmtp. - if you need a little more features, try a lightweight exim build, e.g. on a debian machine: exim4-daemon-light. |
I just want the ability to send emails from my domain, and not have it marked as spam because of the localhost stuff. I can receive them from somewhere else.
|
Hi,
You should use masquerade. There are lots of tutorials, so search for one that is written for your distro, or take a look at this generic one Regards |
All times are GMT -5. The time now is 08:15 PM. |