Changing the ports in dovecot


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Dovecot

Changing the ports in dovecotLast Modified: Sep 13, 2011, 12:57 am
By default, dovecot runs pop, imap, pop3 and imaps on the following ports:

110: pop
143: imap
995: pop3s
993: imaps

If you wish to change the port values in dovecot, edit the file:

/etc/dovecot/dovecot.conf

For this example, we'll increase the port numbers by 1, but you can adjust the values as desired.
Find the code:

service imap-login {
   process_min_avail = 16
   user = dovecot
}
service pop3-login {
   process_min_avail = 16
   user = dovecot
}

and change it to look like:

service imap-login {
   process_min_avail = 16
   user = dovecot

   inet_listener imap {
      port = 144
   }
   inet_listener imaps {
      port = 994
      ssl = yes
   }
}
service pop3-login {
   process_min_avail = 16
   user = dovecot

   inet_listener pop3 {
      port = 111
   }
   inet_listener pop3s {
      port = 996
      ssl = yes
   }
}

Save/Exit, and restart dovecot.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST