You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Nodemailer format the List-Unsubscribe header on more than one line, it may cause a DKIM signature verification failure. This is the case with my SMTP server. Note that I do NOT use the dkim parameters of Nodemailer, the DKIM signature is generated by my own SMTP server, and as soon as the List-Unsubscribe header is generated on two lines, the DKIM signature verification is reported as fail, but pass until the List-Unsubscribe is kept on one line. Tested on a Gmail recipient.
This works (one line List-Unsubscribe because the url is short):
Workaround: I generate the List-Unsubscribe header myself with the headersprops of Nodemailer, it is generated on one line and the DKIM verification works again for any URL:
When Nodemailer format the
List-Unsubscribe
header on more than one line, it may cause a DKIM signature verification failure. This is the case with my SMTP server. Note that I do NOT use thedkim
parameters of Nodemailer, the DKIM signature is generated by my own SMTP server, and as soon as theList-Unsubscribe
header is generated on two lines, the DKIM signature verification is reported asfail
, butpass
until theList-Unsubscribe
is kept on one line. Tested on a Gmail recipient.This works (one line
List-Unsubscribe
because the url is short):This fails (two or more lines for the
List-Unsubscribe
because the url is longer):Workaround: I generate the
List-Unsubscribe
header myself with theheaders
props of Nodemailer, it is generated on one line and the DKIM verification works again for any URL:Maybe that this header specific parameter
List-Unsubscribe
should not be prepared by NodemailerThe text was updated successfully, but these errors were encountered: