Hi, I have two containers, one with postfix and another one with a backend (web app). I would like to send email to the postfix container using starttls but I have issues
If I use the container IP :
from backend => library: “SSL routines”, function: “tls_process_server_certificate”, reason: “certificate verify failed”, file: “ssl/statem/statem_clnt.c”, line: 1919 }]))) }, X509VerifyResult { code: 64, error: “IP address mismatch”
Postfix log
warning: TLS library problem: error:0A000412:SSL routines::sslv3 alert bad certificate:…/ssl/record/rec_layer_s3.c:1605:SSL alert number 42
I think the ssl error is quite obvious, that’s why I use the server domain name to contact the mail server, but I have the following error that I don’t fully understand :
from backend => source: “5.5.2 Error: command not recognized”
Postfix log
improper command pipelining after EHLO from postfix.lxd[10.202.193.100]: QUIT\r\n
I’m able to send email to the postfix server from my backend in a local dev environment (not containerized), this issue only occurs while inside the container.
Thanks