Results 1 to 8 of 8
Hi All,
When I send an email via the "mail" command, the person who recives the email gets the from address as "xxx@localhost.localdomain"
I can't seem to find where you ...
- 04-24-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 2
localhost.localdomain when sending email
Hi All,
When I send an email via the "mail" command, the person who recives the email gets the from address as "xxx@localhost.localdomain"
I can't seem to find where you can change this? Is it a host entry? Because i changed it there and when I send out emails I am getting errors because of Loop-back.
Any ideas, if and where I change this in the sendmail configuration?
I am using CentOS 4.
Thanks
- 04-25-2008 #2Just Joined!
- Join Date
- Apr 2007
- Location
- Louisville, KY USA
- Posts
- 12
Try this:
Add the following line to /etc/sysconfig/network
HOSTNAME="YourHostName"
Restart your network: service network restart
- 04-25-2008 #3Just Joined!
- Join Date
- Apr 2008
- Posts
- 2
the host entry that i want to use is already in that file.
- 05-01-2008 #4Just Joined!
- Join Date
- Jan 2007
- Posts
- 12
what mail system are you using to send mail?
is it sendmail? Qmail? or PHP/Web based mail using sendmail
- 05-02-2008 #5Just Joined!
- Join Date
- Jan 2007
- Posts
- 38
I use Sendmail.
- 05-03-2008 #6Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
What's the Dj macro set to in your sendmail.cf? Have you got a domain defined in /etc/resolv.conf? And which email client are using?
- 05-04-2008 #7Just Joined!
- Join Date
- Jan 2007
- Posts
- 12
OK Easiest way would be be to define a DNS Entry for your server!
Then in your mail server set the hostname to mail.yourserver.xx.Code:yourserver.xx. IN MX 10 mail.yourserver.xx. mail.yourserver.xx. IN A xxx.xxx.xxx.xxx
- 05-07-2008 #8Just Joined!
- Join Date
- Jan 2007
- Posts
- 38


Reply With Quote
