我在我的服务器上使用 DDoS 缓解服务,因此,隐藏我的服务器 IP 非常重要。我有两台服务器,主服务器用于存放我的网站,辅助服务器用于发送电子邮件。我使用辅助服务器的 smtp 信息发送电子邮件。问题是辅助服务器在电子邮件标头中添加了主服务器的 IP 地址。
x-store-info:J++/JTCzmObr++wNraA4Pa4f5Xd6uensydyekesGC2M=
Authentication-Results: hotmail.com; spf=none (sender IP is 62.62.622.62) smtp.mailfrom=; dkim=none header.d=mywebsite.com; x-hmca=none
X-SID-PRA:
X-AUTH-Result: NONE
X-SID-Result: NONE
X-Message-Status: n:n
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTE7YT0xO0Q9MTtHRD0xO1NDTD0x
X-Message-Info: aKlYzGSc+LkUh5O0AnwOe0N6RG7BEHXa+Ep9dVv2J/KLBdwJ4Iby2lXjCPbTQYFQteOst4AFBmvouIk6oSlsys3EmGNQAosOELxkPAlgXi6poOzgrzcwdKVa0O5X7ZL8AcJld8q/XqwGrh9m5oeIOUZC7Cl4wZMX
Received: from mail.secondaryserver.com ([62.62.622.62]) by COL0-MC4-F28.Col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
Tue, 25 Dec 2012 20:42:38 -0800
Received: from [199.199.199.199] (port=59186 helo=localhost)
by mail.secondaryserver.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256)
(Exim 4.80)
(envelope-from )
id 1TnipC-0001XL-4D
for ; Tue, 25 Dec 2012 22:42:38 -0600
To: Test E-Mail
Subject: Test E-Mail Message
Date: Wed, 26 Dec 2012 05:42:37 +0100
From: mywebsite
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
MIME-Version: 1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - mail.secondaryserver.com
X-AntiAbuse: Original Domain - live.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - mywebsite.com
X-BWhitelist: no
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: (localhost) [199.199.199.199]:59186
X-Source-Auth: emailacc
X-Email-Count: 0
X-Source-Cap: ZW1haWx0bWM7dG1jYmxvZ3M7dGVtcGxlLndlYnNpdGV3ZWxjb21lLmNvbQ==
Return-Path:
Message-ID:
X-OriginalArrivalTime: 26 Dec 2012 04:42:38.0526 (UTC) FILETIME=[6EC335E0:01CDE323]
在此标头中,IP 地址 62.62.622.62 属于辅助服务器,IP 地址 199.199.199.199 属于主服务器。我想从此标头中删除所有出现的 199.199.199.199,并将其替换为 62.62.622.62。
答案1
在 EXIM 变更为已收到标题字符串可以通过收到的标题文本多变的