dongqi1245 2016-06-02 16:22
浏览 88

无法从服务器B上的服务器A + Exim上的phpmailer发送邮件

I have a website hosted on server A. I use Cloudflare services, so I can not send mails to my users from the same server. I have server B for mail sending. Installed Exim and configured it as follows:

internet site, mail is sent and received directly using SMTP
Machines to relay mail for: [IP address of the server A]

On serevr A I use Phpmailer to send mail:

$mail->SMTPAuth   = false;
$mail->SMTPSecure = "";
$mail->Host       = "IP address of server B";
$mail->Port       = 25;
$mail->Username   = "";
$mail->Password   = "";

Unfortunately, it doe snot work. Tried to change $mail->SMTPAuth to "true" but it does not help.

SMTP Error: Could not connect to SMTP host.
  • 写回答

1条回答 默认 最新

  • duandaotuo5542 2016-06-02 17:14

    You've not posted much info to go on, but it's likely that outbound traffic to port 25 is blocked - see if you can telnet serverb 25 from server A. Normally you can't send out (relay) through port 25 anyway, but use an external authenticated submission host on port 587 instead. You should try reading the troubleshooting guide which covers all kinds of connection issues.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 kubeadm部署k8s出错
  • ¥15 Abaqus打不开cae文件怎么办?
  • ¥20 双系统开机引导中windows系统消失问题?
  • ¥15 小程序准备上线,软件开发公司需要提供哪些资料给甲方
  • ¥15 关于生产日期批次退货退款,库存回退的问题
  • ¥15 手机应用的时间可以修改吗
  • ¥15 docker 运行OPEN-webui异常
  • ¥15 麒麟系统如何删除光盘刻录痕迹
  • ¥15 recipe通过gem协议传的是什么
  • ¥15 TS2307: Cannot find module 'cc'.