Welcome! Log In Create A New Profile

Advanced

server_name in Mail module problem

Posted by hacksandmore 
server_name in Mail module problem
March 29, 2012 11:42AM
Hello all,
I have succesfully configured nginx as reverse proxy for POP3 and IMAP, but I have a question regarding the

server_name statement under server in Mail module,

my fqdn is this: mail.mydomain.com

if I try to connect to mail.mydomain.com via pop3 or imap all is working.

My goal is to have something like pop.mydomain.com only for POP3 and imap.mydomain.com only for IMAP.

with this configuration if I try to use POP3 protocol connecting to the imap.mydomain.com host I can access, and also if I try with IMAP protocol connecting to pop.mydomain.com.


How can I solve this matter?

Thanks a lot

p.s.
both imap.mydomain.com and pop.mydomain.com are pointing to the same public ip address.

mail {
auth_http 127.0.0.1:81/auth.php;
pop3_capabilities "TOP" "USER";
imap_capabilities "IMAP4rev1" "UIDPLUS";

#####
# ssl on;
proxy on;
starttls only;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 SSLv3;
ssl_ciphers HIGH:!ADH:!MD5:@STRENGTH;
ssl_session_cache shared:TLSSL:16m;
ssl_session_timeout 10m;
ssl_certificate cert/mydomain.com.chain.crt;
ssl_certificate_key cert/mydomain.com.key;
#####

server {
listen 110;
protocol pop3;
server_name pop.mydomain.com;
}

server {
listen 143;
protocol imap;
server_name imap.mydomain.com;
}
}

----
Umberto

www.hacksandmore.com
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 245
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready