Nodemailer configuraton for DKIM

Nodemailer configuraton for DKIM

Hi.

How can I set nodemailer to use DKIM?

It asks for privateKey and I don't kwon how to deal with...

    const mailOpt: SMTPTransport.Options = {
      host: senderEmailConfigUse.host,
      port: senderEmailConfigUse.port,
      secure,
      auth: senderEmailConfigUse.auth,
      dkim: {
        domainName: 'vizinet.com.br',
        keySelector: 'zmail',
        privateKey: '',
      }
    };

The spam test showed:

wrong
Existing DKIM Signature
The email is not signed with DKIM, whether or not it is a valid signature.
wrong
Verified DKIM Signature
The email is not signed with a valid DKIM signature.



Tks