Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我们收到来自 cron 作业等的电子邮件时,它们往往具有像“root”这样的 From 地址。不幸的是,在 Outlook 中,这仅显示为“root”,这使得区分来自不同机器的非常相似的电子邮件非常棘手。
如何更改这些电子邮件的发件人地址,使其类似于“foo.bar.example.com root”?
使用的名称是密码数据库中 root 的“全名”。改变它chfn:
chfn
chfn -f "root at foo.bar" root