Plesk 中的邮件配置 - DKIM、DMARC、SPF、DNS 记录

问题描述 投票:0回答:2

我将 Plesk (Onyx) 与外部 DNS 结合使用。 我配置了邮件,一切似乎都正常,但我不确定我的邮件配置是否正确,因为有时 DMARC 报告指出 SPF / DKIM 验证未通过。

我的配置:

域的 DNS 记录 - mydomain.com 和 mail.mydomain.com(为 mydomain.com 和子域 mail.mydomain.com 创建了两次相同的 dns 条目,MX 条目除外,它仅为 mydomain.com 配置) :

  • 反向DNS:

    123.456.1.1 -> mail.mydomain.com

  • MX:mail.mydomain.com

  • SPF:

    v=spf1 +a +mx -all

  • _dmarc:

    v=DMARC1; p=none; pct=100; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1; adkim=s; aspf=r

  • 域名密钥:

    o=-

  • 默认._domainkey:

    v=DKIM1; p=SIGNATUREHERE;

PLESK/服务器相关:

  • 主机名:
    zeus.mydomain.com
  • 邮件名称:
    mail.mydomain.com

测试邮件的邮件标题:

Delivered-To: [email protected]
Received: by 10.31.48.86 with SMTP id w83csp1454833vkw;
        Fri, 6 Oct 2017 01:39:44 -0700 (PDT)
X-Google-Smtp-Source: AOwi7QAKFeawe3fGhxawUkAdVvaqjrBGMTZvJ466CoQNxwFGRk6xInOapHBRt14rI+zpCQmcl4z4
X-Received: by 10.223.184.246 with SMTP id c51mr1352887wrg.250.1507279184077;
        Fri, 06 Oct 2017 01:39:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1507279184; cv=none;
        d=google.com; s=arc-20160816;
        b=SignatureHERE
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:subject:to:from:date
         :dkim-signature:message-id:arc-authentication-results;
        bh=4lLj3bndoJBX1fsz99dGcUZLZyWwVlQLXwB3uGl3sKs=;
        b=SignatureHERE
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass [email protected] header.s=default header.b=RUVEDlBN;
       spf=pass (google.com: domain of [email protected] designates 123.456.1.1 as permitted sender) [email protected];
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mydomain.com
Return-Path: <[email protected]>
Received: from mail.mydomain.com (mail.mydomain.com. [123.456.1.1])
        by mx.google.com with ESMTPS id k10si874730wrg.550.2017.10.06.01.39.43
        for <[email protected]>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 06 Oct 2017 01:39:44 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 123.456.1.1 as permitted sender) client-ip=123.456.1.1;
Authentication-Results: mx.google.com;
       dkim=pass [email protected] header.s=default header.b=RUVEDlBN;
       spf=pass (google.com: domain of [email protected] designates 123.456.1.1 as permitted sender) [email protected];
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mydomain.com
Message-Id: <[email protected]>
Received: from mydomain.com (unknown [188.93.221.133]) by mail.mydomain.com (Postfix) with ESMTPSA id 6821B3C00CF for <[email protected]>; Fri,
  6 Oct 2017 10:39:43 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mydomain.com; s=default; t=1507279183; bh=4lLj3bndoJBX1fsz99dGcUZLZyWwVlQLXwB3uGl3sKs=; l=26539; h=From:To:Subject; b=RUVEDlBNkO7PgHEEmuAlCSgG+batl5Ple/8O94GKLu7StZJLLa01k4rbjlnKX+3R9
     mWt8+kOAPthM6lro4Z23B7LMk2ueWDpkFJZX3zRnOUC9E7LiIIQXNz83s8N640T6e7
     7a4nFVAWgS9bIu/+TyyInPHOsnbe0/IKZKAyJw9k=
Authentication-Results: zeus.mydomain.com;
        spf=pass (sender IP is 188.93.221.133) [email protected] smtp.helo=mydomain.com
Received-SPF: pass (zeus.mydomain.com: connection is authenticated)
Date: Fri, 06 Oct 2017 10:39:43 +0200
From: MyDomain <[email protected]>
To: [email protected]
Subject: mydomain.com: Test Subject
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

如果我想使用f,我必须改变什么? e. “[电子邮件受保护]”作为发件人地址/发件人地址?我需要将邮件名更改为“mydomain.com”吗?如果我将邮件名更改为“mydomain.com”,我可以安全地删除 mail.mydomain.com 的 DNS 条目吗?有没有办法在 PLESK 中配置邮件名/确保 PLESK 在进行新的更新/升级时不会覆盖它?

编辑:unlocktheinbox 测试:https://www.unlocktheinbox.com/mail-tester/9YBYhi8wpqo=/

email plesk spf dkim dmarc
2个回答
1
投票

@mfuesslin,

您应该通过此电子邮件测试器运行您的电子邮件,它被认为是排名第一的电子邮件身份验证和配置测试平台。您所要做的就是向所提供的电子邮件地址发送电子邮件,它将在不到几分钟的时间内向您显示结果。

一旦您获得结果,并且如果您需要帮助修复它指出的任何项目,每个人都将能够为您提供更多帮助,因为它更具体。


0
投票

mydomain.com 是您正在使用的域,对吧?您应该确保 SPF、DKIM 甚至 DMARC 的域与信封一致。

顺便说一句,这就是您 SPF 记录中的全部内容吗?您希望哪些服务能够代表您发送电子邮件?为什么不说得更具体一些呢?

v=spf1 +a +mx -all

© www.soinside.com 2019 - 2024. All rights reserved.