Matching Any Domain in Domain Blocks

Hi everyone,

I’m trying to configure the domain blocks in my DKIM setup. Currently, the following configuration only matches the domain “example.com”:

Domain blocks match based on the sender domain of the

incoming message

[domain.“example.com”]
selector = ‘dkim1024’
headers = [“From”, “To”, “Subject”, “Date”, “Sender”]
algo = “sha256” # or “ed25519”. Omit to use the default of “sha256”

How can I modify this configuration to match any domain, rather than just “example.com”?

Thanks in advance for your help!

Use [base] for configuration that applies to all.

Hello, when I use the [base] block for configuration, I notice that DKIM does not automatically sign my domain when sending emails.

The code is as follows:
[base]
selector = “default”
headers = [
“From”, “Reply-To”, “Subject”, “Date”, “To”, “Cc”,
“Resent-Date”, “Resent-From”, “Resent-To”, “Resent-Cc”,
“In-Reply-To”, “References”, “List-Id”, “List-Help”,
“List-Unsubscribe”, “List-Subscribe”, “List-Post”,
“List-Owner”, “List-Archive”
]
over_sign = true

You are not providing near enough information to properly help you. Go back to the first reply, do the reading, and provide the full information.

Perhaps you didn’t understand my question. What I mean is: if I have a large number of domains that need automated signing, do I need to write a [domain.“example.com”] block for each domain in order for the program to automatically perform the signing? Because I noticed that once I remove the [domain.“example.com”] block, the program stops performing DKIM signing for example.com, and the emails sent no longer contain the DKIM signature header.

You only need domain blocks where that particular domain deviates from the “base” configuration.

Okay, I understand now. Thank you very much.