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

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources


                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now