Activities

August 2016
M T W T F S S
« Jul   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Mutt : Emails are not sending from user account

Recent I had switched a script which was running from the root account to normal user account for audit purpose. But it is noticed that script is not sending email which use “mutt” commandline MUA program. I have checked email server log and nothing found useful out there. Also I noticed that email from address was changed having poor reputation ie from address showing ‘ramesh@localhost.localdomain

The solution are,
a. We have to create a mut profile file to set the FROM address header.

b. We may also need to set few other variables in that file in order to send email outside. Otherwise mutt program showing in hanged state. The following values are the added to ~/.muttrc file.
set realname=”Daily validations of invoice history”
set use_from=yes
set envelope_from =”yes”

My muttrc file will looks like

[user1@web01 ~]$ cat  ~/.muttrc
set signature='~/.signature'
# Customized headers
unmy_hdr *                      # remove all extra headers first.
set edit_headers=yes
my_hdr From:  Exception Checker   <support@mydomain.com>
my_hdr Reply-To: Group admins <support@mydomain.com>
set realname="Exception Checker "
set use_from=yes
set envelope_from ="yes"
[user1@web01 ~]$

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>