【发布时间】:2017-10-21 07:32:19
【问题描述】:
我使用 Meteor.js 中的内置功能发送注册电子邮件和密码重置电子邮件:
Meteor 使用 NodeMailer 中的 MailComposer 来发送电子邮件,这个包似乎是 support email signing。我可以在 Meteor 中配置 DKIM 私钥,以便我的电子邮件被签名吗?
【问题讨论】:
标签: javascript node.js email meteor dkim
我使用 Meteor.js 中的内置功能发送注册电子邮件和密码重置电子邮件:
Meteor 使用 NodeMailer 中的 MailComposer 来发送电子邮件,这个包似乎是 support email signing。我可以在 Meteor 中配置 DKIM 私钥,以便我的电子邮件被签名吗?
【问题讨论】:
标签: javascript node.js email meteor dkim
Meteor-Mailer 支持开箱即用的 DKIM 签名,也支持 SES。
var transport = nodemailer.createTransport("SES", {
AWSAccessKeyID: "AWSACCESSKEY",
AWSSecretKey: "AWS/Secret/key"
});
// all messages sent with *transport* are signed with the following options
transport.useDKIM({
domainName: "example.com",
keySelector: "dkimselector",
privateKey: fs.readFileSync("private_key.pem")
});
transport.sendMail(...);
Signing emails with DKIM in Node.js中的原始答案
请注意,Meteor-Mailer 可以有多个 STMP 提供程序,nodemailer 也支持 DKIM 签名。
【讨论】: