[英]Send mail with sendmail to gmail
I have a server on OVH and I'm trying to send some mail to my Gmail address using sendmail. 我在OVH上有一台服务器,并且正在尝试使用sendmail将一些邮件发送到我的Gmail地址。 I installed sendmail with apt-get on debian, and
echo "Subject: test" | /usr/sbin/sendmail -v mymail@gmail.com
我在debian上使用apt-get安装了sendmail,并
echo "Subject: test" | /usr/sbin/sendmail -v mymail@gmail.com
echo "Subject: test" | /usr/sbin/sendmail -v mymail@gmail.com
works. echo "Subject: test" | /usr/sbin/sendmail -v mymail@gmail.com
起作用。 However Gmail puts the mail in the spam folder and says the mail is not authenticated. 但是,Gmail会将邮件放在垃圾邮件文件夹中,并说该邮件未经身份验证。 I have no knowledge of how email works and from what I've seen I could use SPF or DKIM to provide authentication, but it seems it requires admin access to ovh DNS servers.
我不知道电子邮件的工作方式,从我所看到的情况来看,我可以使用SPF或DKIM提供身份验证,但似乎需要管理员访问ovh DNS服务器。 What would be the easiest way, using only admin access to the server that sends mails, to make sure emails sent from it are not marked as spam ?
最简单的方法是,仅对发送邮件的服务器使用管理员访问权限,以确保从其发送的电子邮件未标记为垃圾邮件?
Thanks 谢谢
There are no easy way. 没有简单的方法。 That's the simple answer.
那是简单的答案。
Google Mail is fighting spam every second, every day, all year. Google Mail整年每天每秒都在与垃圾邮件作斗争。 To get mail delivered directly to the inbox requires time and patience and there are no shortcuts.
将邮件直接传递到收件箱需要时间和耐心,并且没有捷径。 If there where, spammers would have it way to easy!
如果在哪里,垃圾邮件发送者将拥有轻松的方式!
You are very correct that Google's SMTP servers will ask you to beef up your SMTP mail headers to include better authentication and security. 您说得很对,Google的SMTP服务器会要求您加强SMTP邮件标题,以包括更好的身份验证和安全性。 There's no way around it if you want to be on good terms with Google's SMTP servers.
如果您想与Google的SMTP服务器保持良好关系,就无法解决它。
Here is a list of things to consider 这是要考虑的事情清单
As you can see it's no simple task to "just" send an email to Google and expect it to be passed along to the users Inbox without getting targeted as spam. 正如您所看到的,“简单地”向Google发送电子邮件并希望将其传递给用户“收件箱”而不是将其作为垃圾邮件并不是一件容易的事。
Most of the options above requires extensive server knowlagde or that your hosting provider supports it. 上面的大多数选项都需要广泛的服务器知识,或者您的托管服务提供商支持。 You need to have access to change your own DNS records but also the SMTP server that you send your mail from needs to be setup with the things in advance.
您需要有权更改自己的DNS记录,而且还需要预先设置从中发送邮件的SMTP服务器。
Now to the: 现在到:
"How to send emails to Google Mail that always land in the inbox for dummies" “如何将电子邮件发送到始终放在假人收件箱中的Google Mail中”
Well you basically buy your way into the inbox. 好吧,您基本上可以按照自己的方式进入收件箱。 Use SMTP services like Mailchimp, Amazon AWS-SMS (Simple Mail Service) many if not all of these services have already setup DKIM, SPF and are on good terms with Google.
使用诸如Mailchimp,Amazon AWS-SMS(简单邮件服务)之类的SMTP服务(如果不是全部的话),许多服务都已经设置了DKIM,SPF,并且与Google保持了良好的关系。 They do however have many rules and what and what not to do so if you don't follow the rules they will close your account right away.
但是,他们确实有很多规则,如果您不遵守这些规则,该做什么和不该做什么,他们会立即关闭您的帐户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.