dkim signing fail while senting mail. could not get any error. mailsenting successfully . but the dkim fail
showing in mail “dkim=none (message not signed)”
please check the following code
** code of “/opt/kumomta/etc/dkim_data.toml”**
[domain.“domain.com”]
selector = ‘kmdk’
headers = [“From”, “To”, “Subject”, “Date”, “MIME-Version”, “Content-Type”, “Sender”]
algo = “sha256”
filename = “/opt/kumomta/etc/dkim/domain.com/kumo1.pem”
**code of “/opt/kumomta/etc/policy/init.lua” **
local kumo = require ‘kumo’
local dkim_sign = require ‘policy-extras.dkim_sign’
local dkim_signer = dkim_sign:setup { ‘/opt/kumomta/etc/dkim_data.toml’ }
–[[ Start of Non-INIT level config ]]
kumo.on(‘smtp_server_message_received’, function(msg)
dkim_signer(msg)
end)
kumo.on(‘http_message_generated’, function(msg)
dkim_signer(msg)
end)
local AUTH_CONFIG = kumo.json_load ‘/opt/kumomta/etc/auth_file.json’
kumo.on(‘smtp_server_auth_plain’, function(authz, authc, password)
if password == ‘’ then
return false
end
return AUTH_CONFIG[authc] == password
end)
–[[ End of Non-INIT level config ]]