Topic: DMARC and SPF checks in header
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0
- Deployed with iRedMail Easy or the downloadable installer? Download
- Linux/BSD distribution name and version: Ubunu 22.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I am trying to get the Authentication headers to reflect the message DMARC and SPF status. I noticed I was not getting these headers when comparing with the FairEmail program on Android - it puts a green checkmark if the messages pass all the checks.
To wit, I used this guide,
https://www.linuxbabe.com/mail-server/o … fix-ubuntu
To setup Opendmarc and openDKIM to inspect the records.
Which notes:
By default, OpenDMARC uses the MTA hostname as the AuthserveID, but it’s better to use a different name for the authentication service, because Amavisd-new will overwrite the authentication results header added by OpenDMARC. You can change it to the following, which will be very easy for you to see which program adds which authentication-results header.
However, talking to support:
The problem is that the signer domain (my.domain.org) and OpenDMARC) is different for the headers.
Technically, the app should inspect the first header only, but it will be lenient on the condition the signer is the same, which isn't the case here.The underlying problem is that the sender of the message might have insert a header with dkim/spf/dmarc=pass. So, inspecting just all headers is not secure.
Authentication-Results: my.domain.org;
dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=I30IAkNt;
dkim-atps=neutral
Authentication-Results: OpenDMARC; dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: OpenDMARC; spf=pass smtp.mailfrom=gmail.com
How can i get all three Authentical-Results in the message under the proper domain name without overwriting? I've searched on Amavisd and there doesn't appear to be a way that I've found yet.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.