Mysql backend

Hi. If nginx ties back to a mysql backend on a remote server for
IMAP/SMTP, don’t I need to add:

$protocol_ports->{‘smtp’}=25;

below the $protocol_ports->{‘imap’}=143;
?

Also I should not be listening to 993 on my actual backend but rather
143 and just enforce TLS and make sure the ssl protocols are used.

Im combining both of these:

http://wiki.nginx.org/ImapAuthenticateWithEmbeddedPerlScript