I’m administering a mail server (cPanel/WHM) running Exim. It handles normally a few hundreds incoming emails per day for our customers.
I’m not sure if I should reject SPF and/or DKIM failures for incoming email. This obviously depends on the percentage of misconfigured mail servers out there.
What’s the recommended and best practice setup?
For SPF - depends on failure.
SOFT failure - no. That indicates that there is an error in the SPF or no SPF record.
HARD failure - yes. Because when the owner of the domain tells you that the sending server was not authorized, then yes, this is not authorized email and thus c nbe discarded.
These are the rules I use:
DKIM is so frequently mis-configured that I don't reject on it. Many signers don't publish their public key.
Both SPF and DKIM data are used in generating spam scores for message that haven't been outright rejected.
Below are few must have parameters for mail servers