Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-16-2003, 08:51 AM
|
#1
|
|
Member
Registered: Apr 2003
Distribution: Red Hat
Posts: 65
Rep:
|
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
|
|
|
|
12-16-2003, 02:46 PM
|
#2
|
|
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019
Rep:
|
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.
|
|
|
|
12-17-2003, 04:11 AM
|
#3
|
|
Member
Registered: Apr 2003
Distribution: Red Hat
Posts: 65
Original Poster
Rep:
|
Thanks for the suggestion, but no joy.;
All I want is for sendmail to replace @localhost.localdomain with non-junk entries
Dan
|
|
|
|
12-17-2003, 05:05 AM
|
#4
|
|
Member
Registered: Apr 2003
Distribution: Red Hat
Posts: 65
Original Poster
Rep:
|
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
|
|
|
|
12-17-2003, 08:08 AM
|
#5
|
|
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:41 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|