I'm not directly experienced with this, but my guess is that a user-specific entry should override the default value. I'm not sure, though, what happens if you turn off the default flag altogether -- if then any user who does not have a limit set will be ignored or not.
I would simply try to put in a different value for a user and try it and see what shows up oin the logs (if necessary, you can increase the DEBUG value temporarily). Initially, I'd suggest leaving the default flag alone so all other users will be regulated by whatever the default is set to. You should be able to tell from th elogs, as well as what's in the DB, what is happening. Pick a really low limit so you can get some quick results. If someone else has already done this, maybe they'll respond! --Tobias On Mon, 26 Nov 2007, Osmany Goderich wrote: > I can see that policyd depends a lot on the 'time' factor. I want different > sets of users have different limit regardless of what time or the time they > take sending the messages. Is this possible setting the time limit with '0'? > > -----Mensaje original----- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] En nombre de Tobias J. > Kreidl > Enviado el: jueves, 22 de noviembre de 2007 23:59 > Para: policyd-users@lists.sourceforge.net > Asunto: [policyd-users] Limit Recipient count > > Osmany, > It may be possible to edit the values for specific recipients; > these would override the global variable settings. You'd have to > identify the specific recipients in the throttle_rcpt table and change the > values of _count_max and if desired, _time_limit, for the _rcpt entries > in question: > > +-------------+-----------------------+------+-----+---------+-------+ > | Field | Type | Null | Key | Default | Extra | > +-------------+-----------------------+------+-----+---------+-------+ > | _rcpt | char(60) | NO | PRI | | | > | _count_max | mediumint(8) unsigned | NO | | 0 | | > | _count_cur | mediumint(8) unsigned | NO | | 1 | | > | _date | int(10) unsigned | NO | | 0 | | > | _time_limit | int(10) unsigned | NO | | 0 | | > | _count_tot | mediumint(8) unsigned | NO | | 1 | | > | _abuse_cur | int(10) unsigned | NO | | 0 | | > | _abuse_tot | int(10) unsigned | NO | | 0 | | > | _log_warn | int(10) unsigned | NO | | 0 | | > | _log_panic | int(10) unsigned | NO | | 0 | | > +-------------+-----------------------+------+-----+---------+-------+ > > Any recipient not specifically listed should take on the global settings, > specified in the policyd.conf file, so if you don't want them to be > restricted, you could configure huge default values. I'm not sure though > how you would keep these records from expiring, unless you set > RECIPIENT_INACTIVE_EXPIRE=0 in policyd.conf, in which case it will never > delete any of the records. If you don't have a huge number of recipients, > that shouldn't be a big problem. > > --Tobias > > > On Thu, 22 Nov 2007, Osmany Goderich wrote: > >> Yes I know that. But I would like to have a different limit for different >> users and I was told that the only way to do this was with policyd, but > how. >> >> -----Mensaje original----- >> De: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] En nombre de Tobias > J. >> Kreidl >> Enviado el: jueves, 22 de noviembre de 2007 14:58 >> Para: policyd-users@lists.sourceforge.net >> Asunto: [policyd-users] Limit Recipient count >> >> You can only enable a global number of recipients for the total of >> all messages per time linit, for example, 500 messages per hour, or 3500 >> messages per hour, whatever limnit is reached first. >> >> A better way to limit the number of recipients per message is to do so >> within postfix, so in main.cf just add an entry like this: >> >> smtpd_recipient_limit = 100 >> >> which means any sigle message can have an envelope containing no more than >> a total of 100 recipients. If not using postfix, exim and other mail >> programs have similar capabilities. >> >> --Tobias >> >> On Thu, 22 Nov 2007, Osmany Goderich wrote: >> >>> How can I limit the recipient count per message with policyd? >>> >>> >>> >>> Thanx. >>> >>> >>> >>> Direccion Provincial Joven Club C.Habana >>> >>> Administrador del Nodo Provincial >>> >>> telefono: 863-1648 >>> >>> website: www.ciudad.jovenclub.cu >>> >>> correo: [EMAIL PROTECTED] >>> >>> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > policyd-users mailing list > policyd-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/policyd-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > policyd-users mailing list > policyd-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/policyd-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ policyd-users mailing list policyd-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/policyd-users