From: Timo Sirainen Date: Sun, 18 May 2003 16:26:26 +0000 (+0300) Subject: Send client's IP to mail process. X-Git-Tag: 1.1.alpha1~4622 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d35182d4a82a661eabe4f07571510320d68efe40;p=thirdparty%2Fdovecot%2Fcore.git Send client's IP to mail process. --HG-- branch : HEAD --- diff --git a/src/master/mail-process.c b/src/master/mail-process.c index f4a0f193f2..f8242e5acd 100644 --- a/src/master/mail-process.c +++ b/src/master/mail-process.c @@ -216,8 +216,10 @@ int create_mail_process(int socket, struct ip_addr *ip, env_put(t_strconcat("MAIL=", mail, NULL)); env_put(t_strconcat("USER=", data + reply->virtual_user_idx, NULL)); + host = net_ip2host(ip); + env_put(t_strconcat("IP=", host, NULL)); + if (set->verbose_proctitle) { - host = net_ip2host(ip); if (host == NULL) host = "??";