Thanks Maxim, how should I put all in one server block because I thought the logic will be as follow:
mail {
auth_http 127.0.0.1/auth.php;
imap_capabilities "IMAP4rev1" "UIDPLUS";
server {
listen 0.0.0.0:143;
server_name mail.domainA.com;
protocol imap;
proxy on;
}
server {
listen 0.0.0.0:143;
server_name mail.domainB.com;
protocol imap;
proxy on;
}
}
Thanks for helping.
Regards,
YSC