SMTPTLS port 587 Close after fresh Install
#5
RE: SMTPTLS port 587 Close after fresh Install
I think there is a problem with the SSL certificates generated by the SSL module. In my case, to fix the situation, I needed to change the following:

For Postfix:

Quote:Edit main.cf and master.cf

In main.cf:


Quote:smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes

smtpd_tls_security_level = may
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache

smtpd_tls_cert_file = /etc/letsencrypt/live/domain.com/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/domain.com/privkey.pem


The SSL certificates created inside

Quote:/var/sentora/hostdata/zadmin/ssl/sencrypt/letsencrypt/domain.com

Not work with Postfix. I needed to install `certbot` on Ubuntu to create and regenerate SSL certificates in the specified path, adding "domain.com (your domain" and "mail.domain.com".

Note that Apache needs to be stopped during the installation.

To fix port 587, add these two lines inside `master.cf` if you want to use both ports simultaneously, or select the port you want:

Quote:smtp inet n - n - - smtpd
587 inet n - y - - smtpd


Also, you need to configure Dovecot with the same paths as in Postfix, need edit dovecot2.conf :

Quote:ssl = yes
ssl_cert = </etc/letsencrypt/live/domain.com/fullchain.pem
ssl_key = </etc/letsencrypt/live/domain.com/privkey.pem


When I ran the test on https://www.checktls.com/TestReceiver, everything worked 100%.

I don’t know if this is the best approach for Sentora, but support told me it is the best way to fix this issue. At the moment, I haven't found another solution, and this works perfectly. Ideally, everything should be activated automatically from Sentora, in my opinion.

Additionally, I have noticed that sometimes the SSL module fails to renew certificates, and other times it doesn’t. I think it is necessary to address these issues.

Regards.
Reply


Messages In This Thread
RE: SMTPTLS port 587 Close after fresh Install - by franmm25 - 06-10-2024, 02:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
sentora 2.0 wont load after install kevwebbie 10 5 ,407 04-26-2025, 08:01 AM
Last Post: TGates
Sentoa v 2 install script. kevwebbie 5 2 ,917 04-09-2025, 08:21 PM
Last Post: coeddie11
Installed fresh on ubuntu 20 and dns not working cezars 11 5 ,520 12-29-2024, 07:14 PM
Last Post: dabhijit

Forum Jump:


Users browsing this thread: 1 Guest(s)