在PostFix上更改smtp传出端口

时间:2022-11-19 07:11:13

I have PostFix set up and everything is working, except I can't send emails. Now I know most ISPs ports block port 25, as can be seen in this error log entry:

我有PostFix设置,一切正常,但我无法发送电子邮件。现在我知道大多数ISP端口阻塞端口25,如此错误日志条目中所示:

Jan  2 04:29:08 mail postfix/smtp[5835]: connect to gmail-smtp-in.l.google.com[74.125.134.27]:25: Connection timed out

but I know there are alternate ports, like 587. How do I change PostFix so that it tries to connect to gmail-smtp-in.l.google.com on port 587 instead of 25?

但我知道有备用端口,如587.如何更改PostFix以便它尝试连接到端口587上的gmail-smtp-in.l.google.com而不是25?

1 个解决方案

#1


0  

This post explains you how to “Sending Mail using SMTP and PHP” using SMTP credentials. In this post will show you how to send email using Gmail’s SMTP server. You need to install two pear packages, Mail and SMTP. Code is quite [self-explanatory][3]. example ...

本文将介绍如何使用SMTP凭据“使用SMTP和PHP发送邮件”。在这篇文章中将向您展示如何使用Gmail的SMTP服务器发送电子邮件。您需要安装两个梨包,邮件和SMTP。代码完全[不言自明] [3]。例子......

#1


0  

This post explains you how to “Sending Mail using SMTP and PHP” using SMTP credentials. In this post will show you how to send email using Gmail’s SMTP server. You need to install two pear packages, Mail and SMTP. Code is quite [self-explanatory][3]. example ...

本文将介绍如何使用SMTP凭据“使用SMTP和PHP发送邮件”。在这篇文章中将向您展示如何使用Gmail的SMTP服务器发送电子邮件。您需要安装两个梨包,邮件和SMTP。代码完全[不言自明] [3]。例子......