Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-28-2008, 03:12 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 8

Rep: Reputation: 0
name server in sendmail

hello guru's,

Here's a tough one for you...

I'm using sendmail as my MTA and all was well until one day it suddenly stopped.

I was using smart smtp to my ISP with access.db configured.
Here is the email that is bounced back each time an email is sent now:
Host unknown (Name server: .: host not found)
no name server? I can't figure it out I can nslookup everything in the world!

My /var/log/maillog sys this:
DSN: Host unknown (Name server: .: host not found)

If I do a /usr/lib/sendmail -v < /etc/services

I get: Connecting to [] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.1/8.14.1; Tue, 27 May 2008 23:41:07 -0400
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [], pleased to meet you
250 HELP
>>> MAIL From:<me@localhost.localdomain> SIZE=381936 AUTH=me@localhost.localdomain
250 2.1.0 <me@localhost.localdomain>... Sender ok
>>> RCPT To:<>
>>> DATA
250 2.1.5 <>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 m4S3f7AJ003892 Message accepted for delivery Sent (m4S3f7AJ003892 Message accepted for delivery)
Closing connection to []
>>> QUIT
221 2.0.0 localhost.localdomain closing connection

I was playing with my hostname a while back but as far as I know I revert all my changes....any ideas???
Old 05-28-2008, 07:11 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
The remote MTA that is contacted to deliver or replay your e-mail has to be able to PTR your host. If it can't, and "localhost" isn't a routable or valid one, then it won't. If that's not it, please post *exact* loglines including the return codes.
Old 05-28-2008, 10:17 PM   #3
LQ Newbie
Registered: Nov 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply unSpawn,

My ISP changed the FQ name of the SMTP server and while the old name was still forwarding to the new one, for some reason, sendmail requires the actual name. So once I changed it in the and access did a quick make and restart sendmail everything is back to normal!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail server santanu419 Linux - Server 1 03-24-2008 11:42 AM
sendmail server santanu419 Linux - Newbie 1 03-21-2008 12:41 PM
migration from exchange server to sendmail server sailu_mvn Linux - Software 0 05-18-2006 01:55 AM
sendmail - specify server turbo_acura Linux - Software 2 04-13-2006 05:02 PM
Sendmail server name in greetings macadam Linux - Software 2 09-03-2004 12:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration