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/networkand 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 |
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 |
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. |
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. |
All times are GMT -5. The time now is 08:57 PM. |