LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2011, 03:01 AM   #1
said76
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: Disabled
hostname changed but still shows the old one


Hi,

I'm wondering if I can get some help. I have changed the hostname in etc/hostname on ubuntu server 10.04. I use this server as a mail server.

The problem is when I send email out, it still showed the old hostname + domain name. I do not know if this is to do with caching. I rebooted the machine a few times hoping that it would clear the cache or something but the same problem still happens.

Any help would be greatly appreciated.

Thank you
 
Old 09-09-2011, 03:07 AM   #2
Lexus45
Member
 
Registered: Jan 2010
Location: Kurgan, Russia
Distribution: Slackware, Ubuntu
Posts: 352
Blog Entries: 3

Rep: Reputation: 47
What does 'hostname' command show?
 
Old 09-09-2011, 03:36 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Where exactly you see this "old hostname + domain name" in your mail? Can you post relevant header fields (with masked sensitive data of course)? Maybe this is just your revDNS entry resolved by mail server.
 
Old 09-09-2011, 03:50 AM   #4
said76
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: Disabled
Thanks for your replies.

when run $ hostname
I got testserver.example.com

But when sending emails out from squirrelmail to say my other yahoo email address, I read the From: ubuntu_users@server1.testexample.com

I already checked hosts, it has
127.0.0.1 localhost
127.0.0.1 testserver.example.com

I could not understand why it did not change.

By the way, I run Postfix, Dovecot, openLDAP, SASL and squirrelmail.

Thank you
 
Old 09-09-2011, 04:05 AM   #5
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
The "From:" field is configurable by email client, so check options of squirrelmail.
 
Old 09-09-2011, 07:01 PM   #6
said76
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: Disabled
will check that on Monday and keep you updated. Thank you
 
Old 09-11-2011, 09:54 PM   #7
said76
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: Disabled
eSelix,

I checked the mailname under /etc and it turned out that it still had the previous hostname. So I went to change it and restart both postfix and dovecot. All good so far.

However, after sending an email from squirrelmail to my Yahoo account for a test, I can see that the mail has the right FQDN. Then, I went to reply from Yahoo back to my mail server, I immediately received a bounced back Failure Notice email with the message

Sorry, we were unable to deliver your message to the following address.

<jsmith@mymailserver.example.com>:
Remote host said: 550 5.1.1 <jsmith@mymailserver.example.com>: Recipient address rejected: User unknown in local recipient table [RCPT_TO]

I wonder what the error means. Which recipient table is it talking about? I have users added to LDAP server.

Any help would be greatly appreciated.

Thank you
 
Old 09-12-2011, 04:56 AM   #8
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Sorry, but I can't help you more, my knowledge does not cover that, maybe others.
 
  


Reply


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
Hostname changed by some one. tkmsr Linux - General 4 04-13-2010 12:45 PM
Changed hostname during install, now CUPS has wrong hostname on web interface slinx Linux - Software 1 08-07-2009 08:01 PM
hostname changed esgaroth Fedora 12 08-23-2007 12:18 AM
hostname not being changed irfanhab Linux - Networking 3 07-31-2006 03:53 PM
hostname changed - why? greg108 Fedora 3 12-31-2004 07:41 PM


All times are GMT -5. The time now is 02:59 PM.

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