Mail not working.

Hi I am having trouble setting up the mail server, i have tried anything i could find on the forum. I am using an external mail server, other provider with authentication. Debian 11 with VitalPBX 4
The results i get in the log are as follows: ( I have replaced IP, names and domains.)

Apr 16 11:29:04 pbx postfix/smtp[1605]: D63DD8441D: to=user@domain.com, relay=domain.co.za[23.23.23.23]:465, delay=1105, delays=805/0.11/299/0, dsn=4.4.2, status=deferred (conversation with domain.co.za[23.23.23.23] timed out while receiving the initial server greeting)

Apr 16 11:38:28 pbx postfix/postfix-script[1665]: starting the Postfix mail system

Apr 16 11:38:28 pbx postfix/master[1667]: daemon started – version 3.5.24, configuration /etc/postfix

Apr 16 11:47:01 pbx postfix/postfix-script[1758]: starting the Postfix mail system

Apr 16 11:47:01 pbx postfix/master[1766]: daemon started – version 3.5.24, configuration /etc/postfix

Apr 16 11:52:01 pbx postfix/qmgr[1769]: D63DD8441D: from=pbx@domain.co.za, size=750, nrcpt=1 (queue active)

Apr 16 11:52:01 pbx postfix/smtp[2570]: SMTPS wrappermode (TCP port 465) requires setting “smtp_tls_wrappermode = yes”, and “smtp_tls_security_level = encrypt” (or stronger)

Apr 16 11:57:02 pbx postfix/smtp[2570]: D63DD8441D: to=user@domain.com, relay=domain.co.za[23.23.23.23]:465, delay=2783, delays=2481/0.13/301/0, dsn=4.4.2, status=deferred (conversation with domain.co.za[23.23.23.23] timed out while receiving the initial server greeting)

Apr 16 12:47:01 pbx postfix/qmgr[1769]: D63DD8441D: from=pbx@domain.co.za, size=750, nrcpt=1 (queue active)

Apr 16 12:47:01 pbx postfix/smtp[10958]: SMTPS wrappermode (TCP port 465) requires setting “smtp_tls_wrappermode = yes”, and “smtp_tls_security_level = encrypt” (or stronger)

Apr 16 12:52:02 pbx postfix/smtp[10958]: D63DD8441D: to=user@domain.com, relay=domain.co.za[23.23.23.23]:465, delay=6082, delays=5782/0.05/300/0, dsn=4.4.2, status=deferred (conversation with domain.co.za[23.23.23.23] timed out while receiving the initial server greeting)

Apr 16 14:02:03 pbx postfix/qmgr[1769]: D63DD8441D: from=pbx@domain.co.za, size=750, nrcpt=1 (queue active)

Apr 16 14:02:03 pbx postfix/smtp[22417]: SMTPS wrappermode (TCP port 465) requires setting “smtp_tls_wrappermode = yes”, and “smtp_tls_security_level = encrypt” (or stronger)

Apr 16 14:07:04 pbx postfix/smtp[22417]: D63DD8441D: to=user@domain.com, relay=domain.co.za[23.23.23.23]:465, delay=10584, delays=10283/0.05/301/0, dsn=4.4.2, status=deferred (conversation with domain.co.za[23.23.23.23] timed out while receiving the initial server greeting)

Apr 16 15:17:03 pbx postfix/qmgr[1769]: D63DD8441D: from=pbx@domain.co.za, size=750, nrcpt=1 (queue active)

Apr 16 15:17:03 pbx postfix/smtp[33949]: SMTPS wrappermode (TCP port 465) requires setting “smtp_tls_wrappermode = yes”, and “smtp_tls_security_level = encrypt” (or stronger)

Apr 16 15:22:03 pbx postfix/smtp[33949]: D63DD8441D: to=user@domain.com, relay=domain.co.za[23.23.23.23]:465, delay=15084, delays=14783/0.05/301/0, dsn=4.4.2, status=deferred (conversation with domain.co.za[23.23.23.23] timed out while receiving the initial server greeting)

Apr 16 15:58:09 pbx postfix/pickup[32362]: 19DFA88981: uid=33 from=

Apr 16 15:58:09 pbx postfix/cleanup[40792]: 19DFA88981: message-id=20240416135809.19DFA88981@pbx.domain.co.za

Apr 16 15:58:09 pbx postfix/qmgr[1769]: 19DFA88981: from=pbx@domain.co.za, size=834, nrcpt=1 (queue active)

Apr 16 15:58:09 pbx postfix/smtp[40794]: SMTPS wrappermode (TCP port 465) requires setting “smtp_tls_wrappermode = yes”, and “smtp_tls_security_level = encrypt” (or stronger)

Apr 16 16:03:09 pbx postfix/smtp[40794]: 19DFA88981: to=user@domain.com, relay=domain.co.za[23.23.23.23]:465, delay=300, delays=0.02/0.03/300/0, dsn=4.4.2, status=deferred (conversation with domain.co.za[23.23.23.23] timed out while receiving the initial server greeting)

Apr 16 16:03:48 pbx postfix/postfix-script[41699]: stopping the Postfix mail system

Apr 16 16:03:48 pbx postfix/master[1766]: terminating on signal 15

Apr 16 16:03:51 pbx postfix/postfix-script[42267]: starting the Postfix mail system

Apr 16 16:03:51 pbx postfix/master[42269]: daemon started – version 3.5.24, configuration /etc/postfix

Apr 16 16:04:03 pbx postfix/pickup[42270]: 0C0DC887E0: uid=33 from=

Apr 16 16:04:03 pbx postfix/cleanup[42321]: 0C0DC887E0: message-id=20240416140403.0C0DC887E0@pbx.domain.co.za

Apr 16 16:04:03 pbx postfix/qmgr[42272]: 0C0DC887E0: from=pbx@domain.co.za, size=834, nrcpt=1 (queue active)

Apr 16 16:04:03 pbx postfix/smtp[42323]: SMTPS wrappermode (TCP port 465) requires setting “smtp_tls_wrappermode = yes”, and “smtp_tls_security_level = encrypt” (or stronger)

Can you share your External mail settings in Vital mail server configurations


i am not sure if it is the hostname being on a subdomain of the mail?

Origin address would be same as From Address and make sure which port is using for TLS and STARTTLS
and enter your mail host name in example my case mail.xyz.com
try TLS with 587 and make sure this port is open on your mail server then try STARTTLS

This was perfect thank you.
I updated origin and changed to port 587.