Re: Content filter with script

2018-03-08 Thread Alex K
Thank you Karol. I will check this. I am interested to log the mails (count in/out), check the size then log these to a DB to show them in some GUI and using these values to apply some policies (allow or reject according to set limits) Alex On Thu, Mar 8, 2018 at 11:59 AM, Karol Augustin wrote:

Re: Content filter with script

2018-03-08 Thread Karol Augustin
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 wrote: > >> Hi all, >> >> I am trying to setup a simple script, which will be used to check the mail >> size and count

Re: Content filter with script

2018-03-07 Thread Alex K
On Mar 8, 2018 00:39, "Wietse Venema" wrote: Alex K: > Hi all, > > Just checking if anyone can provide any hints on the below. My advice: use postfwd to enforce size limits, instead of using a filter. This advice is valid if email arrives via SMTP. What is the problem with your code? 1) In you

Re: Content filter with script

2018-03-07 Thread Wietse Venema
Alex K: > Hi all, > > Just checking if anyone can provide any hints on the below. My advice: use postfwd to enforce size limits, instead of using a filter. This advice is valid if email arrives via SMTP. What is the problem with your code? 1) In your basic filter approach. the shell is not a sa

Re: Content filter with script

2018-03-07 Thread Alex K
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 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 > a