Troubleshooting Sendmail error

Hi all,

I was moving an email account from AWS Workmail back to my Sendmail instance and noticed this.

What’s curious is that if I send emails from Proton Mail to my relayed address, Google/Gmail is happy to accept the relay.

However, a verification email from Express VPN through Sendgrid was getting flagged for DKIM/SPF errors?

I’ve temporarily re-routed mail through Workmail and that Sendgrid verification email came through fine. I’m puzzled now as to:

  1. How come the Proton Mail email arrived fine, through my MTA relay?
  2. If Gmail is rejecting the relayed email, how come it’s happy to accept the “redirected” email from Workmail. If the error is not in my MTA relay, is Workmail’s DKIM/SPF working fine - but then again, it doesn’t make sense that Sendgrid would have any issues either?
From MAILER-DAEMON Sun Oct 13 12:27:44 2024
Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
        by sendmail.skynet-engineering.com (8.15.2/8.15.2/Debian-22ubuntu3) id 49D6viN3298268;
        Sun, 13 Oct 2024 12:27:44 +0530
Date: Sun, 13 Oct 2024 12:27:44 +0530
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <[email protected]>
To: <bounces+13588-de74-michael=randomness.org@u13588.wl089.sendgrid.net>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="49D6viN3298268.1728802664/sendmail.skynet-engineering.com"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--49D6viN3298268.1728802664/sendmail.skynet-engineering.com

The original message was received at Sun, 13 Oct 2024 12:27:42 +0530
from wrqvccpc.outbound-mail.sendgrid.net [149.72.204.60]

   ----- The following addresses had permanent fatal errors -----
<[email protected]>
    (reason: 550-5.7.26 Your email has been blocked because the sender is unauthenticated.)

   ----- Transcript of session follows -----
... while talking to gmail-smtp-in.l.google.com.:
>>> DATA
<<< 550-5.7.26 Your email has been blocked because the sender is unauthenticated.
<<< 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM.
<<< 550-5.7.26
<<< 550-5.7.26  Authentication results:
<<< 550-5.7.26  DKIM = did not pass
<<< 550-5.7.26  SPF [u13588.wl089.sendgrid.net] with ip: [52.76.80.88] = did not
<<< 550-5.7.26 pass
<<< 550-5.7.26
<<< 550-5.7.26  For instructions on setting up authentication, go to
<<< 550 5.7.26  https://support.google.com/mail/answer/81126#authentication 41be03b00d2f7-7ea448fda82si7593360a12.201 - gsmtp
554 5.0.0 Service unavailable

--49D6viN3298268.1728802664/sendmail.skynet-engineering.com
Content-Type: message/delivery-status

Reporting-MTA: dns; sendmail.skynet-engineering.com
Received-From-MTA: DNS; wrqvccpc.outbound-mail.sendgrid.net
Arrival-Date: Sun, 13 Oct 2024 12:27:42 +0530

 =?us-ascii?Q?5zPs5dXSrExhE=2Fgv1QTPJYVi5Vn0RZoFotKkl1t?=
 =?us-ascii?Q?ie5X5rJ3P4hOlnZLb0lN5Np458+3YBZ0ytTHAVy?= =?us-ascii?Q?FGDf?=
X-SG-ID:
 =?us-ascii?Q?u001=2ESdBcvi+Evd=2FbQef8eZF3Bq2X+XzYH0QTzePin8JTGj9lq9psU9GVKoiox?=
 =?us-ascii?Q?l6OLgh006MU2P5wpwOF0TbTVCWAXQ=3D=3D?=
To: [email protected]
X-Entity-ID: u001.yeOMXIH8UkWNyNYRNF+NYA==
Content-Type: multipart/alternative;
 boundary="--==_mimepart_670b6f5eaa833_263f22ae8da0cd97c2397d8";
 charset=UTF-8
Content-Transfer-Encoding: 7bit

--49D6viN3298268.1728802664/sendmail.skynet-engineering.com--

What am I missing?

Thanks,
Mike

This is also interesting, the lack of SPF/DKIM

DNS records
name	class	type	data	time to live
u13588.wl089.sendgrid.net	IN	HINFO	
CPU:	RFC8482
OS:	
3600s	(01:00:00)
wl089.sendgrid.net	IN	HINFO	
CPU:	RFC8482
OS:	
3600s	(01:00:00)
wl089.sendgrid.net	IN	NS	aisha.ns.cloudflare.com	86400s	(1.00:00:00)
wl089.sendgrid.net	IN	NS	devin.ns.cloudflare.com	86400s	(1.00:00:00)
sendgrid.net	IN	A	167.89.123.58	90s	(00:01:30)
sendgrid.net	IN	A	167.89.123.54	90s	(00:01:30)
sendgrid.net	IN	A	167.89.118.128	90s	(00:01:30)
sendgrid.net	IN	A	167.89.123.124	90s	(00:01:30)
sendgrid.net	IN	A	167.89.123.204	90s	(00:01:30)
sendgrid.net	IN	A	167.89.118.83	90s	(00:01:30)
sendgrid.net	IN	A	167.89.118.52	90s	(00:01:30)
sendgrid.net	IN	A	167.89.118.109	90s	(00:01:30)
sendgrid.net	IN	A	167.89.118.120	90s	(00:01:30)
sendgrid.net	IN	A	167.89.118.95	90s	(00:01:30)
sendgrid.net	IN	A	167.89.123.62	90s	(00:01:30)
sendgrid.net	IN	A	167.89.123.66	90s	(00:01:30)

:thinking:

Just wondering if anyone has any ideas on this?

Thanks.

P.S. mods, hope you don’t my bumping this post; if there are no responses, I won’t do it again :pray: