Welcome! Log In Create A New Profile

Advanced

mail proxy client timeout

July 13, 2010 07:53PM
Hi

I have a nginx server configured to handle imap mail traffic. i want to
enforce the following

1) if downstream email client does not send a command for more than 2
mins, the nginx proxy should disconnect.

2) if upstream server (real mail server) does not respond for more than
5 mins or takes longer than 5 mins to respond, disconnect both upstream
and downstream connections.

Does anyone have any ideas on doing this on nginx?

in ngx_mail_proxy_module.c i see

{ ngx_string("proxy_timeout"),
NGX_MAIL_MAIN_CONF|NGX_MAIL_SRV_CONF|NGX_CONF_TAKE1,
ngx_conf_set_msec_slot,
NGX_MAIL_SRV_CONF_OFFSET,
offsetof(ngx_mail_proxy_conf_t, timeout),
NULL },


and in ngx_mail_core_module.c

{ ngx_string("timeout"),
NGX_MAIL_MAIN_CONF|NGX_MAIL_SRV_CONF|NGX_CONF_TAKE1,
ngx_conf_set_msec_slot,
NGX_MAIL_SRV_CONF_OFFSET,
offsetof(ngx_mail_core_srv_conf_t, timeout),
NULL },


does anyone have any experience dealing with these or have any
suggestions?

thanks!
Subject Author Posted

mail proxy client timeout

iceman July 13, 2010 07:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
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