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"

Comments

Popular posts from this blog

Fixing Error "Failed to load VMMR0.r0 (VERR_SUPLIB_WORLD_WRITABLE)" in Virtualbox

Create new Java Class files at runtime

Using iReport plugin for Jasper Reports in Netbeans