2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Logging with multilog
FromSent OnAttachments
Robin BowesNov 23, 2004 3:57 am 
Robin BowesNov 23, 2004 4:31 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Logging with multilogActions...
From:Robin Bowes (robi@robinbowes.com)
Date:Nov 23, 2004 4:31:40 am
List:net.sourceforge.lists.courier-maildrop

Robin Bowes wrote:

Hi,

I'm currently using maildrop and logging to syslog - all is working OK.

However, I'd like to log to multilog (from djb's daemontools package).

Is this possible? Has anyone done this?

All comments/suggestions appreciated.

Initial thoughts...

Would it be as simple as setting logfile to /dev/stdout and piping the output of maildrop to multilog, e.g. using the following .qmail-default (on one line):

| preline -f /usr/bin/maildrop mailfilter | multilog s1000000 n20 /var/log/maildrop

(goes away and tries this approach...)

It works!

To summarise:

1. Set logfile "/dev/stdout" in mailfilter 2. Pipe the output of maildrop into multilog as above 3. Make sure the log dir is writeable by the user that maildrop runs as (vpopmail in my case)

Excellent!

R.