# OpenDKIM Configuration for DocFast

# Logging
Syslog yes
SyslogSuccess yes
LogWhy yes

# Operating mode (s = sign, v = verify, sv = both)
Mode sv

# Canonicalization
Canonicalization relaxed/simple

# Domain and selector
Domain docfast.dev
Selector mail
KeyFile /etc/opendkim/keys/docfast.dev/mail.private

# Network
Socket inet:8891@localhost
PidFile /run/opendkim/opendkim.pid

# Security
OversignHeaders From
TrustAnchorFile /usr/share/dns/root.key
UserID opendkim

# Trusted hosts (who can send mail through this server)
InternalHosts /etc/opendkim/TrustedHosts
ExternalIgnoreList /etc/opendkim/TrustedHosts

# Additional security options
RequireSafeKeys yes
SendReports yes
ReportAddress "postmaster@docfast.dev"

# Performance
MaximumHeaders 30