How to Enable SSL Communication on Port 465 with the Dovecot Proxy Feature

Asked 2 years ago, Updated 2 years ago, 83 views

Thank you for your help.
I installed Dovecot on VPS by referring to the site below and set it up to be used as a proxy for an external mail server (in this example, ConoHa's mail server).
Story of difficulty with SSL certificate when trying to use ConoHa's mail server (Implementation Edition)
For the time being, I finished setting it up, and it's working well for the most part, but at the moment, I'm having trouble communicating with SSL through port 465.
When I try to send it from my mailer, I get the following error.

Failed to connect to mail.example.com.(FD_CONNECT, code=10061)

Incidentally, with STARTTLS turned on, the transmission from port 587 was successful.
How do I enable SSL communication on port 465?
After releasing the port using the command below, the server has been restarted.

 ufw allow465

The environment is Ubuntu 18.04, Dovecot 2.3.7.2.
Thank you for your cooperation.

dovecot mail

2022-09-29 22:47

1 Answers

I managed to solve it by myself, so I'll leave it as a memo.

Open "/etc/dovecot/conf.d/10-master.conf" and add the following under "service submission-login{".

inet_listener submission_25 {
port=25
}
inet_listener submission_465 {
port=465
ssl=yes
}

Restart Dovecot.


2022-09-29 22:47

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.