Mercurial > dovecot > original-hg > dovecot-1.2
diff src/master/login-process.c @ 7920:3644883cf44e HEAD
Support transferring original IPs and ports through IMAP proxies.
Clients from login_trusted_networks are allowed to override them. Dovecot's
IMAP proxy sends them via IMAP ID command. They're always sent if the remote
advertises ID in the banner's CAPABILITY.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 21 Jun 2008 10:10:06 +0300 |
parents | ca2ff54ee9b4 |
children | 4b4d2a4423ec |
line wrap: on
line diff
--- a/src/master/login-process.c Sat Jun 21 09:54:26 2008 +0300 +++ b/src/master/login-process.c Sat Jun 21 10:10:06 2008 +0300 @@ -582,6 +582,10 @@ set->imap_capability : set->imap_generated_capability, NULL)); } + if (*set->login_trusted_networks != '\0') { + env_put(t_strconcat("TRUSTED_NETWORKS=", + set->login_trusted_networks, NULL)); + } } static pid_t create_login_process(struct login_group *group)