-----Original Message----- From: dovecot-bounces+siebert+lists=et.rub.de@dovecot.org [mailto:dovecot-bounces+siebert+lists=et.rub.de@dovecot.org] On Behalf Of Marcin Rzepecki Sent: Sunday, December 14, 2008 11:11 PM To: Thomas Siebert Cc: dovecot@dovecot.org Subject: Re: [Dovecot] deliver & per user log file
Sun, Dec 14, 2008 at 10:53:10PM +0100, Thomas Siebert napisaĆ(a):
What version do you use? Do you have tried "~/Mail/deliver.log"?
I should start with this info ;) I'm running 1.1.7 I've tried with many combinations: ~/Mail/deliver.log; Mail/deliver.log; deliver.log; %h/Mail/deliver.log - without effect
-- Marcin Rzepecki m.rzepecki(at)iem.pw.edu.pl
OK, I checked the sources and there is indeed no variable expansion code for this parameters. So for now, I don't see how it is possible from within dovecot. There are probably some cheesy ways to do it via filtering for some syslog daemons, but I feel that variables and "~" should be expanded here. As this should be no complicated fix, maybe when Timo reads this he introduces it in the next version.
Changing two lines in deliver.c and recompiling could provisionally work (untested):
Line 685: log_path = expand_mail_env( getenv("LOG_PATH"), get_var_expand_table(username, getenv("HOME")) );
Line 698: info_log_path = expand_mail_env( getenv("INFO_LOG_PATH"), get_var_expand_table(username, getenv("HOME")) );