我阅读了很多答案,我应该如何设置 SPF 记录,spf 文档,但我仍然收到此错误,我不知道为什么。
我有两台服务器,第一台服务器上有 example.com,第二台服务器在 account.example.com 下运行 rails 应用程序。
我设置 spf 记录:"v=spf1 a mx ip4:ip-of-second-server include:_spf.google.com -all"
我的 smtp 设置:
config.action_mailer.smtp_settings = {
:address => 'smtp.gmail.com',
:port => 587,
:domain => 'example.com',
:authentication => 'plain',
:user_name => ENV['GMAIL_USERNAME'],
:password => ENV['GMAIL_PASSWORD']
}
知道我在做什么错吗?