Authentication-Results - DKIM - change header - email

If I send emails from my server I got the following headers:
Delivered-To: targetemail#gmail.com
Received: by 10.31.231.70 with SMTP id e67csp768117vkh;
Wed, 20 Sep 2017 08:12:10 -0700 (PDT)
X-Google-Smtp-Source: AOwi7QDtqlqxfaVO9FBULHwYV4HU0DKhL6jVf7jUECYVAh8qVNsp+/XIbyzNmIRjoKT0ICWy9Ome
X-Received: by 10.223.169.83 with SMTP id u77mr2134583wrc.268.1505920330877;
Wed, 20 Sep 2017 08:12:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1505920330; 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=message-id:content-transfer-encoding:mime-version:subject:to:from
:date:dkim-signature:arc-authentication-results;
bh=+okhXPBeWS3J3wh4Y2Ayn0yURB1edQflYGYjC0IwBQo=;
b=SIGNATUREHERE
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=#mydomain.de header.s=default header.b=sQFuh0qx;
spf=pass (google.com: domain of info#mydomain.de designates 123.456.1.1 as permitted sender) smtp.mailfrom=info#mydomain.de;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mydomain.de
Return-Path: <info#mydomain.de>
Received: from mail.mydomain.de (mail.mydomain.de. [123.456.1.1])
by mx.google.com with ESMTPS id k2si1545272wmi.26.2017.09.20.08.12.10
for <targetemail#gmail.com>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 20 Sep 2017 08:12:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of info#mydomain.de designates 123.456.1.1 as permitted sender) client-ip=123.456.1.1;
Authentication-Results: mx.google.com;
dkim=pass header.i=#mydomain.de header.s=default header.b=sQFuh0qx;
spf=pass (google.com: domain of info#mydomain.de designates 123.456.1.1 as permitted sender) smtp.mailfrom=info#mydomain.de;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mydomain.de
Received: from mydomain.de (mydomain.de [IPv6:2a01:4f8:10b:1f55::2]) by mail.mydomain.de (Postfix) with ESMTPSA id 1CC703C00E6 for <targetemail#gmail.com>; Wed, 20 Sep 2017 17:12:10 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mydomain.de; s=default; t=1505920330; bh=+okhXPBeWS3J3wh4Y2Ayn0yURB1edQflYGYjC0IwBQo=; l=26446; h=From:To:Subject; b=sQFuh0qxf1rc0fFKeuhDeLoAaacLaFRyCyMw8rMJh80AZFLyLcCpVqKq1nWBBlEE0
1ii+p3Hf9HNqTvSqU66EUIZ0QtIs8GCLJI3m95DN8DpqXFvLFfiK88413zKnufODOS
aodq8Mxq53+6wG/GOmoe5jQMxG5NH1mV720xVlIw=
Authentication-Results: zeus.mydomain.de;
spf=pass (sender IP is 2a01:4f8:10b:1f55::2) smtp.mailfrom=info#mydomain.de smtp.helo=mydomain.de
Received-SPF: pass (connection is authenticated)
Date: Wed, 20 Sep 2017 17:12:10 +0200
From: info#mydomain.de
To: targetemail#gmail.com
Subject: My Subject
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Message-Id: <20170920151210.1CC703C00E6#mail.mydomain.de>
Everything is fine except the following header:
Authentication-Results: zeus.mydomain.de;
How do I have to change my server settings to get that header look like:
Authentication-Results: mydomain.de;
or
Authentication-Results: mail.mydomain.de;
Do I have to change the hostname accordingly, which is zeus.mydomain.de at the moment? Can I achieve the desired header without changing the hostname of the server?

SPF and DKIM matter in this regard only with alignment with your friendly from domain - mydomain.de. If you have domains or subdomains you don't send email "from" you'd still want to do email auth as bad guys can spoof domains and sub-domains that aren't used by you as the from domain in email.

Related

Outlook app does not show PNG attachments in email messages sent through the API call

Apologies in advance for a rather abstract problem description.
I have an outlook mailbox to which I send a message with an attached PNG image through a built-in API call.
When the email arrives at to outlook mailbox (on web app or desktop app), I see no attachments.
If I send the same email with a PNG attached to my GMAIL account using the same API call, that email with the PNG attachment arrives as expected.
Could someone please advise why GMAIL and OUTLOOK mailboxes could behave differently? Could there be a problem with the API call or the server?
MIME
Delivered-To: mtester#test.com
Received: by 2002:ac8:124d:0:0:0:0:0 with SMTP id g13csp604452qtj;
Thu, 30 Sep 2021 06:30:46 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJzSSm54VUI64FiCNLMp63/T5SNi8pdUZMcX/nmZbGSLcew6JodBKWDkj1fUGv0YmUOQYDFA
X-Received: by 2002:aa7:8ecc:0:b0:434:d4fe:311b with SMTP id b12-20020aa78ecc000000b00434d4fe311bmr4582925pfr.22.1633008645701;
Thu, 30 Sep 2021 06:30:45 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1633008645; cv=none;
d=google.com; s=arc-20160816;
b=MUVw5NvEuomZzBCy12ORQVZ+4WbYC4T8pWZkJYjomePfPsAcq42wKK1ceNZjuC5bgp
GLNK3cgGk5eXk7N+wdTy7PN3qoEr0x4d/kmipkuI9v/mf1M86ht/Z2C9j+Bb8hOfR4D4
+PTJs+5lBRWM9H571HDl4Cewa7Suc/krmjWnpw4pIDew3IbXEFkq80uVnyWHxQx6QC1l
+K1h7NnyByCKp79WYsVz3Hlc2BNAYlGh+jNbwpA9ZPHCHRqNFvlmx75Vb+IdY5e4Nf4J
Bs+S1i2RcxLELUU5+WSyzAX8vQY1oEZushVgIffIahQ9DN6m5AVVvClXSCyjaxBHy3Z0
dB5g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
h=list-id:list-unsubscribe:notification-stream-id:mime-version
:subject:message-id:to:from:date:dkim-signature;
bh=pFR40JQ2902/VixP+mqdG3A+OXkafDmmSdbRRZHIjrU=;
b=U1jrKrN5u11bI9CxXg8eOSGALfm2Q2IsPt4HlBhSyIwwCQvTxD+f6zCBPXyyzhDdTQ
d7tsb5boag+5hFXmi+VAbOvTbY34K+NvFKzHbuzRbWoCbPljwBaL02DCjVmsrgMvYaGu
K4LjiSzpfyYP5Jf2IcPk5tIiijpeUMcItrmgv7Kx157/tyLyw3YYoBLbT2sBb1vPBJg3
8APG/0FdaREtcLRqt22JivPTG/EATpUODR3m4qBB24ytEvHGcnmYS5r27xt03egAedfo
0rxNL4Lhh+Tlv6nA9dQfKmzGaGkcc2Ux38jRS7FuWmbXqhLu1w1bIcIVEfe3ourr27oC
JMgg==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=#development.test.com header.s=scph1119 header.b=aplxpcYW;
spf=pass (google.com: domain of msprvs1=18907xmukpyxm=bounces-21811-12061#spmailtechnol.com designates 192.174.90.181 as permitted sender) smtp.mailfrom="msprvs1=18907xMUKpYxM=bounces-21811-12061#spmailtechnol.com";
dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=development.test.com
Return-Path: <msprvs1=18907xMUKpYxM=bounces-21811-12061#spmailtechnol.com>
Received: from mta-90-181.sparkpostmail.com (mta-90-181.sparkpostmail.com. [192.174.90.181])
by mx.google.com with ESMTPS id x6si3536741pfb.329.2021.09.30.06.30.45
for <mtester#test.com>
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Thu, 30 Sep 2021 06:30:45 -0700 (PDT)
Received-SPF: pass (google.com: domain of msprvs1=18907xmukpyxm=bounces-21811-12061#spmailtechnol.com designates 192.174.90.181 as permitted sender) client-ip=192.174.90.181;
Authentication-Results: mx.google.com;
dkim=pass header.i=#development.test.com header.s=scph1119 header.b=aplxpcYW;
spf=pass (google.com: domain of msprvs1=18907xmukpyxm=bounces-21811-12061#spmailtechnol.com designates 192.174.90.181 as permitted sender) smtp.mailfrom="msprvs1=18907xMUKpYxM=bounces-21811-12061#spmailtechnol.com";
dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=development.test.com
X-MSFBL: 71kOGDf9zf9xI2yo3tHvW/RTob2jTP/CmzLRto9+IBM=|eyJyIjoibWdlaWRyaWN oaXNAbnltYnVzLmNvbSIsInRlbmFudF9pZCI6InNwYyIsIm1lc3NhZ2VfaWQiOiI 2MTUxMDRiYzU1NjFkZDMwOWI4MiIsInN1YmFjY291bnRfaWQiOiIxMjA2MSIsImN 1c3RvbWVyX2lkIjoiMjE4MTEifQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=development.test.com; s=scph1119; t=1633008645; i=#development.test.com; bh=pFR40JQ2902/VixP+mqdG3A+OXkafDmmSdbRRZHIjrU=; h=Date:From:To:Message-ID:Subject:Content-Type; b=aplxpcYWKZQDDNs2ie3UAJQRm43XWzz3+d2vCLU6/pvuE++Ho7IuVHjhkTT2Hfwca
nIYG35q3O9NvorZFMF3YIOgEBnvkd4fFGq9yYWASRil57uFA+9JMMcIxFQX0FbZaw+
9W9SVN8rdm2Aid7YQHSrlSphGljqsFDMARrpbv0I=
Authentication-Results: aa.mta1vlct.cc.prd.sparkpost smtp.user=<hidden>; auth=pass (LOGIN)
Received: from [64.106.167.126] ([64.106.167.126:34426] helo=mail-002.development.test.com) by aa.mta1vlct.cc.prd.sparkpost (envelope-from <dev40#development.test.com>) (ecelerity 4.4.0.17957 r(msys-ecelerity:tags/4.4.0.5)) with ESMTPSA (cipher=AES-256-GCM) id B9/28-33277-40CB5516; Thu, 30 Sep 2021 13:30:45 +0000
Received: from testing-868f87487d-nh4tt (worker03.testings01.development.test.com [10.0.204.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-002.development.test.com (Postfix) with ESMTPSA id E21013AB for <mtester#test.com>; Thu, 30 Sep 2021 09:30:43 -0400 (EDT)
Date: Thu, 30 Sep 2021 09:30:43 -0400 (EDT)
From: dev40#development.test.com
To: mtester#test.com
Message-ID: <1302160953.5570.1633008643871#testing-868ff9787d-nh4tt>
Subject: test email from testhub
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_Part_5568_1264138795.1633008643847"
Notification-Stream-Id: EmailNotificationStream:1633008643484-0
List-Unsubscribe: <mailto:unsubscribe#unsub.spmta.com?subject=unsubscribe:CXvq00rTSMSrVDS7ikX5WwGZH1qnGJMttd8rMfKeGsw~|eyAicmNwdF90byI6ICJtZ2VpZHJpY2hpc0BueW1idXMuY29tIiwgInRlbmFudF9pZCI6ICJzcGMiLCAiY3VzdG9tZXJfaWQiOiAiMjE4MTEiLCAibWVzc2FnZV9pZCI6ICI2MTUxMDRiYzU1NjFkZDMwOWI4MiIsICJzdWJhY2NvdW50X2lkIjogIjEyMDYxIiB9>
List-Id: <spc.21811.12061.sparkpostmail.com>
------=_Part_5568_1264138795.1633008643847
Content-Type: multipart/related; boundary="----=_Part_5569_1922131613.1633008643847"
------=_Part_5569_1922131613.1633008643847
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html><body><h1>TEST html email from testhub controller</h1></body></html>
------=_Part_5569_1922131613.1633008643847
Content-Type: image/png; name="Capture 2.PNG"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="Capture 2.PNG"
Content-ID: <Capture%202.PNG>
------=_Part_5569_1922131613.1633008643847--
------=_Part_5568_1264138795.1633008643847--
The HTML body and the image are grouped into a multipart/related group, so Outlook probably hides the image attachment - this is usually done for the HTML images referenced by the body (which is not your case).
Try to get rid of that part:
...
Content-Type: multipart/mixed; boundary="----=_Part_5568_1264138795.1633008643847"
------=_Part_5568_1264138795.1633008643847
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html><body><h1>TEST html email from testhub controller</h1></body></html>
------=_Part_5568_1264138795.1633008643847
Content-Type: image/png; name="Capture 2.PNG"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="Capture 2.PNG"
Content-ID: <Capture%202.PNG>
------=_Part_5568_1264138795.1633008643847--

Paypal REST API javascript SDK error 400 while paying with cards

I have integrated the PayPal REST API via SDK Javascript:
<script>
paypal.Buttons({
enableStandardCardFields: true,
createOrder: function (data, actions) {
return actions.order.create(<?=$order_details?>);
},
onApprove: function(data, actions) {
$('.loader').removeClass('hidden');
return actions.order.capture().then(function(details) {
saveOrder(details.status, details.id);
});
},
onError: function (err) {
$('.loader').addClass('hidden');
openModal('paypal error', 'error');
}
}).render('#paypal-button-container');
</script>
Everythings works fine if the customers pay with Paypal account but when they use the form to pay by credit or debit card they'll get some 400 errors which stuck the payment flow just a few seconds after customers are prompted by their card issuing bank to complete an additional verification. The errors in the console are:
POST https://www.paypal.com/webapps/helios/api/switch/threeDSLookUp 400
POST https://www.paypal.com/webapps/helios/api/checkout/83T90328GR130744R/session/clear3DSContingency 400
I try to pay with testing card on PayPal sandbox and the payment successfully ends.
Does PayPal have some problem or are there any errors in my implementation?
Edit:
The response body of the two requests which give the 400 status are empty, I can paste the response headers from the network tab:
General
Request URL: https://www.paypal.com/webapps/helios/api/switch/threeDSLookUp
Request Method: POST
Status Code: 400
Remote Address: 2.17.140.171:443
Referrer Policy: strict-origin-when-cross-origin
Response Headers
cache-control: max-age=0, no-cache, no-store, must-revalidate
content-length: 477
content-security-policy: default-src 'self' https://*.paypal.com https://*.paypalobjects.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' https://*.paypal.com https://*.paypalobjects.com https://*.qualtrics.com; script-src 'self' https://*.paypal.com https://*.paypalobjects.com 'unsafe-inline' 'unsafe-eval'; frame-src 'self' https://*.paypal.com https://*.paypalobjects.com https://*.cardinalcommerce.com https://*.qualtrics.com; img-src https: data:; form-action 'self' https://*.paypal.com https://*.cardinalcommerce.com; base-uri 'self' https://*.paypal.com; object-src 'none'; block-all-mixed-content;; report-uri https://www.paypal.com/csplog/api/log/csp
content-type: application/json; charset=utf-8
date: Wed, 31 Mar 2021 10:57:55 GMT
dc: phx-origin-www-1.paypal.com
etag: W/"1dd-PCgk17aCFosoAOdUfcJ2eD6QiiM"
paypal-debug-id: 5d9937b9701fc
set-cookie: enforce_policy=gdpr_v2; Max-Age=31536000; Domain=.paypal.com; Path=/; Expires=Thu, 31 Mar 2022 10:57:55 GMT; Secure; SameSite=None
set-cookie: cookie_prefs=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None
set-cookie: cookie_prefs=T%3D1%2CP%3D1%2CF%3D1%2Ctype%3Dexplicit_banner; Max-Age=31536000; Domain=.paypal.com; Path=/; Expires=Thu, 31 Mar 2022 10:57:55 GMT; Secure; SameSite=None
set-cookie: x-pp-s=eyJ0IjoiMTYxNzE4ODI3NTExMCIsImwiOiIxIiwibSI6IjAifQ; Domain=.paypal.com; Path=/; HttpOnly; Secure; SameSite=None
set-cookie: x-csrf-jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6InpNOTJKdjNUQk5XSTVtUWMtVk5Iajl2cVUzV0RWTHlhWThyVFRLOVBVT0ZaU3ZLVFg4b052WmRpQm9LUnJLTFp5NGFlUzBlU2JaOFRSQmI3OGdkdkpxWFlLZmVKRTI4Nm1NUTZySlYxb3ZvTWlqbU1CWndLVWJNVXU5QVFkNnNLMFNQUHNKV201OU1nMEViQmxvVnRreFZ5UkhyYzF5QndRX19ENDZuQWhyRXg3R2J3SkRsODNBRU1BZ0MiLCJpYXQiOjE2MTcxODgyNzUsImV4cCI6MTYxNzE5MTg3NX0.TIt4J4zYOv46V_tdUBdMh_Qw1_zXrmmJBFxMp98U3-E; Domain=.paypal.com; Path=/; Expires=Wed, 07 Apr 2021 10:57:55 GMT; HttpOnly; Secure; SameSite=None
set-cookie: l7_az=dcg14.slc; Path=/; Domain=paypal.com; Expires=Wed, 31 Mar 2021 11:27:55 GMT; HttpOnly; Secure; SameSite=None
set-cookie: ts=vreXpYrS%3D1711882674%26vteXpYrS%3D1617190074%26vr%3D64ed90e41780a48f12706c19f7edbfa1%26vt%3D87e554a81780ad0452ba4611ff12d2a4%26vtyp%3Dreturn; Path=/; Domain=paypal.com; Expires=Sat, 30 Mar 2024 10:57:55 GMT; HttpOnly; Secure; SameSite=None
set-cookie: ts_c=vr%3D64ed90e41780a48f12706c19f7edbfa1%26vt%3D87e554a81780ad0452ba4611ff12d2a4; Path=/; Domain=paypal.com; Expires=Sat, 30 Mar 2024 10:57:55 GMT; Secure; SameSite=None
set-cookie: x-cdn=akamai; path=/; domain=.paypal.com; secure
set-cookie: akavpau_ppsd=1617188875~id=ec9ace54472ec90ac4d21553c8f7b468; Domain=www.paypal.com; Path=/; HttpOnly; Secure; SameSite=None
strict-transport-security: max-age=63072000
x-content-type-options: nosniff
x-csrf-jwt: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6IkFLbnNfRmI4X1FCbk1BY3JicVg0N1hfNW1wOTZJdnlpRm8tbW9ZN1dBeF9ULUlqNy10TWNTUDhwdUtUQ3ZQbExoRlpodDhvTlFINzNmbHpYS2NvMVJ5MFluSVAtREhOZ0xSSGVRLTd0ekFOemdZUnF2RGt5OFJqbE9IUVRxQXZXRVlBbVhvUEVWQjZNaTJJUFdGa0t0aTFYSnpudXkzS2daUlpJb2dlZHBNM1dJQ19xNWg3dWJSa2pSMk8iLCJpYXQiOjE2MTcxODgyNzUsImV4cCI6MTYxNzE5MTg3NX0.HHR4G6wt7trB8Tay6S4Kx8VKqVadYklrVjH03u9AF8w
x-csrf-jwt-hash: f2527332411817d44f2014fd6e02276e524de88ab17b95955bee59bd811df9b9
x-edgeconnect-midmile-rtt: 160
x-edgeconnect-origin-mex-latency: 220
x-xss-protection: 1; mode=block
and
General
Request URL: https://www.paypal.com/webapps/helios/api/checkout/83T90328GR130744R/session/clear3DSContingency
Request Method: POST
Status Code: 400
Remote Address: 2.17.140.171:443
Referrer Policy: strict-origin-when-cross-origin
Response Headers
cache-control: max-age=0, no-cache, no-store, must-revalidate
content-length: 502
content-security-policy: default-src 'self' https://*.paypal.com https://*.paypalobjects.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' https://*.paypal.com https://*.paypalobjects.com https://*.qualtrics.com; script-src 'self' https://*.paypal.com https://*.paypalobjects.com 'unsafe-inline' 'unsafe-eval'; frame-src 'self' https://*.paypal.com https://*.paypalobjects.com https://*.cardinalcommerce.com https://*.qualtrics.com; img-src https: data:; form-action 'self' https://*.paypal.com https://*.cardinalcommerce.com; base-uri 'self' https://*.paypal.com; object-src 'none'; block-all-mixed-content;; report-uri https://www.paypal.com/csplog/api/log/csp
content-type: application/json; charset=utf-8
date: Wed, 31 Mar 2021 10:57:56 GMT
dc: phx-origin-www-1.paypal.com
etag: W/"1f6-AvJ2sqQswE251OZ1PTs3yJOewDs"
paypal-debug-id: dc051a9676ef9
set-cookie: enforce_policy=gdpr_v2; Max-Age=31536000; Domain=.paypal.com; Path=/; Expires=Thu, 31 Mar 2022 10:57:55 GMT; Secure; SameSite=None
set-cookie: cookie_prefs=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure; SameSite=None
set-cookie: cookie_prefs=T%3D1%2CP%3D1%2CF%3D1%2Ctype%3Dexplicit_banner; Max-Age=31536000; Domain=.paypal.com; Path=/; Expires=Thu, 31 Mar 2022 10:57:55 GMT; Secure; SameSite=None
set-cookie: x-pp-s=eyJ0IjoiMTYxNzE4ODI3NTYyMSIsImwiOiIxIiwibSI6IjAifQ; Domain=.paypal.com; Path=/; HttpOnly; Secure; SameSite=None
set-cookie: x-csrf-jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6InA2OXdaWWdTc1Bfa0d2NG42LVp5VDlOYjEyMF9LcnRiYjhCSEtQX2M2MUhvWmVyUk5YbXhDdHlpMzEtQ1lrRE5GMUxKblpjTXRQNkJhMVk0NEo5ZzU4bXkyMk1fYjN1SURXTmVTR2cwUnJzbl92Q1UxNk5sMVNBY1hPRFBOMkgyOUYyckJqQzRBSGo1LXJMeFJGOUV6bE50US1wNERkLXMxY1RaX1E3czZzYVZxM0hkbzM0dHNNcTVjQk8iLCJpYXQiOjE2MTcxODgyNzUsImV4cCI6MTYxNzE5MTg3NX0.QRxuuY0WTAxfrr-YD20kHGrmYoMtf68HPu85axDF4Qc; Domain=.paypal.com; Path=/; Expires=Wed, 07 Apr 2021 10:57:55 GMT; HttpOnly; Secure; SameSite=None
set-cookie: l7_az=dcg14.slc; Path=/; Domain=paypal.com; Expires=Wed, 31 Mar 2021 11:27:56 GMT; HttpOnly; Secure; SameSite=None
set-cookie: ts=vreXpYrS%3D1711882675%26vteXpYrS%3D1617190075%26vr%3D64ed90e41780a48f12706c19f7edbfa1%26vt%3D87e554a81780ad0452ba4611ff12d2a4%26vtyp%3Dreturn; Path=/; Domain=paypal.com; Expires=Sat, 30 Mar 2024 10:57:56 GMT; HttpOnly; Secure; SameSite=None
set-cookie: ts_c=vr%3D64ed90e41780a48f12706c19f7edbfa1%26vt%3D87e554a81780ad0452ba4611ff12d2a4; Path=/; Domain=paypal.com; Expires=Sat, 30 Mar 2024 10:57:56 GMT; Secure; SameSite=None
set-cookie: x-cdn=akamai; path=/; domain=.paypal.com; secure
set-cookie: akavpau_ppsd=1617188876~id=afd894e1916b2c1aca2a5ac9cf916c1e; Domain=www.paypal.com; Path=/; HttpOnly; Secure; SameSite=None
strict-transport-security: max-age=63072000
x-content-type-options: nosniff
x-csrf-jwt: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6IkZRWVp0U0tzQ1RyTExuN3BrZ2Z6eGU0TTNqNEpOZ2RBREt6UzRUM1ZkcEZRaXExbXVUb1pqQ1ZLVVRFb1h1ZngwOFpiN09RVlZuVE9sNWh3WU4yeGFsZTRGUmZsLVhCZVdkd0dKVjVkbWtyNGJxdVZMVlRieENRUkx4SEtQeXVNQWFzaktRY2dXUXQxWXB6YWExVmlCeHJxMFc4LUVSX21KOERranJzWmFVdkFrSVh1cjRjS3dvdGZNSWEiLCJpYXQiOjE2MTcxODgyNzUsImV4cCI6MTYxNzE5MTg3NX0.NrhhEi6Pk2xNCskmIUvqRBiBVKbvo2nv0W7ZjUUE79o
x-csrf-jwt-hash: 04c44dce1db758b9a87b32491486597340a5a1f359df17d18e7adc2184f4d4ed
x-edgeconnect-midmile-rtt: 158
x-edgeconnect-origin-mex-latency: 683
x-xss-protection: 1; mode=block

Outlook not rendering emails sent

I'm a bit baffled by this. It works fine in everything I've tested, except Outlook
my #all_parts;
push #all_parts, Email::MIME->create(
body_str => $text,
attributes => {
encoding => 'quoted-printable',
content_type => "text/plain",
disposition => "inline",
charset => "UTF-8"
}
);
my $email = Email::MIME->create(
header_str => [
From => $from,
To => [ $to ],
Subject => $subject
],
parts => \#all_parts,
attributes => {
content_type => "multipart/mixed"
}
);
print "Content-type: text/html \n\n";
print "<pre>" . $email->as_string . "</pre> ";
Which outputs this message:
From: delicia#x.com
To: andy.newby#hotmail.com
Subject: webform delicia Menu
Date: Sat, 21 Mar 2020 04:22:57 -0700
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="15847897770.621258BEF.22006"
Content-Transfer-Encoding: 7bit
--15847897770.621258BEF.22006
Date: Sat, 21 Mar 2020 04:22:57 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
foo bar=
--15847897770.621258BEF.22006--
For some reason it shows up buggered:
I must be missing something really stupid - but I can't see it. Maybe a missing header?
The full source of an incoming email looks like:
Return-path: <x#x.com>
Envelope-to: support#mysite.co.uk
Delivery-date: Sat, 21 Mar 2020 15:33:16 +0000
Received: from gt-van-cus5.nmsrv.com ([208.70.247.69])
by admin.foo.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.86_2)
(envelope-from <x#x.com>)
id 1jFg7e-0006lZ-G5
for support#mysite.co.uk; Sat, 21 Mar 2020 15:33:16 +0000
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=x.com; h=message-id
:from:to:subject:date:mime-version:content-type
:content-transfer-encoding; s=mail; bh=TUrwl9pmlEV+CwP8vMMqxIQa9
Bg=; b=G2DuFVkwBF8qkCi7zM3hnwl18nkdIW83JbAoheLTAG9Xh6Ix2bxdPVsP7
3wI1cjUDjWGhTUlMLHGKP5kHT4FPKFkhMclIv+KZ1jU65BaMjRuwWz/FkTRg7v6I
oClvU/PXXn5gqfRiYZHR4L8qgCQaGhuXncxNgtaELqoQosU+gc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=x.com; h=message-id
:from:to:subject:date:mime-version:content-type
:content-transfer-encoding; q=dns; s=mail; b=VHNvnP4AnMZxow+CoUj
3Xxj5KkIWJtUOJf21kf+E/vhvKWbbb7IEWHFNuQGATCAG+WX529rMQ83l9KsDB9d
G9gRo0Hsw7CK2D56wv7m22ur6QeaCgZNF7xHEECxZkaT9jlI9JFLU8pSXaFvSEcC
YgqKlm2b+zs0Q4mW8mH89xiQ=
Received: (qmail 23888 invoked by uid 1000); 21 Mar 2020 15:33:12 -0000
X-AntiVirus: Clean
Message-ID: <20200321153311.23887.qmail#gt-van-cus5.nmsrv.com>
From: x#x.com
To: support#mysite.co.uk
Subject: =?UTF-8?B?d2ViZm9ybSA=?=
Date: Sat, 21 Mar 2020 08:33:11 -0700
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="15848047911.6F3Ff.23881"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 16
X-Spam-Bar: +
X-Spam-Report: Spam detection software, running on the system "admin.foo.com",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
##CONTACT_ADDRESS## for details.
Content preview: Date: Sat, 21 Mar 2020 08:33:11 -0700 MIME-Version: 1.0 Content-Type:
multipart/alternative; boundary="15848047910.05Ba9cd88.23881" [...]
Content analysis details: (1.6 points, 4.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
1.1 TRACKER_ID BODY: Incorporates a tracking ID number
0.0 T_TVD_MIME_NO_HEADERS BODY: No description available.
0.5 T_DKIM_INVALID DKIM-Signature header exists but is not valid
0.0 T_MIME_MALF Malformed MIME: headers in body
--15848047911.6F3Ff.23881
Date: Sat, 21 Mar 2020 08:33:11 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="15848047910.05Ba9cd88.23881"
Content-Transfer-Encoding: 7bit
--15848047910.05Ba9cd88.23881
Date: Sat, 21 Mar 2020 08:33:11 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
foo bar=
--15848047910.05Ba9cd88.23881
Date: Sat, 21 Mar 2020 08:33:11 -0700
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
some message=
--15848047910.05Ba9cd88.23881--
--15848047911.6F3Ff.23881
Date: Sat, 21 Mar 2020 08:33:11 -0700
MIME-Version: 1.0
Content-Type: image/jpeg; name="logo.jpg"
Content-Disposition: attachment; filename="logo.jpg"
Content-Transfer-Encoding: base64
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYF
BgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoK
CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wgARCAAlAPwDAREA
AhEBAxEB/8QAHAABAAMBAQEBAQAAAAAAAAAAAAUGBwgDBAIB/8QAFgEBAQEAAAAAAAAAAAAAAAAA
AAEC/9oADAMBAAIQAxAAAAHv4AHkeoAAAAAAAAAAAAABQk9yCNTWmpclpyXBYFPqII/hJkisen1H
4XySbX4SQK0kysSkqtUS5r6gAGfJRCxGnLxgx2c3x6z1cvLadBrnSWFcoTb1whOg1w9NeXyINN0a
yBPpMmTq1rgq47GmrkoAEWex+CQKelxWnJcVyxNTWLP0eJ9JnaamuWJqajIU0hfjSfWLSXXMksZa
lAAAAAAAAAAAEWSgABREvagD/8QAJRAAAgICAgEDBQEAAAAAAAAABQYDBAIHAAEgEhVAC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ygv1N9HAje
NgDFizAwFedlkfDmvKGaWgriDVeC5uul8E8eAZeSgbN6AhOB78gA4msoyhIuGSnARObjZHTTrOu6
Xbc940SHQoGhSC8IZX+byWmuAgaAA0GHpsP65R2J54Vwx+SxnAGg+GOSMlrIkOCNtjwHYW/gqz/t
+gKzELpQQi9mB14XkQDhDowVY+nkcjH+gTZgcoABAPWKqa4ABRbBNNK+HFHCFbICRMg0Dwp0gaUk
CDOzDsPiobCLn2z0QvkDcJgXUYDduu5pDXVqn6bSMQ1xfRzAdAYXGyQ84792K4p0gaUkCDOzDsPi
qde9slEbBY1yeEEiYCoJ52jQAA0AGX00fP8AOAcQLVUAI6G5jICKyoICawxhDSAE0AABoDGkYRiF
JsZzSisQW4PYQGSoEF2pQy9VWENTnRMfP5IxEHpTIFrXlda/QTK7xRzsZE5Bh/P/2Q==
--15848047911.6F3Ff.23881--
The really weird part - is that the EXACT same code sends fine from one of my other servers. Yet, the MIME headers all look the same (minus having different part ids and date stamps obviously :)). I've got the host looking into this - in case its an Exim issue on their end, rather than my code. Seems very odd though!

Email Content - Value without key

I am trying to read the content of the file inside the bucket of Amazon S3, I get this:
Return-Path: <0100015e98afd4e4-7a7cffab-aeec-4ed9-968b-ed735a26d893-000000#amazonses.com>
Received: from a8-18.smtp-out.amazonses.com (a8-18.smtp-out.amazonses.com [54.240.8.18])
by inbound-smtp.us-east-1.amazonaws.com with SMTP id vbghk0svnudf28mgos338lcri9ph21unj42pfa81
for lists.center#laravel.paralejas.com;
Tue, 19 Sep 2017 07:47:41 +0000 (UTC)
X-SES-Spam-Verdict: PASS
X-SES-Virus-Verdict: PASS
Received-SPF: pass (spfCheck: domain of amazonses.com designates 54.240.8.18 as permitted sender) client-ip=54.240.8.18; envelope-from=0100015e98afd4e4-7a7cffab-aeec-4ed9-968b-ed735a26d893-000000#amazonses.com; helo=a8-18.smtp-out.amazonses.com;
Authentication-Results: amazonses.com;
spf=pass (spfCheck: domain of amazonses.com designates 54.240.8.18 as permitted sender) client-ip=54.240.8.18; envelope-from=0100015e98afd4e4-7a7cffab-aeec-4ed9-968b-ed735a26d893-000000#amazonses.com; helo=a8-18.smtp-out.amazonses.com;
dkim=pass header.i=#amazonses.com;
X-SES-RECEIPT: AEFBQUFBQUFBQUFGdUFWcWNhK2RacFVsWHR6cU80UzJUWXFUOHQzZXFsTzlmVUIzMm5tQWkyS1I5STE4b0ZZTnRkY1RpS0tLdWtxRGE5RDRtcUtEemdoV285S1BPbDZETUxzNVpLMHFWcDdTWEh5U3hWSHQzM2p0UEhDY2J5OG5xcndieG5meTBrdkRBUllrd0NFRjZETExBOWszU1NJNmVhcHJQSWVRRVZ0dTQ5dWZZakVaMnJISUhEMStCeFVXWjRwTExWQlgrSkdpenY3Nm95Z01GbS9wNCs1Vy9IT2hqR2V0YjlteUpvZGZKWDVYQ09Xbi9qS1diUElqbm1mMFJDM1EyeWI4KzBFeUdXSXI1Nk1SMHpLamtVcWN6KzZWS3JsUkJ4NHA5RWhlTk5mRXg0UXJFbWRoQ0g0ZEJvUzYrOTBhQUZaYktNOE09
X-SES-DKIM-SIGNATURE: a=rsa-sha256; q=dns/txt; b=TRJBPRnlVpH62kCXi8Qt/rW++rVHghq36KBh/7Jl64iV7EMQGOPCvav4ogfuQ652fU6xmhNdq4iAF3VcDWXt0KmOwZ1pf3OByx9mBlkQCOH45C4FHX2IJut5XYsyl5LyqVBVapl5JJWtkFglTBXkcIQPAeSO2ezPhG+l8ELILu8=; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1505807261; v=1; bh=Qyte/I9jIoITAvSNOdCs6drxDrm4Bn1WsSOm2mJksBQ=; h=From:To:Cc:Bcc:Subject:Date:Message-ID:MIME-Version:Content-Type:X-SES-RECEIPT;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1505800214;
h=From:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:Date:Feedback-ID;
bh=Qyte/I9jIoITAvSNOdCs6drxDrm4Bn1WsSOm2mJksBQ=;
b=bTnigdH0nnbV+iCTInnB90ESqh/Zd2AMQSahSJvfC2HxwAiSP8kjmNj7ZGTiEmAf
BPtzc6fwDH1MBn6wAC9DLhkv2OVSFhW0dymYDE+J0L7gZlWSEIE4xdm/ujrrZH02KAx
TbKaSLCjkd+k97jYQKUYut/loJz5FskMt21V2M7g=
From: nelson#paralejasconsulting.com
To: lists.center#laravel.paralejas.com
Subject: FOR AMAZON TESTING
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Message-ID: <0100015e98afd4e4-7a7cffab-aeec-4ed9-968b-ed735a26d893-000000#email.amazonses.com>
Date: Tue, 19 Sep 2017 05:50:13 +0000
X-SES-Outgoing: 2017.09.19-54.240.8.18
Feedback-ID: 1.us-east-1.eK8pec1Sl6HG9O7rqaGwcStNFxZUYk0BWaHV30jXLsk=:AmazonSES
FOR TESTING ONLY
If you can notice all the values have keys except the "FOR TESTING ONLY" text below which is the message of the email, my question is how can I get that message if it does not have a key?

Inline Images are Broken

I'm trying to send an email with an inline image. I've set the Content-ID and added a <img src="cid:image1#myemail"> to my html. The image arrives properly as an attachment, but mail clients show a broken image.
What am I doing wrong? The full source of the message is below:
Return-Path: <igal#lucee.org>
Received: from 128.149.80.230
by smtp.googlemail.com with ESMTPSA id i7sm9313707paf.9.2016.09.01.11.15.59
for <igal#lucee.org>
(version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Thu, 01 Sep 2016 11:15:59 -0700 (PDT)
Date: Thu, 1 Sep 2016 11:15:54 -0700 (PDT)
From: igal#lucee.org
To: igal#lucee.org
Message-ID: <489410968.5.1472753755600.JavaMail.Admin#IS16>
Subject: [Test] LDEV-545 html 5.0.0.200
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_4_247149912.1472753754816"
X-Mailer: Lucee Mail
------=_Part_4_247149912.1472753754816
Content-Type: multipart/alternative;
boundary="----=_Part_3_913848408.1472753754815"
------=_Part_3_913848408.1472753754815
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Text Message
------=_Part_3_913848408.1472753754815
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Inline Image: <img src="cid:image1#myemail">
------=_Part_3_913848408.1472753754815--
------=_Part_4_247149912.1472753754816
Content-Type: image/jpeg; name=test-image.jpg
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename=test-image.jpg
Content-ID: image1#myemail
/9j/4AAQSkZJRgABAQEAYABgAAD/4QBoRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA
AAABAAAARgEoAAMAAAABAAIAAAExAAIAAAARAAAATgAAAAAAAABgAAAAAQAAAGAAAAABcGFpbnQu
bmV0IDQuMC4xMAAA/9sAQwAKBwcJBwYKCQgJCwsKDA8ZEA8ODg8eFhcSGSQgJiUjICMiKC05MCgq
NisiIzJEMjY7PUBAQCYwRktFPko5P0A9/9sAQwELCwsPDQ8dEBAdPSkjKT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09/8AAEQgAIgBDAwEiAAIRAQMRAf/E
AB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAE
EQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZH
SElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1
tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEB
AQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXET
IjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFla
Y2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG
x8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A9mooqvNfQW95bWsj
kTXO7ylwfm2jJ57cU0m9gLFFUdK1qx1uGWXT5xMkUhif5SpDDtggetGnazY6sbkWM4l+yymGUgEB
WHXk9fqKt0pxveL038hcyL1FUdL1ix1mxN5YTrLbhmUvgjBHXrVaHxRpk80aRSzMkjiOOf7PJ5Ls
TgASbdpyenPNP2NS7XK9N9Ng5l3NeisuPxFZTXr2sK3cskc3kOyWkrIr9wXC7RjPXNalTKEofErA
mnsFFFFQMKwtX/5Gvw/9bj/0XW7RWlOfI7+TX3poTVzzLSGutB0y3uLBCzawJbUYHC3PnP5bn22s
2fZBV4xto9l4g03TR/pEs9vY22TglmgRdxPrjcxPtXfUV3SzDmk5OO++u+qav6JWMlSsrXOANlf2
iavpC2cdl/aViWtIYp/MG+NAjAHaOSu38iauyeI0a50eHSNRjRZJooJdOMI82Nf4s55XAGOldlij
AznHPrUPGRl8cP6tbqn2XnvrqP2bWzOK0C+trfXtTim1xLd31SULYsYx5pOADyN3J9D2rtqTFLXP
XrKrLmSt/Xoi4x5VYKKKKwKCiiigAooooAKKKKACiiigAooooA//2Q==
------=_Part_4_247149912.1472753754816--
I found the problem. It is missing Content-Type: multipart/related;