I have run the command "echo 'DONE' | openssl s_client -showcerts -starttls smtp -connect smtp.office365.com:587"
and this is the output of the command:
[centos@ip-172-31-16-10 ~]$ echo 'DONE' | openssl s_client -showcerts -starttls smtp -connect smtp.office365.com:587
CONNECTED(00000003)
depth=2 C = US, O = DigiCert Inc, OU =
http://www.digicert.com, CN = DigiCert Global Root CA
verify return:1
depth=1 C = US, O = DigiCert Inc, CN = DigiCert Cloud Services CA-1
verify return:1
depth=0 C = US, ST = Washington, L = Redmond, O = Microsoft Corporation, CN = outlook.com
verify return:1
---
Certificate chain
0 s:/C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=outlook.com
i:/C=US/O=DigiCert Inc/CN=DigiCert Cloud Services CA-1
-----BEGIN CERTIFICATE-----
MIIIpzCCB4+gAwIBAgIQBEr4a+ILMVzhIrB2q8+TNjANBgkqhkiG9w0BAQsFADBL
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMSUwIwYDVQQDExxE
aWdpQ2VydCBDbG91ZCBTZXJ2aWNlcyBDQS0xMB4XDTIxMTIyMjAwMDAwMFoXDTIy
MTIyMjIzNTk1OVowajELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24x
EDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlv
bjEUMBIGA1UEAxMLb3V0bG9vay5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQCn6pKzwizY2nXMMIIZInJAL4VKPmj6K/ajdoeYRGv/ZNE34wzA0Sxn
jVCqZ9BiJqXOjnU/GYscMMKwiWWtpX7QIIMq85XDQ66ljgwqUrUNHanlaUT9sips
fu2noOYpme5CjPfBZhAnNfZT1T99N83j2xpNL+sE1sXeX2BLPL58w3VQ8V4dYj+R
W8OcBEWjS4lbx9otdGHk26GPwliywyGGh8v6JiQgZz5YgMdjkfuvdJCCC2zO1MsP
AMpas3zAwLs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jggGuMIIBqjAdBgNVHQ4EFgQU3VHQojFzqXOu
j7QBfl2MV8uf8PcwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUwDgYD
VR0PAQH/BAQDAgGGMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNV
HRMBAf8ECDAGAQH/AgEAMHYGCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0
cDovL29jc3AuZGlnaWNlcnQuY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0
cy5kaWdpY2VydC5jb20vRGlnaUNlcnRHbG9iYWxSb290Q0EuY3J0MHsGA1UdHwR0
MHIwN6A1oDOGMWh0dHA6Ly9jcmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2Jh
bFJvb3RDQS5jcmwwN6A1oDOGMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdp
Q2VydEdsb2JhbFJvb3RDQS5jcmwwMAYDVR0gBCkwJzAHBgVngQwBATAIBgZngQwB
AgEwCAYGZ4EMAQICMAgGBmeBDAECAzANBgkqhkiG9w0BAQsFAAOCAQEANJE52TD/
zFvmYQGp0P3ntVzclyqsN7Aga/s2SmhGoow32hcBWc6OVgQILYjXndBwRdTn6/97
nb+5a0sEfMoc7mto2ALmLim+XgZ6bg2nQX1A2lWYUoFou0YDHzGsKUNcLQOjoJU4
t9UMxv6+Je7RB77+j3mVmsNxBF13Q+LEHWiY+IJSazVqv7w73izbAFo6cF9sK0hp
qdmSKdB/MNfnT9YF4/WYlyCwFhpaK3mPuU2XiOzGswPhMMRwgawnk4XTNemtHPSq
fP/JzQHsefL75Tx5c8tHJAcp3C/QD+JcUUHocUPuW62x79wO9pNl5N5U4jIVFa4k
x6pNQytYvwMPeg==
-----END CERTIFICATE-----
---
Server certificate
subject=/C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=outlook.com
issuer=/C=US/O=DigiCert Inc/CN=DigiCert Cloud Services CA-1
---
No client certificate CA names sent
Client Certificate Types: RSA sign, DSA sign, ECDSA sign
Requested Signature Algorithms: 0x04+0x08:0x05+0x08:0x06+0x08:RSA+SHA256:RSA+SHA384:RSA+SHA1:ECDSA+SHA256:ECDSA+SHA384:ECDSA+SHA1:DSA+SHA1:RSA+SHA512:ECDSA+SHA512
Shared Requested Signature Algorithms: RSA+SHA256:RSA+SHA384:RSA+SHA1:ECDSA+SHA256:ECDSA+SHA384:ECDSA+SHA1:DSA+SHA1:RSA+SHA512:ECDSA+SHA512
Peer signing digest: SHA256
Server Temp Key: ECDH, P-384, 384 bits
---
SSL handshake has read 4377 bytes and written 494 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES256-GCM-SHA384
Session-ID: 2305000010DEE795E26CF29B122F15124D265BFED536EA913AD2B825383B3C64
Session-ID-ctx:
Master-Key: AC6CA7BD834913F30F58445609792C03CBA67892ED7F47528548F21C38CA27C8B6972B3A63E35A70AF3AA246564360BE
Key-Arg : None
Krb5 Principal: None
PSK identity: None
PSK identity hint: None
Start Time: 1645084048
Timeout : 300 (sec)
Verify return code: 0 (ok)
---
250 SMTPUTF8
DONE
[centos@ip-172-31-16-10 ~]$
This is with the TLS setting set to "secure" after adding the line "smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt" to main.cf
Feb 17 07:47:17 ip-172-31-16-10 postfix/postfix-script[8849]: refreshing the Postfix mail system
Feb 17 07:47:17 ip-172-31-16-10 postfix/master[8818]: reload -- version 2.10.1, configuration /etc/postfix
Feb 17 07:49:03 ip-172-31-16-10 postfix/pickup[8853]: D3CD2C1A03F: uid=1000 from=<centos>
Feb 17 07:49:03 ip-172-31-16-10 postfix/cleanup[9456]: D3CD2C1A03F: message-id=<
20220217074903.D3CD2C1A03F@ip-172-31-16-10.eu-west-2.compute.internal>
Feb 17 07:49:03 ip-172-31-16-10 postfix/qmgr[8854]: D3CD2C1A03F: from=<
[email protected]>, size=501, nrcpt=1 (queue active)
Feb 17 07:49:03 ip-172-31-16-10 postfix/tlsmgr[9459]: warning: request to update table btree:/etc/postfix/smtpd_scache in non-postfix directory /etc/postfix
Feb 17 07:49:03 ip-172-31-16-10 postfix/tlsmgr[9459]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Feb 17 07:49:03 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:03 ip-172-31-16-10 postfix/smtp[9458]: D3CD2C1A03F: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.211.146]: no mechanism available
Feb 17 07:49:03 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:03 ip-172-31-16-10 postfix/smtp[9458]: D3CD2C1A03F: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.211.194]: no mechanism available
Feb 17 07:49:03 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:03 ip-172-31-16-10 postfix/smtp[9458]: D3CD2C1A03F: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.211.210]: no mechanism available
Feb 17 07:49:04 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:04 ip-172-31-16-10 postfix/smtp[9458]: D3CD2C1A03F: to=<
[email protected]>, relay=smtp.office365.com[52.97.146.210]:587, delay=0.16, delays=0.02/0.02/0.12/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.146.210]: no mechanism available)
Feb 17 07:49:28 ip-172-31-16-10 postfix/postsuper[9543]: Deleted: 25 messages
Feb 17 07:49:33 ip-172-31-16-10 postfix/pickup[8853]: 2C634D14575: uid=1000 from=<centos>
Feb 17 07:49:33 ip-172-31-16-10 postfix/cleanup[9456]: 2C634D14575: message-id=<
20220217074933.2C634D14575@ip-172-31-16-10.eu-west-2.compute.internal>
Feb 17 07:49:33 ip-172-31-16-10 postfix/qmgr[8854]: 2C634D14575: from=<
[email protected]>, size=501, nrcpt=1 (queue active)
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: 2C634D14575: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.208.34]: no mechanism available
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: 2C634D14575: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.98.145.66]: no mechanism available
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: 2C634D14575: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.179.242]: no mechanism available
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: 2C634D14575: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.211.130]: no mechanism available
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:49:33 ip-172-31-16-10 postfix/smtp[9458]: 2C634D14575: to=<
[email protected]>, relay=smtp.office365.com[52.97.133.162]:587, delay=0.16, delays=0/0/0.16/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.133.162]: no mechanism available)
Feb 17 07:50:14 ip-172-31-16-10 postfix/postsuper[9842]: Deleted: 1 message
Feb 17 07:50:19 ip-172-31-16-10 postfix/postfix-script[9852]: stopping the Postfix mail system
Feb 17 07:50:19 ip-172-31-16-10 postfix/master[8818]: terminating on signal 15
Feb 17 07:50:26 ip-172-31-16-10 postfix/postfix-script[9992]: starting the Postfix mail system
Feb 17 07:50:26 ip-172-31-16-10 postfix/master[9994]: daemon started -- version 2.10.1, configuration /etc/postfix
Feb 17 07:50:33 ip-172-31-16-10 postfix/postfix-script[10008]: refreshing the Postfix mail system
Feb 17 07:50:33 ip-172-31-16-10 postfix/master[9994]: reload -- version 2.10.1, configuration /etc/postfix
Feb 17 07:50:41 ip-172-31-16-10 postfix/pickup[10012]: 13A32D14578: uid=1000 from=<centos>
Feb 17 07:50:41 ip-172-31-16-10 postfix/cleanup[10028]: 13A32D14578: message-id=<
20220217075041.13A32D14578@ip-172-31-16-10.eu-west-2.compute.internal>
Feb 17 07:50:41 ip-172-31-16-10 postfix/qmgr[10013]: 13A32D14578: from=<
[email protected]>, size=501, nrcpt=1 (queue active)
Feb 17 07:50:41 ip-172-31-16-10 postfix/tlsmgr[10031]: warning: request to update table btree:/etc/postfix/smtpd_scache in non-postfix directory /etc/postfix
Feb 17 07:50:41 ip-172-31-16-10 postfix/tlsmgr[10031]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: 13A32D14578: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.211.82]: no mechanism available
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: 13A32D14578: SASL authentication failed; cannot authenticate to server smtp.office365.com[40.100.174.2]: no mechanism available
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: 13A32D14578: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.98.207.162]: no mechanism available
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: 13A32D14578: SASL authentication failed; cannot authenticate to server smtp.office365.com[40.99.148.242]: no mechanism available
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: 13A32D14578: SASL authentication failed; cannot authenticate to server smtp.office365.com[40.99.148.242]: no mechanism available
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: warning: SASL authentication failure: No worthy mechs found
Feb 17 07:50:41 ip-172-31-16-10 postfix/smtp[10030]: 13A32D14578: to=<
[email protected]>, relay=smtp.office365.com[52.97.146.210]:587, delay=0.19, delays=0.02/0.02/0.15/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.146.210]: no mechanism available)
Main.jpg
I will log a ticket for assistance so long, as nothing is working at this moment