Hostname and mail configurations in Linux
By default mail command will set the from address as $user@$hostname in Linux. If you want to change this behavior using the configuration file (/etc/mail.rc ) this is how it can be done.
Set the entire from address like below.
Add this to the configuration file.
set from="from address"
If you need to change the hostname part only, add this.
set hostname="hostname"
Set the entire from address like below.
Add this to the configuration file.
set from="from address"
If you need to change the hostname part only, add this.
set hostname="hostname"
Comments
Post a Comment