CLI mail command (solved)
James D. Parra
Jamesp at MusicReports.com
Tue Nov 21 22:26:47 UTC 2006
On Tue, Nov 21, 2006 at 01:46:05PM -0800, James D. Parra wrote:
> Hello,
>
> When sending email from the CLI, the 'From:' domain is
> localhost.localdomain. Where can I change that to reflect the name of the
> computer? Running FC5 basic setup; nothing special. It is not a mail
server
> and won't be receiving any either.
>Short version: neither "mail" nor "mailx" will let you change this.
Hello,
Found a solution. Changed /etc/hosts entry from;
127.0.0.1 MACHINE_NAME localhost.localdomain localhost
<snip>
to ...;
127.0.0.1 localhost.localdomain localhost
IP_ADDRESS_OF_COMPUTER MACHINE_NAME.DOMAIN.COM MACHINE_NAME
<snip>
Now using the 'mail' command shows the correct 'From:' domain.
Best regards,
James
More information about the fedora-list
mailing list