SPF EXTERNAL RELAY
${result} = Scan Message With Rspamc ${TESTDIR}/messages/external_relay.eml
- ... -F root@trusted.client
- Check Rspamc ${result} R_SPF_PERMFAIL
+ Should contain ${result.stdout} R_SPF_ALLOW (1.00)[+ip4:37.48.67.26]
*** Keywords ***
SPF Setup
replies = ["v=spf1 ip4:8.8.8.8 a -all"];
},
{
- name = "trusted.relay",
+ name = "trusted.com",
type = "txt";
- replies = ["v=spf1 -all"];
+ replies = ["v=spf1 ip4:192.168.1.1"];
},
{
- name = "external.client",
+ name = "external.com",
type = "txt";
- replies = ["v=spf1 ip4:37.98.67.26"];
+ replies = ["v=spf1 ip4:37.48.67.26"];
},
{
name = "co.za",
-Received: from trusted.relay (192.168.1.1) by
- example.com (37.98.67.26) with Microsoft SMTP
- Server id for <test@example.com>
- 15.1.1847.3; Thu, 5 Dec 2019 18:22:18 +0300
-Received: from external.client (37.48.67.26) by
- trusted.relay (192.168.1.1) with Microsoft SMTP
- Server id 15.1.1847.3 via Frontend Transport; Thu, 5 Dec 2019 18:22:18 +0300
+Return-path: root@external.com
+Received: from trusted.com (trusted.com [192.168.1.1]) by
+ example.com with LMTP id MJX+NoRd5F2caAAAzslS3g for <test@example.com>;
+ Thu, 5 Dec 2019 18:22:18 +0300
+Received: from external.com (external.com [37.48.67.26]) by
+ trusted.com (Postfix) with ESMTP id C018DA00021;
+ Thu, 5 Dec 2019 18:22:18 +0300
To: test@example.com
-From: root@external.client
+From: root@external.com
Subject: test Sat, 26 Jan 2019 12:04:58 +0100
Message-Id: <20190126120458.015328@srv.example.com>
Date: Sat, 26 Jan 2019 12:04:58 +0100
Content-Type: multipart/mixed
dsadas
-
-fail6.org.org.za
\ No newline at end of file