I have CentOS running mutt. When mails are sent from mutt (via a shell script), it takes the current user name as sender address causing it to go into the spam.

I receive mail as

From: tech

What I need is:

From:    tech@myserver.com

All I need is a single place change that reflects everwhere. i.e. if I send from the root user, the from address should be root@myserver.com.

1 Answer 1


Do you have a system-wide mutt RC file? Perhaps it is here: /etc/mutt/Muttrc? Within the file, set the hostname with set hostname=myserver.com.

  • It worked.. However it is giving the from address as tech@myserver.co.in via otherdomain.com Jun 4, 2014 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.