Re: limiting databytes per user
Charles Cazabon [EMAIL PROTECTED] wrote: If you want to change DATABYTES on a per-user basis using tcpserver's tcprules files, you're going to have to be able to map user IDs to IP addresses. There's no way around that. tcprules supports matching hostnames as well as IP addresses. -Dave
limiting databytes per user
Hi there, Is there a way to limit the control/databytes file by username? I found some documentation about limiting by domainname but not for just a single username. I have some support users that full my queue with videos/games/etc; and also have users that use their mailboxes correctlly, for work. I want to limit the outgoing size of the stupid users to only 2MB and for other users to 10MB (mantain). Other question: Is there a way to limit the number of outgoing messages per day? Ex. User jack has only permission to send 10 messages a day, and user john has unlimited permission to send messages daily. I use vpopmail by default. Best Regards, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Eduardo Augusto Alvarenga - Analista de Suporte - #179653 Blumenau - Santa Catarina. Tel. (47) 9102-3303 http://www.netron.com.br/~eduardo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: limiting databytes per user
Eduardo Augusto Alvarenga [EMAIL PROTECTED] wrote: Is there a way to limit the control/databytes file by username? If your users inject mail via SMTP from their workstations to your smarthost, and you can map IP addresses to usernames, it's trivial -- tcpserver's tcprules files can be used to set all environment variables (including DATABYTES) on a per-IP basis. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: limiting databytes per user
If your users inject mail via SMTP from their workstations to your smarthost, and you can map IP addresses to usernames, it's trivial -- tcpserver's tcprules files can be used to set all environment variables (including DATABYTES) on a per-IP basis. Charles Great idea, I'm using dhcp. Can I use a classless rule like? 192.168.0.:allow,RELAYCLIENT=,DATABYTES=2 for 2MB users and 193.168.0.:allow,RELAYCLIENT=,DATABYTES=10 for 10MB users? Should I migrade to fixed IP? Best Regards, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Eduardo Augusto Alvarenga - Analista de Suporte - #179653 Blumenau - Santa Catarina. Tel. (47) 9102-3303 http://www.netron.com.br/~eduardo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: limiting databytes per user
On Mon, May 28, 2001 at 11:55:38AM -0300, Eduardo Augusto Alvarenga allegedly wrote: If your users inject mail via SMTP from their workstations to your smarthost, and you can map IP addresses to usernames, it's trivial -- tcpserver's tcprules files can be used to set all environment variables (including DATABYTES) on a per-IP basis. Charles Great idea, I'm using dhcp. Can I use a classless rule like? 192.168.0.:allow,RELAYCLIENT=,DATABYTES=2 for 2MB users and 193.168.0.:allow,RELAYCLIENT=,DATABYTES=10 for 10MB users? That's a good strategy, though 193.168 are not good addresses to use as they are real, routable addresses. How about: 192.168.0-127.:allow,RELAYCLIENT=,DATABYTES=2 192.168.128-255.:allow,RELAYCLIENT=,DATABYTES=10 Or somesuch? Regards.
Re: limiting databytes per user
Eduardo Augusto Alvarenga [EMAIL PROTECTED] wrote: If your users inject mail via SMTP from their workstations to your smarthost, and you can map IP addresses to usernames, it's trivial -- tcpserver's tcprules files can be used to set all environment variables (including DATABYTES) on a per-IP basis. I'm using dhcp. Can I use a classless rule like? 192.168.0.:allow,RELAYCLIENT=,DATABYTES=2 for 2MB users and 193.168.0.:allow,RELAYCLIENT=,DATABYTES=10 for 10MB users? Yes, providing you can guarantee that your 2MB users will get 192. addresses, and your 10MB users will get 193. addresses. Also note your numbers are wrong; you've put 20KB and 100KB limits on them, not 2MB and 10MB. Should I migrade to fixed IP? Not necessarily. Some/most DHCP servers let you do pseudo-static assignment based on MAC address that could fit the bill nicely here. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: limiting databytes per user
Yes, providing you can guarantee that your 2MB users will get 192. addresses, and your 10MB users will get 193. addresses. Also note your numbers are wrong; you've put 20KB and 100KB limits on them, not 2MB and 10MB. How can I say 2MB and 10MB so on ? Not necessarily. Some/most DHCP servers let you do pseudo-static assignment based on MAC address that could fit the bill nicely here. Not easy on a 230 machines network... Best Regards, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Eduardo Augusto Alvarenga - Analista de Suporte - #179653 Blumenau - Santa Catarina. Tel. (47) 9102-3303 http://www.netron.com.br/~eduardo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: limiting databytes per user
Eduardo Augusto Alvarenga [EMAIL PROTECTED] wrote: Yes, providing you can guarantee that your 2MB users will get 192. addresses, and your 10MB users will get 193. addresses. Also note your numbers are wrong; you've put 20KB and 100KB limits on them, not 2MB and 10MB. How can I say 2MB and 10MB so on ? If you want 2*10^6 bytes, use DATABYTES=200. You were missing a couple of zeroes. 2MB, of course, is slightly larger than that. Not necessarily. Some/most DHCP servers let you do pseudo-static assignment based on MAC address that could fit the bill nicely here. Not easy on a 230 machines network... If you want to change DATABYTES on a per-user basis using tcpserver's tcprules files, you're going to have to be able to map user IDs to IP addresses. There's no way around that. Of course, you could always patch qmail-smtpd to set DATABYTES based on the envelope sender, although that's totally insecure. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---