Dovecot authentication via TCP

I would like to add an authentication service via TCP to dovecot.conf like
service auth {
inet_listener {
port = 12345
}
}
How do I do that permanently? I’m not familiar with the signal-event commands.
And which port would you suggest which will never be used by any other service?
Thanks for your assistance!

Create the templates-custom dir for dovecot:

mkdir -p /etc/e-smith/templates-custom/etc/dovecot/dovecot.conf

Create the file /etc/e-smith/templates-custom/etc/dovecot/dovecot.conf/91auth with following content:

service auth \{
  inet_listener \{
    port = 12345
  \}
\}

Apply the configuration:

signal-event nethserver-mail-server-update

If you don’t want to connect from localhost you need to create a network service to open the port in the firewall.

I checked some of my Nethservers, port 12345 should be unused.

Here’s a list about used ports but it’s not complete.

4 Likes

Thanks a lot, @mrmarkuz.

1 Like