VPS侦探论坛

 找回密码
 注册
查看: 3281|回复: 3

sendmail发送邮件很慢

[复制链接]
发表于 2017-1-9 23:35:00 | 显示全部楼层 |阅读模式

军哥,
  您好!

  为了是VPS能发送系统邮件:我按照如下方法:

1. yum -y install sendmail
2. 修改 /etc/mail/local-host-names  文件,即:加上hosts的名称,如:qqr0iioiio.local
3. 修改 php.ini,  sendmail_path = /usr/sbin/sendmail -fno-reply@www.example.com -t –i (其中:no-reply@www.example.com 为伪装的邮件名称)
4. systemctl enable sendmail
5. 重启主机

按照如上方法能发送和收到邮件,但速度非常的慢,发送出去后很很久才能收到邮件,请问有啥方法提高速度呢?

  <?php
$txt = "hello test mail";
$mail = "xxxx@example.com";
mail($mail, "test php mail", $txt);
echo "test message!";
?>





美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-10 08:48:58 | 显示全部楼层


不大清楚,我们都是用smtp或第三方的邮件服务
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-10 08:55:34 | 显示全部楼层

回复 2# 的帖子


军哥,

   不大清楚,我们都是用smtp或第三方的邮件服务

=》我是用的wordpress,你有好推荐吗?我只需要支持系统发邮件功能即可!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-10 17:56:09 | 显示全部楼层

回复 3# 的帖子




邮件不多的话163等邮箱的smtp发邮件就行
比较多的话可以用sendcloud、sendgrid之类的专门的邮件服务商
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 01:19 , Processed in 0.027296 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表