Changing IMAP port for Dovecot

dovecotimapport

I'm running Dovecot to let people access their email on my server. Unfortunately, some are on networks where they can't connect on the normal IMAP port, so I'm trying to change it. I changed the config to contain:

protocol imap {
  listen = *.1433 *.143
  ...

Then dovecot fails to restart:

Fatal: listen: Can't resolve address *.1433: Name or service not known

What's the correct way of doing this? If possible, I'd prefer to have it listening on both ports.

Best Answer

On my FC10 system running dovecot-1.1.10-1.fc10 the syntax is:

protocol imap {
    listen = *:9999 *:143
    ....
}

Look to see what error is being reported. If the configuration is actually correct then the most likely is 'Address already in use', meaning that some other process is already listening on port 9999.

EDIT - I see you've amended the question. The error is that you're using a '.' instead of a ':' as the port separator.

Related Topic