LinuxQuestions.org
Help answer threads with 0 replies.
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 11-24-2006, 02:57 PM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 356

Rep: Reputation: 32
how to change user@localhost.localdomain to user@host?


Hi all,

How do I configure my Fedora 6 system so that when I use the "mail" program in terminal and in scripts the From address is user@host instead of user@localhost.localdomain?

The correct host name of my system is set in:
/etc/sysconfig/network
/etc/hosts
and it is displayed accordingly at, for example, the bash prompt. But there must be some other location that is needed as well. Can anyone help?

TIA
 
Old 11-25-2006, 01:04 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Read man hostname for the details;

as root type hostname MyComputerName

[lenard@DESKTOP2400 ~]$ ls
Backgrounds Desktop google-earth IFU Matrox.txt
bin Downloads Hardware.txt iptables Personal
 
Old 11-25-2006, 05:13 PM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 356

Original Poster
Rep: Reputation: 32
Thanks, but hostname doesn't seem to affect the mail program. It must be some setting buried deep in sendmail.

Oddly enough, this is setup correctly by default under Ubuntu; no localhost.localdomain stuff From:, just user@host.
 
Old 11-25-2006, 05:29 PM   #4
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 356

Original Poster
Rep: Reputation: 32
Ha, I found the solution; it is in this thread: http://www.linuxquestions.org/questi...d.php?t=230040

It involves setting the hostname in this file /etc/mail/local-host-names and restarting sendmail.
 
  


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
Need to change localhost.localdomain in mail verb rfrisard Linux - General 1 02-07-2006 08:08 PM
Change user@host.domain to user@domain Wynand1 Linux - Networking 7 09-14-2004 12:56 AM
[user@localhost user]$ md5sum 'filename Maxmore Linux - Newbie 1 06-07-2004 05:15 AM
How to change localhost.localdomain learn25 Red Hat 1 02-24-2004 08:32 AM
Resolver problem: ping localhost.localdomain gives Unknown host rmd Linux - Networking 0 11-06-2003 08:58 AM

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

All times are GMT -5. The time now is 01:27 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