简体   繁体   English

运行Plesk的VPS上的WordPress,没有邮件被发送出去

[英]WordPress on VPS running Plesk, no mail is being sent out

I have a VPS server running PLESK(12.5.30) and all of the WordPress forms we have that are supposed to send to people who fill out forms, are not being sent. 我有一个运行PLESK(12.5.30)的VPS服务器,我们拥有的所有WordPress表单应该发送给填写表单的人,不会被发送。 They are just sitting in the mail queue as 'deferred'. 它们只是作为“延迟”位于邮件队列中。

I think it has to do with php mail, but I can't seem to get this to work and my host is literally no help at all. 我认为它与php邮件有关,但我似乎无法让它工作,我的主机根本没有任何帮助。 I even called Plesk and they did not help. 我甚至打电话给Plesk,他们没有帮助。

Any ideas? 有任何想法吗?

Thanks! 谢谢!

For more information you can check system mail log somewhere in in /var/logs/ 有关更多信息,您可以在/ var / logs /中的某处检查系统邮件日志

Take in account that setting up working server of outbound mail is a real pain. 考虑到设置出站邮件的工作服务器是一个真正的痛苦。 In two words you need to setup SPF and DKIM or such mail services like Gmail will mark all emails from your server as spam by default. 换句话说,您需要设置SPF和DKIM,否则Gmail等邮件服务会默认将来自您服务器的所有电子邮件标记为垃圾邮件。

In your case I can suggest to SendGrid service which has a WordPress plug-in https://wordpress.org/plugins/sendgrid-email-delivery-simplified/ (You need to register SendGrid account, it's free) 在你的情况下,我可以建议SendGrid服务有一个WordPress插件https://wordpress.org/plugins/sendgrid-email-delivery-simplified/ (你需要注册SendGrid帐户,它是免费的)

If your contact forms using default wp_mail() you mail will be send through SendGrid mail servers. 如果您的联系表格使用默认的wp_mail(),您的邮件将通过SendGrid邮件服务器发送。

Also you can setup you Postfix/sendmail with using SendGrid's mail server: https://sendgrid.com/docs/Integrate/Mail_Servers/postfix.html 您还可以使用SendGrid的邮件服务器设置Postfix / sendmail: https ://sendgrid.com/docs/Integrate/Mail_Servers/postfix.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM