我需要将邮件标题中的“Received: (from pseudouser@ localhost )”更改为“Received: (from pseudouser@company.com )。我的域名已经在 sendmail.cf 中设置了,而且我已经将伪装设置为“company.com”。关于我可以做些什么来达到我的最终目标的任何想法?
当前代码
cat body.txt | sendmail -s "Request" user@company.com
电子邮件标题
Received: (from pseudouser@localhost) by servername.corp.company.net (@(#)Sendmail
version 8.13.3 - Revision 1.007 - 3 February 2010/8.11.1) id ####
for user@company.com; Tue, 23 Jul 2013 14:36:15 -0500 (CDT)
Date: Tue, 23 Jul 2013 14:36:15 -0500
From: pseudouser@company.com
Message-ID: <201307231936.####@servername.corp.company.net>
To: <user@company.com>
Subject: Request
Return-Path: pseudouser@company.com
将域设置为...
$ sendmail -d0.1 -bv root
Version @(#)Sendmail version 8.13.3 - Revision 1.007 - 3 February 2010
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = servername
(canonical domain name) $j = $w.corp.company.net
(subdomain name) $m = corp.company.net
(node name) $k = servername
========================================================