The DKIM key can be either saved as a variable or provided statically. However, this approach is not working and is showing the following error. The Lua code is attached below:
2024-05-24T11:59:51.996058Z ERROR localset-0 run{socket=PollEvented { io: Some(TcpStream { addr: 146.0.229.98:587, peer: 146.0.229.98:52722, fd: 63 }) }}: kumod::smtp_server: Error in SmtpServer: callback error May 24 07:59:51 domain kumod[516873]: stack traceback: May 24 07:59:51 domain kumod[516873]: [C]: in local 'poll' May 24 07:59:51 domain kumod[516873]: [string "?"]:5: in field 'rsa_sha256_signer' May 24 07:59:51 domain kumod[516873]: [string "/opt/kumomta/etc/policy/init.lua"]:78: in function <[string "/opt/kumomta/etc/policy/init.lua"]:77> May 24 07:59:51 domain kumod[516873]: caused by: Data { key_data: "-----BEGIN RSA PRIVATE KEY----...." }: failed to load private key: openssl private_key_from_pem: error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY. openssl private_key_from_der: error:0D07209B:asn1 encoding routines:ASN1_get_object:too long:crypto/asn1/asn1_lib.c:91:, error:0D068066:asn1 encoding routines:asn1_check_tlen:bad object header:crypto/asn1/tasn_dec.c:1137:, error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:309:Type=RSAPrivateKey. from_pkcs1_der: PKCS#8 ASN.1 error: unknown/unsupported ASN.1 DER tag: 0x2d. from_pkcs8_der: PKCS#8 ASN.1 error: unknown/unsupported ASN.1 DER tag: 0x2d. from_pkcs1_pem: PKCS#1 ASN.1 error: PEM error: PEM type label invalid. from_pkcs8_pem: PKCS#8 ASN.1 error: PEM error: PEM type label invalid
Hey there @kindhearted-deer, while we would like to respond to every question raised here, the frequency and nature of your questions are far beyond what we at Kumo Corp can support without financial support from your organization.
You may continue to ask questions in the hope that someone from the broader community will help, but you should expect that Kumo Corp will not spend any time beyond a cursory glance to see if your questions are well-qualified and can be easily dealt with.