coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.62k stars 1.89k forks source link

[Bug]: SMTP server setup with no tls issue #4311

Open heiniha opened 6 days ago

heiniha commented 6 days ago

Error Message and Logs

Leaving the envryption field empty does not work for coolify to send the mail without starttls. Our mailserver always receives requests including starttls. Would like the option to choose not to use starttls, or if that already exist, then how can I configure it inside the Coolify settings menu -> transactional email -> SMTP server?

Steps to Reproduce

  1. Configure smtp server settings without encryption set
  2. Test send email
  3. Coolify marks it as sent successfully
  4. Mail server denies request with starttls

Example Repository URL

No response

Coolify Version

v4.0.0-beta.369

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04

Additional Information

No response

pshemek commented 3 days ago

I have issues with SMTP settings as well. Actually, I found that Coolify's notification test displays success no matter what I configure system-wide (including wrong password, etc.)

Also, when I try to set different email than default one in notification test, server error occurs: Error: Cannot update locked property: [emails]

peaklabs-dev commented 19 hours ago

@heiniha you can set it to tls and port 465 that will always use tls, if you use 587 it will try to use STARTTLS if availabe. What is your exact issue you are having?

@pshemek This will be fixed in one of the next version and is a different issues.

heiniha commented 17 hours ago

@peaklabs-dev well, if running in own hosted environment and having a mailrelay available, but only on port 25 (smtp) and using a anonymous solution, so basically no user or password needed and also no tls or starttls needed or possible, then coolify says the email was sent successfully, but in the mail server log I see it still tries starttls.

Basically I would have thought that a no-tls option would be correct, and perhaps a checkbox for enabling anonymous account solution.

Many companies run like this to quickly scale their environments.