Report this

What is the reason for this report?

Port problem setting up e-mail server

Posted on May 1, 2016

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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:

  1. sudo ufw allow 143
  1. 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.