Package com.mimecast.robin.config.server
Class RspamdConfig.DkimSigningConfig
java.lang.Object
com.mimecast.robin.config.ConfigFoundation
com.mimecast.robin.config.server.RspamdConfig.DkimSigningConfig
- All Implemented Interfaces:
Serializable
- Enclosing class:
RspamdConfig
DKIM signing SQL lookup configuration.
Configures the database used to query signing domain and selector pairs for outbound emails.
The signing query must return domain and selector columns, and may return
multiple rows to apply more than one DKIM signature per message.
- See Also:
-
Field Summary
Fields inherited from class com.mimecast.robin.config.ConfigFoundation
log, map -
Constructor Summary
ConstructorsConstructorDescriptionDkimSigningConfig(Map<String, Object> map) Constructs a new DkimSigningConfig instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the DKIM signing backend to use.Gets the JDBC URL for the DKIM signing database.Gets the filesystem path template for DKIM private key files.Gets the database password.Gets the SQL query used to look up signing domain and selector pairs.getUser()Gets the database username.booleanChecks if DKIM signing lookup is enabled.Methods inherited from class com.mimecast.robin.config.ConfigFoundation
getBooleanProperty, getBooleanProperty, getDoubleProperty, getListProperty, getListProperty, getLongProperty, getLongProperty, getMap, getMapProperty, getMapProperty, getStringProperty, getStringProperty, hasProperty, isEmpty
-
Constructor Details
-
DkimSigningConfig
Constructs a new DkimSigningConfig instance.- Parameters:
map- Configuration map.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if DKIM signing lookup is enabled.- Returns:
- True if enabled, false otherwise.
-
getJdbcUrl
Gets the JDBC URL for the DKIM signing database.- Returns:
- JDBC URL string.
-
getUser
Gets the database username.- Returns:
- Database username.
-
getPassword
Gets the database password.- Returns:
- Database password.
-
getSigningQuery
Gets the SQL query used to look up signing domain and selector pairs.The query receives the sender domain as its only parameter (
?) and must return rows withdomainandselectorcolumns. Multiple rows are supported.- Returns:
- SQL query string.
-
getKeyPath
Gets the filesystem path template for DKIM private key files.The template may contain
$domainand$selectorplaceholders which are replaced at runtime. The resolved path must be readable by the Robin process. The key file must be in PKCS8 PEM format (produced byrspamadm dkim_keygen).Example:
/var/lib/rspamd/dkim/$domain.$selector.key- Returns:
- Key path template string, or empty string if not configured.
-
getBackend
Gets the DKIM signing backend to use.Supported values:
"rspamd"(default) — delegates to Rspamd via HTTP"native"— signs locally using Apache jDKIM, no external service
Factories.setDkimSigner()takes precedence over this setting.- Returns:
- Backend identifier string.
-