LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-16-2003, 08:51 AM   #1
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Rep: Reputation: 15
sendmail and @localhost.localdomain


Playing with a Fedora box, tying to learn how to do what I really want to do with it.

We have a central email account for all our windows boxes where log files are sent to. This makes all the monitoring nice and easy.

I have managed to set up a user in /etc/aliases called logs, which forwards to this address.
I have told root that all mail it should go to logs.

So-far so-good.

The problem I am having is that these mails appear as user@localhost.localdomain.com, and list as user in the logs mail account - at the moment "root"

I have been trying to persuade sendmail to replace the localhost.localdomain with the machine name, but have had no joy...

any help?

Dan
 
Old 12-16-2003, 02:46 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I'm not 100 % positive on this but try to add yourPCname.net to the /etc/mail/local-host-names . Then restart sendmail (just in case) with /etc/init.d/sendmail restart . That should work. Maybe.
 
Old 12-17-2003, 04:11 AM   #3
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks for the suggestion, but no joy.;

All I want is for sendmail to replace @localhost.localdomain with non-junk entries

Dan
 
Old 12-17-2003, 05:05 AM   #4
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Original Poster
Rep: Reputation: 15
On an offchance I tried something, which seems to have worked.

I have edited my hosts file so it now read
Code:
127.0.0.1   saba    saba.maxfordham.com    localhost.localdomain    localhost
Is there any reason whey this may be a problem???

Dan
 
Old 12-17-2003, 08:08 AM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
The only problem I see is that it should be

127.0.0.1 localhost..localdomain localhosts
127.0.0.1 saba.maxfordham.com saba

This is traditionally the way it is done, I believe. But your way seems to work too.
 
  


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
sendmail using localhost.localdomain joe.biz Linux - Software 1 10-27-2005 05:47 PM
localhost.localdomain steve007 Linux - Newbie 3 07-27-2005 03:48 AM
localhost.localdomain hansi umayangan Linux - General 3 12-23-2004 04:10 AM
localhost.localdomain??? neozero62 Linux - Newbie 2 10-31-2003 10:25 AM
sendmail Deferred: Connection refused by localhost.localdomain. 360 Linux - Software 6 03-31-2003 01:07 PM


All times are GMT -5. The time now is 01:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration