Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Nov 29, 2007 1:44 am 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
Hi,

I'm trying to configure Postfix on Centos, but when I send mail to local users, I'm seeing entries like this in /var/log/maillog:

Nov 29 06:54:18 li20-189 postfix/smtp[31632]: 1E0C2387AB: to=<localuser@li20-189.localdomain>, orig_to=<localuser>, relay=none, delay=27, delays=27/0.02/0.09/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=li20-189.localdomain type=A: Host not found)

(the names have been changed to protect the innocent).

On my other linode, it's working correctly, and the equivalent log entry is:

Nov 29 05:06:07 li16-10 postfix/local[17662]: EB4B486108: to=<localuser@li16-10.members.linode.com>, relay=local, delay=1, status=sent (forwarded as 7526386119)

So I'm trying to figure out why one is using li20-189.localdomain while the other is using li16-10.members.linode.com, and where to change it.

Any help appreciated.

James


Top
   
 Post subject: Stab in the dark
PostPosted: Thu Nov 29, 2007 3:27 am 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
This is a complete stab in the dark, but check the myhostname configuration parameter in your main.cf file. It should be set to your system's FQHN.

--James


Top
   
 Post subject:
PostPosted: Thu Nov 29, 2007 5:50 am 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
That's li20-189.members.linode.com, right?

It doesn't seem to be set on the one that's working, but I will try it later.

Thanks.


Top
   
 Post subject:
PostPosted: Thu Nov 29, 2007 11:47 pm 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
Hi,

The problem seems to have been the myhostname setting, alright.

My only problem now is that I can't figure out why the other one works!

Thanks for the suggestion,

James


Top
   
 Post subject: Hostname
PostPosted: Sun Dec 02, 2007 5:02 am 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
I'm guessing you system's hostname is set correctly on the one which was working and not on the other. Have a look in the docs for your Linux distro to determine how to set it correctly.

--James


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group