LinuxQuestions.org
Review your favorite Linux distribution.
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 12-22-2008, 04:36 PM   #1
cipher7836
Member
 
Registered: Dec 2008
Posts: 35

Rep: Reputation: 15
General Sendmail Question


Sorry this question sounds REALLY stupid but...Why is it that when I use "sysctl kernel.hostname=server.its-actual-dns-name-to-reach-on-the-internet.com" I can email myself, however, when I change the name to "whateverifeellike" I get a message that the user I am emailing is not found. In fact no one I email does it work. Where can I change this in the server so that it knows it is called "whateverifeellike" and it goes ahead and sends the email?
 
Old 12-22-2008, 05:22 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Have a squiz at this:
http://www.harker.com/sendmail/accept.local.domain.html

Looks like it should be fixed if you add server.its-actual-dns-name-to-reach-on-the-internet.com to /etc/hosts for your machine's IP address, or set LOCAL_DOMAIN as described.

Dave
 
Old 12-22-2008, 05:22 PM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Double post.

Last edited by ilikejam; 12-22-2008 at 05:23 PM.
 
Old 12-23-2008, 07:56 AM   #4
cipher7836
Member
 
Registered: Dec 2008
Posts: 35

Original Poster
Rep: Reputation: 15
Weird

Here's the weird thing....the correct name is in the /etc/hosts file.


The name of the server is server.dallas.com. (Not really but you get the point). One of our techs wants to name it Server_Dallas so when he logs on via ssh he can keep track of it and not get confused with any other machines he logs into. So he does sysctl kernel.hostname=Server_Dallas. After he does that Sendmail refuses to send any email to us when I try:

mail user@gmail.com. I can post the log files if it will help. When I open /etc/hosts I see the correct IP with server.dallas.com in there AND Dallas_PBX.

When I use the command "hostname" I see "Server_Dallas". I then use sysctl kernel.hostname=server.dallas.com. I type hostname again and see "server.dallas.com". Now when I email it works. What the!?
 
Old 12-23-2008, 08:33 AM   #5
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
That is a bit odd.

I'd just set LOCAL_DOMAIN in the sendmail config, and forget any of this ever happened.
You might want to suggest to your tech that he changes his $PS1 variable, instead of changing the machine's hostname.

Dave
 
  


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
fedora core 7 vs 8 (Security: sendmail, apache, general) nukoso Fedora 7 03-07-2008 10:41 PM
Sendmail General Questions jrmontg Linux - Software 4 06-22-2005 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 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
Open Source Consulting | Domain Registration