Question

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:

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?

Était-ce utile?

La solution

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 ...

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top