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. So in si ple case, i want to know for each transaction nimber of 2xx deliveries, 4xx and so on. Based on this numbers i can later block user possibly sending spam. (In case high ration of 5xx errors for example) The problem is, postfix source is huge ;) i have no problem to make a patch or develop this extension, but i would like to kindly ask some skilled deveoper f postfix, where is the right place to add this kind of logging... The rest is no problem, im able to develop it ;) Thanks a lot for any usefull info Tom