Peter Hodur:
> Hello,
> 
> I'm using Postfix few months (before I use qmail for 10+ years). Its greate
> piece of software. Because i'm using it also on smtp relay, i want to add
> some transactional capabilities.
> 
> The primary reason is "monitoring activity of our smtp relay users" and
> actively disabking problem users in realtime.
> 
> The one approach is to calculate succesfull ratio of sending email. Some
> kind of transaction log statistics.
> 
> My idea is pretty simple: for each smtp user (sasl user name) store
> statistics/log for each si ple delivery (based on queue id). This data is
> available in log files, but because I want to make decisions in realtime, i
> want to store it Redis key/val database.

This is typically done with "enable_long_queue_ids = yes", a program
that watches the maillog file, and a collection of regular expressions
that extract information.

        Wietse

Reply via email to