whats-up-docker icon indicating copy to clipboard operation
whats-up-docker copied to clipboard

SMTP fails when Host is an IP Address

Open kuya1284 opened this issue 1 year ago • 0 comments

The following error appears when I set WUD_TRIGGER_SMTP_{trigger_name}_HOST to an IP address:

Error (Hostname/IP does not match certificate's altnames: IP: <POSTFIX IP> is not in the cert's list: )

However, when I use an FQDN, I'm able to connect to my Postfix server and send emails without issues. While using an IP, I've tried with WUD_TRIGGER_SMTP_{trigger_name}_TLS_VERIFY set to false but that didn't seem to make a difference.

Here's what shows up in my Postfix logs:

2024-02-23T21:38:25-08:00 Informational postfix/smtpd disconnect from <DOCKER HOSTNAME>[<DOCKER IP>] ehlo=1 starttls=0/1 commands=1/2 2024-02-23T21:38:25-08:00 Informational postfix/smtpd lost connection after STARTTLS from <DOCKER HOSTNAME>[<DOCKER IP>] 2024-02-23T21:38:25-08:00 Informational postfix/smtpd SSL_accept error from <DOCKER HOSTNAME>[<DOCKER IP>]: lost connection 2024-02-23T21:38:25-08:00 Informational postfix/smtpd connect from <DOCKER HOSTNAME>[<DOCKER IP>]

kuya1284 avatar Feb 24 '24 05:02 kuya1284