On 2018-03-07 21:47, Alex K wrote: > Hi all, > > Just checking if anyone can provide any hints on the below. > > Thanx, Alex > > On Tue, Mar 6, 2018 at 3:16 PM, Alex K <rightkickt...@gmail.com> wrote: > >> Hi all, >> >> I am trying to setup a simple script, which will be used to check the mail >> size and count the emails per user (the script does only mail size checks at >> the moment). I am currently checking the logic with a simple script and I >> have followed the http://www.postfix.org/FILTER_README.html, the advanced >> option to avoid loops. When putting script at pickup I had loops.
Check mtpolicyd, it has accounting plugin which might be what you are looking for. Karol -- Karol Augustin ka...@augustin.pl http://karolaugustin.pl/ +353 85 775 5312