Disable pop3 and change IMAP port

hi, i want to disable pop3 email feature in dovecot and i tried by removing dovecot-pop3d but that is breaking hestiacp’s settings and giving error (sometimes service get stopped). So, is there any way to disable it from configuration file ? However, i have already deny port at firewall but if it stop completely than that would be good.

and how can i change port number of IMAP ?

Hi @chetanp,

Edit /etc/dovecot/dovecot.conf file and remove pop3 from protocols directive:

Before:
protocols = imap pop3

After:
protocols = imap

Save the file and restart dovecot:
systemctl restart dovecot

Edit file /etc/dovecot/conf.d/10-master.conf and add port directive to imap and imaps.

Example changing imap from default port 143 to 144 and imaps from default port 993 to 994:

Before:

service imap-login {
  inet_listener imap {
  }
  inet_listener imaps {
  }
}

After:

service imap-login {
  inet_listener imap {
    port = 144
  }
  inet_listener imaps {
    port = 994
  }
}

Save the file and restart dovecot.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.