免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1439 | 回复: 1
打印 上一主题 下一主题

[Mail] 如何指定mail命令发送的邮件所看到的发件人的名称呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-01-15 15:00 |只看该作者 |倒序浏览
如题,可能比较拗口。
比如我用root定时发送mail给指定用户,因为机器数量很多,用户看到的发件人都是root,能否让他看到的发件人是root@IP呢?
不是通过sendmail等发送的,直接用mail命令发的。
这样区分比较方便一些。
多谢!

论坛徽章:
0
2 [报告]
发表于 2004-01-15 17:42 |只看该作者

如何指定mail命令发送的邮件所看到的发件人的名称呢?

please check the faq from the qmail author, here is some copy,


How do I set up user masquerading? I'd like my own From lines to show "The Boss" <boss@af.mil>; rather than god@heaven.af.mil.

Answer: Add MAILHOST=af.mil, MAILUSER=boss, and MAILNAME='The Boss' to your environment.

To override From lines supplied by your MUA, add QMAILINJECT=f to your environment.




(qmail offical web site, http://cr.yp.to/
http://cr.yp.to/qmail/faq/appearance.html#user-masquerading)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP