Re: [Dovecot] RfE: use HOSTNAME environment variable in hostpid_init()

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 4:42 AM, Heiko Schlichting wrote: All parts of dovecot except deliver uses the result of hostpid_init() in src/lib/hostpid.c as a hostname which only asks gethostname(). deliver honours environment variable HOSTNAME in src/deliver/ deliver.c: getenv("HOSTNAME"); and

[Dovecot] RfE: use HOSTNAME environment variable in hostpid_init()

2008-08-13 Thread Heiko Schlichting
Hi, All parts of dovecot except deliver uses the result of hostpid_init() in src/lib/hostpid.c as a hostname which only asks gethostname(). deliver honours environment variable HOSTNAME in src/deliver/deliver.c: getenv("HOSTNAME"); and uses the hostname of hostpid_init() as a fallback. Wou