fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
939 stars 29 forks source link

SMTP fails when Host is an IP Address #352

Open kuya1284 opened 4 months ago

kuya1284 commented 4 months ago

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>]