On 2021-06-24 at 10:09:07 UTC-0400 (Thu, 24 Jun 2021 16:09:07 +0200)
Jean-François Bachelet <jfbache...@free.fr>
is rumored to have said:

Hello ^^)

Le 24/06/2021 à 15:42, Wietse Venema a écrit :
Here is your problem:

Jun 24 12:54:48 amiga postfix/smtp[26534]: connect to mail.'external host'[external host IP]:25: Connection timed out Jun 24 12:54:48 amiga postfix/smtp[26534]: 7016C1C80B89: to=<customer@anywhere>, relay=none, delay=30, delays=0.1/0.01/30/0, dsn=4.4.1, status=deferred (connect to mail.'external host'[external host IP]:25: Co$

After exactly 30s the connection times out.

Many ISPs do not allow outbound connections to port 25. That is a
fairly standard configuration to block spam from the ISP's customers.

I know this, it's exactly why I want my out mail to use only secure ports 465 and/or 587.

Postfix does not support sending to port 465 (TLS-wrapped SMTP) and requires explicit configuration to send mail via port 587 and use STARTTLS. In your case, you need to add ':587' to your relayhost specification and make sure that you have credentials for that machine in the smtp_sasl_password_map table.

I don't see why postfix insist to send by port 25 when its config says to use SMTPS ports ???

Sending outbound is controlled by smtp_* configuration parameters, not smtpd_* parameters, which manage the functions of the receiving side.

There is no way to make Postfix itself use port 465 "SMTPS" and using it for direct-to-MX (i.e. normal) relay cannot work because most mail servers do not implement the original SMTPS for inbound MX service, but only as TLS-wrapped "submission" protocol.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to