Postings
mutt: changing sender mail address on the fly
Had a need today to adjust the sender email address for a notification script. Since the script uses mutt to send the emails, that change was fairly straight-forward. Instead of modifying .muttrc, simply export the EMAIL environmental variable. On the command line it looks something like this:
$ export EMAIL=’account@domain’
$ mutt <the rest of the mutt command line directives here…>
You can always combine the above into a single line if needed:
$ export EMAIL=’account@domain’; mutt <the rest of the mutt command line directives here…>
Btw, mutt is only a MUA (Mail User Agent) and not a MTA (Mail Transport Agent) and it relies on the underlying MTA to perform the mail delivery. In this case sendmail for us.
Filed under: cli-fu — Tags: email, mutt, tips — appgirl @ 7:19 amComments (0)
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL
Leave a comment
About
My name is Catherine Liao and you're reading the latest postings of various blogs I follow. You'll notice that the topics tend to center around Cloud Computing, Data Center, Virtualization, Servers, Web Technologies and 24x7 Operations.
These are topics that I'm interested in as I've spent a large chunk of my professional career building, deploying, and maintaining 24x7 application delivery environments. I use the knowledge I've garnered daily in my role as a Technology Solutions Architect for Cisco. I should note that this site is my personal site and does not reflect the views of Cisco.
Feel free to drop me a note if you find this site useful or if you'd like for me to check out your blog. I can be reached at catherine.liao@gmail.com. You can also connect with me via LinkedIn or Twitter.
Looking for less "geeky" content? Check out my travel blog 1-Day Itinerary.

