我有一个具有多个 IP 地址的 VPS:
- venet0:0 xxx2
- venet0:1 xxx3
- venet0:2 xxx4
- venet0:3 xxx5
所有 IP 都有 A 记录
- m2.domain.com -> xxx2
- m3.domain.com -> xxx3
- m4.domain.com -> xxx4
- m5.domain.com -> xxx5
和 rDNS 记录
- xxx2 -> m2.domain.com
- xxx3 -> m3.domain.com
- xxx4 -> m4.domain.com
- xxx5 -> m5.domain.com
我已经安装了 postfix + dovecot + mysql + opendkim。
这是我的一部分主配置文件启动 SMTP:
x.x.x.2:smtp inet n - - - - smtpd -o myhostname=m2.domain.com
x.x.x.3:smtp inet n - - - - smtpd -o myhostname=m3.domain.com
x.x.x.4:smtp inet n - - - - smtpd -o myhostname=m4.domain.com
x.x.x.5:smtp inet n - - - - smtpd -o myhostname=m5.domain.com
当我 telnet 到m2.域名.com:25我得到了预期HELO m2.domain.com对于所有子域名也是如此。
一切都很好,但在邮件标题中我写错了
直升机
X-Spam-Last-External-HELO: localhost.localdomain.
我没有设置$我的域名在主配置文件以及来自的价值观主配置文件没有覆盖它。
如何为所有 IP 动态设置 HELO?
以下是完整标题
Received: by mail-tester.com (Postfix, from userid 500) id 5E7229FFAC;
Thu, 26 Mar 2015 23:06:15 +0100 (CET)
Authentication-Results: mail-tester.com; dkim=pass reason="1024-bit key;
unprotected key/testing" header.d=domain.com [email protected]
header.b=ow7oSJaj; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail-tester.com
X-Spam-Level:
X-Spam-Status: No/-0.7/5.0
X-Spam-Test-Scores: DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,
RP_MATCHES_RCVD=-0.55,SPF_PASS=-0.001
X-Spam-Last-External-IP: x.x.x.2
X-Spam-Last-External-HELO: sender.localdomain
X-Spam-Last-External-rDNS: m2.domain.com
X-Spam-Date-of-Scan: Thu, 26 Mar 2015 23:06:15 +0100
X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -0.6
RP_MATCHES_RCVD Envelope sender domain matches handover relay domain * 0.1
DKIM_SIGNED Message has a DKIM or DK signature, not necessarily *
valid * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's * domain * -0.1 DKIM_VALID Message has at least one valid
DKIM or DK signature
Received-SPF: Pass (sender SPF authorized) identity=mailfrom;
client-ip=x.x.x.2; helo=sender.localdomain;
[email protected]; [email protected]
Authentication-Results: mail-tester.com; dmarc=pass
header.from=domain.com
Received: from sender.localdomain (m2.domain.com [x.x.x.2])
by mail-tester.com (Postfix) with ESMTPS id 21A759FF80
for <[email protected]>; Thu, 26 Mar 2015 23:06:13 +0100 (CET)
Received: from [10.11.12.128] (unknown [93.123.22.36])
by m2.domain.com (Postfix) with ESMTPA id E5B0E60CFF
for <[email protected]>; Thu, 26 Mar 2015 18:06:16 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=domain.com;
s=mail; t=1427407577; bh=ipEvgup1uxRHqlEp4/qod7d0wSHd0KX41Jx5NvOQe28=;
h=Date:From:To:Subject:From;
b=ow7oSJajrfdEy0naxO6E6KlXsVcjQ6k2josh4mlxj65cMZU/bKJSzwjUb+dvVmkNw
zwcfgsPCe7OSJ/J2CupvfgNVV/DfpIV94UBOAv8yH9tYgRYZJlJy7xNZ3louzQVQ9j
6TxCwC4ITnsWykNJEcxrVuorNo9FMSDpU3ynemko=
Message-ID: <[email protected]>
Date: Fri, 27 Mar 2015 00:06:16 +0200
From: bizportal <[email protected]>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101
Icedove/31.5.0
MIME-Version: 1.0
To: [email protected]
Subject: my email test
Return-Path: [email protected]
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
编辑:
我已经看到了相关链接,但问题是所有发出的电子邮件都来自一个域(domain.com),因此传输图和多个实例无法完成这项工作,或者我不知道如何完成。