I want to run imaps on a port other than 993.
I changed this in /etc/dovecot/conf.d/10-master.conf
and beforehand, backed up the original copy as /etc/dovecot/conf.d/10-master.conf.bak
. I did everything from
# service dovecot restart
# service dovecot stop
# service dovecot start
# doveadm reload
# doveadm restart
and even a complete server reboot.
Still, doveconf | grep 993
reports port = 993
in the output, while the port's been changed in the config file.
Note I'm also running roundcube and postfix, and connected my email account to the gmail app through SSL as well on port 993. I'm also not sure if I need to change any other configs to work with dovecot or not, other than my email settings on my phone for gmail app.
EDIT it turned out conf.d wasn't included....