-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[Bug]: SMTP server setup with no tls issue #4311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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: |
@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. |
So you want to use SMTP with no username and password and over port 25 (so no TLS). And then you want no encryption to be used and even with port 25 Coolify still uses encryption right? Am I getting this right? I am not sure this is a good idea though because it is highly insecure no encryption and no username and password. |
Related to coollabsio#4311 Add option to configure SMTP settings without encryption. * Update `app/Livewire/Notifications/Email.php` and `app/Livewire/SettingsEmail.php` to include "No Encryption" option in the `smtpEncryption` field and update validation rules. * Modify `app/Notifications/Channels/EmailChannel.php` to handle the "No Encryption" option in the `bootConfigs` method. * Add `set_transanctional_email_settings` function in `app/Livewire/Help.php` to support the "No Encryption" option. * Update `config/mail.php` to handle the "No Encryption" option in the mail configuration.
That is true. It is highly insecure, but as it is an allowed configuration, we need to support it. @heiniha What I do not understand if you leave it empty (null), then no TLS connection should be started, am I wrong? |
Well I understand it is insecure, but when running self hosted and managing own network, we are able to limit its accessibility into where the traffic flows, hence we're using smtp port 25 relay, without user/pass and no tls support. If I choose to not set anything in the encryption field, I still see it using starttls on mailserver and no-tls in the field is the same, still see starttls on mailserver. |
Hi, Thanks this is working now in the latest 380 release 😃 |
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
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
The text was updated successfully, but these errors were encountered: