====== 邮箱服务 ====== ===== Gmail ===== [[https://hackmd.io/@fourdollars/SkfnuPrhH|使用Gmail代发邮件]] [[https://support.google.com/domains/answer/9437157?hl=zh-Hans|通过 Gmail 中的别名发送电子邮件 (官方)]] 将gmail添加的别名设置为默认发送人,每次通过server中的mail发送时就会显示 admin@simperator.com 官方示例 let transporter = nodemailer.createTransport({ service: 'gmail', auth: { user: 'gmail.user@gmail.com', pass: 'yourpass' } }); ===== Amazon SES ===== [[https://zhuanlan.zhihu.com/p/358780018|Amazon SES 解决服务器被退信问题]] / [[https://aws.amazon.com|]] [[https://docs.aws.amazon.com/zh_cn/ses/latest/dg/Welcome.html|SES 文档]] {{fa>amazon}} ===== Poste 项目 ===== [[https://qing.su/article/139.html|部署Poste邮件服务器]] [[https://poste.io/open|]] ====== CF + SMTP 中继 ====== 这是一个新的解决思路: - 通过 cloudflare 将邮件转送到 Gmail 或者任何的个人邮箱。CF 有 catch-all 功能,可以接收全域的邮件,甚至可以定制 no-reply 退信机制。 - 发件则通过 [[https://account.sendinblue.com/|sendinblue]] 或者 Amazon SES,或者其它的邮件服务商。 DNS 设置的时候,CF 和 sendinblue 同时都需要设定 SPF 记录,需要填写一条多域名的 SPF 记录。(([[https://www.renfei.org/blog/introduction-to-spf.html|SPF 记录:原理、语法及配置方法简介]])) (([[https://powerdmarc.com/zh/multiple-spf-records-on-email-domain/|多个SPF记录]])) (([[https://powerdmarc.com/zh/spf-record-syntax/|SPF记录的语法]])) 因为使用的都是大厂的服务,稳定性比自建邮局要高出很多。可以考虑 simperator.com 依然托管在 zoho mail. 网站发信则通过SMTP中继服务。 * Amazon SES: 每月1000封信 (之后每1000封信收0.10$) * sendinblue: 每日300封信 * emails.pabbly: 每日500封信