Facing issue while dkim signing

**Try to signing dkim But I got following error **

SMTP ERROR: DATA END command failed: 421 4.3.0 kumomta.domain.com technical difficulties
2023-11-29 06:34:30 SMTP Error: data not accepted.
Message could not be sent. Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: kumomta.domain.com technical difficulties
SMTP code: 421 Additional SMTP info: 4.3.0

Iam using below code in “/opt/kumomta/etc/policy/init.lua” configuration

–[[ Start of Non-INIT level config ]]

kumo.on(‘smtp_server_message_received’, function(msg)
local signer = kumo.dkim.rsa_sha256_signer {
domain = msg:from_header().domain,
selector = ‘kumo1’,
headers = { ‘From’, ‘To’, ‘Subject’ },
file_name = ‘/opt/kumomta/etc/dkim/domain.com/kumo1.pem’,
}
msg:dkim_sign(signer)
end)

–[[ End of Non-INIT level config ]]

When you see a 421 ... technical difficulties response, you should check the journal for more context; it will include the lua error and stack trace. Troubleshooting KumoMTA - KumoMTA Docs