OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: mail logs per domain

From: /dev/rob0 (rob0gmx.co.uk)
Date: Tue Feb 08 2005 - 10:20:59 CST


On Tuesday 08 February 2005 05:11, Philipp Snizek wrote:
> I've got various domains on my MTA. As in Apache, is it possible to
> divert the maillog per domain?

The apache logs of which you speak are written by httpd to files.
Postfix, in contrast, uses the system syslogd for logging. The plain
old syslogd you get with most Unix flavours won't do this, but you
might be interested in syslog-ng.

> Would this be possible with Postfix on MySQL?

There too, a syslogd with a SQL backend would facilitate your goal. See
also the pflogsumm Perl script, which does better than separate logs;
it gives you human-readable summaries, per domain if you wish.

http://freshmeat.net/projects/$PROJECT/ (Both are listed at freshmeat.)
--
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header