Mailserver 5.7 , OS Ubuntu 22.04.5 LTS
When signing the certificate / ssl from the mailserver interface it doesn't generate full chain pem file,missing letsencrypt cert on chain or smth ?, so my php script (laravel framework) fails to send because it cannot validate the ssl, i had to copy the pem and key of my website from the website section instead, so i can make it work, it needs to be fixed !!
This loggs in the mailserver when the php is triggering to send the e-mail.
Jan 10 08:14:54 vmi238***** postfix/submission/smtpd[118103]: connect from vmi238*****.*****server.net[*****]
Jan 10 08:14:55 vmi238***** postfix/submission/smtpd[118103]: SSL_accept error from vmi238*****.*****server.net[*****]: -1
Jan 10 08:14:55 vmi238***** postfix/submission/smtpd[118103]: warning: TLS library problem: error:0A000418:SSL routines::tlsv1 alert unknown ca:../ssl/record/rec_layer_s3.c:1593:SSL alert number 48:
Jan 10 08:14:55 vmi238***** postfix/submission/smtpd[118103]: lost connection after STARTTLS from vmi238*****.*****server.net[*****]
Jan 10 08:14:55 vmi238***** postfix/submission/smtpd[118103]: disconnect from vmi238*****.*****server.net[*****] ehlo=1 starttls=0/1 commands=1/2
And the error from the php controller which handles the connection says
Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed