Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail sending mail as localhost.localdomain

Status
Not open for further replies.

ggggus

Programmer
Jul 5, 2003
114
Setting up a server, and the machine identifies itself everywhere as localhost.localdomain

First, is there a way to blanket change this everywhere do a fully qualified domain like piercedmedia.com?...and is this advisable?

Here's my immediate problem...
I'm getting mail returned like this:
Code:
The original message was received at Thu, 16 Mar 2006 08:31:29 -0600
from localhost.localdomain [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<info@somedomain.co>
    (reason: 501 Your domain does not seem to be valid. Could not find MX record
for your domain.)

   ----- Transcript of session follows -----
... while talking to mail.somedomain.com.:
>>> MAIL From:<apache@localhost.localdomain> SIZE=1383
<<< 501 Your domain does not seem to be valid. Could not find MX record for your
domain.
501 5.6.0 Data format error

I think that the problem probably has something to do with this line in the M4 config file:
Code:
LOCAL_DOMAIN(`localhost.localdomain')dnl
But I'm not sure how I should change it, the server is running about 20 virtual hosts on apache and many of the sites need to send mail out as themselves...should I add multiple lines for each virtual host?

***************************************
J. Jacobs
 
There should be a sendmail cf file that you can edit to change the local domain and then you have to re-run the m4 hash on the cf file. Sorry, I dont' remember the exaxct steps, it has been several years.

Secondly, verify that the server itself has a domain name.

Type hostname from the command line and see if you get localhost.localdomain or do you get a fully qualified domain name.

If you are not getting a FQDN, then first fix that. Edit the correct files (depends on your distribution) and /etc/hosts files. Once you get your hostname fixed then go after the sendmail config.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top