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.

On 24.06.21 16:09, Jean-François Bachelet wrote:
I know this, it's exactly why I want my out mail to use only secure ports 465 and/or 587.

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

post 25 is the default. You can configure alternative port by using:

relayhost = [mail.'external host']:587
http://www.postfix.org/postconf.5.html#relayhost

and apparently configure SMTP Authentication by using:

smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level=encrypt

and put '[mail.'external host'] user:password'
into /etc/postfix/sasl_passwd
http://www.postfix.org/postconf.5.html#smtp_sasl_password_maps

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Saving Private Ryan...
Private Ryan exists. Overwrite? (Y/N)

Reply via email to