OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Throttling outbound mail rates on a per-user basis

From: Cami (camismweb.co.za)
Date: Tue Nov 02 2004 - 05:38:30 CST


Ralf Hildebrandt wrote:

> Yes, I think it is.
> A rate limiting system that disallows a user to send more than
>
> (#mails * size) per timeunit

The mails + timeunit would be definable ofcourse.
How would you land up getting the mail size?

Oct 28 16:33:04 localhost policyd:
policy_array[6][0]:request=smtpd_access_policy
Oct 28 16:33:04 localhost policyd: policy_array[6][1]:protocol_state=RCPT
Oct 28 16:33:04 localhost policyd: policy_array[6][2]:protocol_name=SMTP
Oct 28 16:33:04 localhost policyd:
policy_array[6][3]:client_address=127.0.0.1
Oct 28 16:33:04 localhost policyd: policy_array[6][4]:client_name=localhost
Oct 28 16:33:04 localhost policyd: policy_array[6][5]:helo_name=.
Oct 28 16:33:04 localhost policyd:
policy_array[6][6]:sender=camismweb.co.za
Oct 28 16:33:04 localhost policyd:
policy_array[6][7]:recipient=camihack.co.za
Oct 28 16:33:04 localhost policyd: policy_array[6][8]:queue_id=
Oct 28 16:33:04 localhost policyd:
policy_array[6][9]:instance=25d2.4181031c.0
Oct 28 16:33:04 localhost policyd: policy_array[6][10]:size=0

The mua/mail client does not have to send the size..

> would surely be interesting.

This is really easy to do..

Cami