Hello,
I’ve set up my e-mail server using this tutorial: www.digitalocean.com/… (without using SSL) Everything seems to be working, all the services are started. I’ve opened the correct ports using UFW:
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Apache Full ALLOW Anywhere
Dovecot IMAP ALLOW Anywhere
Dovecot POP3 ALLOW Anywhere
Postfix ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
Dovecot IMAP (v6) ALLOW Anywhere (v6)
Dovecot POP3 (v6) ALLOW Anywhere (v6)
Postfix (v6) ALLOW Anywhere (v6)
When I do a port scan this is the result:
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp closed pop3
143/tcp closed imap
443/tcp closed https
How is it that the IMAP and POP3 ports are closed? I cannot connect to it from any client.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
A closed port means that there’s nothing listening on it. Check that dovecot is actually running and listening on ports 110 and 143 with “sudo netstat -plunt”.
Hello,
You can also ensure that the ports are open in your Firewall configuration.
If you’re using UFW you can open the port using the following command:
- sudo ufw allow 143
- sudo ufw allow 110
You can check our tutorial on How To Set Up a Firewall with UFW on Ubuntu 18.04 for more information:
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.