similar to smtp_connect.
please could you describe more what you mean? there is no smtp_connect in the config.
sorry, I was referring to plugin hooks:
smtp_connect ¶
Triggered when before opening an SMTP connection to send a message.
Some SMTP related config options are passed as arguments and can be altered by a plugin.
Arguments:
* smtp_server
* smtp_port
* smtp_user
* smtp_pass
* smtp_auth_type
* smtp_helo_host
Return values:
all arguments
imap_connect ¶
Triggered right before connecting to the IMAP server.
Similar to the authenticate hook but triggered in every step not just on login.
Arguments:
* host
* user
Return values:
* host
* user
* pass
sorry, i am referring to plugin hooks. please add port as a arg/value to the imap_connect plugin hook, similar to the smtp_connect plugin hook.