Sorry, I'm still trying to understand but… 🙄
My Gmail config is different. Is the "not an alias" the reason for SPF misalignment?
I unchecked the alias option a long time ago because otherwise people replied on my Gmail address, not on the one used in my initial mail. I tested that now and it doesn't seem to be the case anymore.
I tested with different from addresses: Gmail, domain1 (default, not alias), domain2 (not alias), domain3 (alias). They all (except the Gmail address of course) have the same DNS config on Opalstack and use the same Opalstack SMTP. On the receiving end (Proton), they all have the "same" headers and everything seems to be working fine and as expected[*]. So alias or not, it looks the same?
But these are the mail headers, we need the envelope information to see if they're aligned. Can I find that somewhere?
Return-Path: <ME@EXAMPLE.com>
From: Pascal <ME@EXAMPLE.com>
Authentication-Results: mailin036.protonmail.ch; dkim=pass (Good 1024
bit rsa-sha256 signature) header.d=EXAMPLE.com header.a=rsa-sha256
Authentication-Results: mailin036.protonmail.ch; dmarc=pass (p=none dis=none)
header.from=EXAMPLE.com
Authentication-Results: mailin036.protonmail.ch; spf=pass smtp.mailfrom=EXAMPLE.com
Authentication-Results: mailin036.protonmail.ch; arc=none smtp.remote-ip=12.34.56.78
Authentication-Results: mailin036.protonmail.ch; dkim=pass (1024-bit key)
header.d=EXAMPLE.com header.i=@EXAMPLE.com header.b="d2G6pxgR"
X-Spam-Status: No, score=-0.10
X-Rspamd-Queue-Id: 4RGHMp09s5z9ttBV
X-Rspamd-Server: cp5-mailin-036.plabs.ch
X-Spamd-Result: default: False [-1.00 / 25.00];
DMARC_POLICY_ALLOW(-0.50)[EXAMPLE.com,none]; R_SPF_ALLOW(-0.20)[+ip4:12.34.56.78];
R_DKIM_ALLOW(-0.20)[EXAMPLE.com:s=dkim];
MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM(-0.00)[-0.807];
FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~];
RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; ASN(0.00)[asn:28753,
ipnet:46.165.236.0/24, country:DE]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[EXAMPLE.com:+];
FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[];
PREVIOUSLY_DELIVERED(0.00)[ME@proton.me]; RCVD_COUNT_TWO(0.00)[2]
PS: I modified my DMARC config to ruf
instead of rua
for the reports.
rua
: reporting URI(s) for aggregate data.
ruf
: message-specific forensic information (i.e., comma-separated plain-text list of URIs).
[*] Everything as expected with the exception of that annoying thing… When I reply to all, my custom email is well set as From but it's also always added in Cc. But I guess that's just how Gmail decided to handle things 🤷♂️🫤