Ronan Mullally wrote:
> Hi,
> 
> I'm considering enabling the sender throttling functions in policyd, but
> am a little unclear about how they work.  Having looked at the config file
> and the readme, my understanding is that:
> 
>  - an entry is created in the throttle table which describes the number
>    of messages / recipients / bytes / etc allowed per sender.  These
>    entries can be created manually or automatically
> 
>  - domain records describe the same details, and are on a sum-total basis
>    rather than functioning as a default from which to clone per-sender
>    records for senders in that domain.  These records are only created
>    manually
> 
>  - as messages pass through policyd these quotas are updated and messages
>    accepted / rejected accordingly
> 
> A few points I'm unclear on:
> 
>  - If somebody sends two messages to the same recipient, their message
>    count increases by 2, but does their recipient count increase by 1 or
>    2 (ie is policyd keeping track of past recipients)?

Recipient count is the total number of recipients, doesn't matter the 
address of the recipient.  In your example, the recipient count is 2.

>  - If I manually put records in the throttle table, will they stay there
>    indefinitely, or are they purged according to SENDER_INACTIVE_EXPIRE?

The entry would get purged for inactivity.  To get around this, I made a 
script that would update the entry every week so it would not be purged.

>  - Is it possible to only maintain quotas for messages sent by local users
>    and not incoming email to local users?

Yes, this is what I use.  Outgoing quota only, no incoming quota.  I 
accomplish this by running two instances.  1st instance is for incoming 
mail only and does greylisting only.  2nd instance is for sending mail 
(MSA) and does throttling only.
You cannot accomplish this within a single instance in the current version.

>  - What's the purpose of the throttle_from_instance table?

A working table used to store the message instance ID.  Policyd may be 
called several times for the same message and the instanceID allows 
policyd to count the messages correctly.

>  - What effect does whitelisting have on throttles?  Does a message that
>    passes a whitelist get added to a sender's quota?

Don't know this one because I haven't used it.

John Beaver


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to