mutt: changing sender mail address

mutt: changing sender mail address
中文意思:使用mutt时如何修改发件人地址

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:

1
2
$ 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:

1
$ 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.

from: appgirl.net

本文固定链接: https://iplaylinux.com/mutt-changing-sender-mail-address.html | Linux玩家

该日志由 admin 于2011年05月13日发表在 Linux系统 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: mutt: changing sender mail address | Linux玩家
关键字: ,

mutt: changing sender mail address:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter