Hello list, i need to know if is possible to create a log file per domain, like: /home/vmail/%d/maillog i'm thinking use : log_path = /home/vmail/%d/maillog , this will work? Thanks !!
Somebody help me ? thanks ! On Sat, Apr 25, 2009 at 3:33 PM, Darvin Denmian <darvin.denmian at gmail.com> wrote:> Hello list, > > i need to know if is possible to create a log file per domain, like: > /home/vmail/%d/maillog > i'm thinking use : log_path = /home/vmail/%d/maillog , this will work? > > Thanks !! >
On Sat, 2009-04-25 at 15:33 -0300, Darvin Denmian wrote:> Hello list, > > i need to know if is possible to create a log file per domain, like: > /home/vmail/%d/maillog > i'm thinking use : log_path = /home/vmail/%d/maillog , this will work?No. Not possible currently, unless you run each domain in a separate Dovecot installation. I'm also not really sure how it should work, because for example when logging in Dovecot doesn't yet know the domain. So the log file would also have to change once the username is known. I'm thinking about making Dovecot v2.0's logging support something like this though. Or at least the ability to have its log process replaced with a more featureful log process that could do this. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090427/c2fde664/attachment-0002.bin>
Timo Sirainen wrote:> On Sat, 2009-04-25 at 15:33 -0300, Darvin Denmian wrote: >> Hello list, >> >> i need to know if is possible to create a log file per domain, like: >> /home/vmail/%d/maillog >> i'm thinking use : log_path = /home/vmail/%d/maillog , this will work? > > No. Not possible currently, unless you run each domain in a separate > Dovecot installation. I'm also not really sure how it should work, > because for example when logging in Dovecot doesn't yet know the domain. > So the log file would also have to change once the username is known. > > I'm thinking about making Dovecot v2.0's logging support something like > this though. Or at least the ability to have its log process replaced > with a more featureful log process that could do this.How about using syslog-ng? Anyone doing this with doveccot? ||\\/ Rod --