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

public static class RspamdConfig.DkimSigningConfig extends ConfigFoundation
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:
  • Constructor Details

    • DkimSigningConfig

      public DkimSigningConfig(Map<String,Object> map)
      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

      public String getJdbcUrl()
      Gets the JDBC URL for the DKIM signing database.
      Returns:
      JDBC URL string.
    • getUser

      public String getUser()
      Gets the database username.
      Returns:
      Database username.
    • getPassword

      public String getPassword()
      Gets the database password.
      Returns:
      Database password.
    • getSigningQuery

      public String 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 with domain and selector columns. Multiple rows are supported.

      Returns:
      SQL query string.
    • getKeyPath

      public String getKeyPath()
      Gets the filesystem path template for DKIM private key files.

      The template may contain $domain and $selector placeholders 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 by rspamadm dkim_keygen).

      Example: /var/lib/rspamd/dkim/$domain.$selector.key

      Returns:
      Key path template string, or empty string if not configured.
    • getBackend

      public String 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
      A plugin override registered via Factories.setDkimSigner() takes precedence over this setting.
      Returns:
      Backend identifier string.