Re: Hourly Limits

2009-07-15 Thread ad...@gg-lab.net
Hi All, ok, i've installed postfwd, added the provided line to the end of the postfwd.cf file but nothing happens (mails are sent withouth checks). Any help? Thankyou 2009/7/13 ad...@gg-lab.net ad...@gg-lab.net: Ok, so, in other words: that's a solution but not the better solution. Now, i

Re: Hourly Limits

2009-07-15 Thread ad...@gg-lab.net
Still any result. Can the problem be on this line? smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10040 Policyd site says to add it, but in postfix manual i can't find any description of smtpd_end_of_data_restrictions. Thankyou 2009/7/15 ad...@gg-lab.net

Re: Hourly Limits

2009-07-15 Thread Brian Evans - Postfix List
ad...@gg-lab.net wrote: Still any result. Can the problem be on this line? smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10040 Policyd site says to add it, but in postfix manual i can't find any description of smtpd_end_of_data_restrictions. That restriction is

Re: Hourly Limits

2009-07-15 Thread ad...@gg-lab.net
Thankyou. So, that restriction is configured correctly. Postfwd daemon is started (it checks incoming mail for RBL. I think i have to move to the postfwd lit. Thankyou again 2009/7/15 Brian Evans - Postfix List grkni...@scent-team.com: ad...@gg-lab.net wrote: Still any result. Can the

Re: Hourly Limits

2009-07-13 Thread ad...@gg-lab.net
Benny, i want to limit mail sent via php mainly, so i can't limit via sasl simply because users aren't authenticated. Of course i can't limit the host ip (all mail sent from my webserver). The most beautiful thing would be limiting system user (each user has an entry in /etc/passwd). Limiting

Re: Hourly Limits

2009-07-13 Thread luc...@lastdot.org
On Sat, Jul 11, 2009 at 7:01 PM, ad...@gg-lab.netad...@gg-lab.net wrote: Hi, i have benn googling for hours today, and can't solve this problem: I'm working on a free-hosting platform. As MTA, of course, i've choosen postfix. Now, to prevent abuse, i want to limit the number of email each

Re: Hourly Limits

2009-07-13 Thread Benny Pedersen
On Mon, July 13, 2009 09:51, ad...@gg-lab.net wrote: i want to limit mail sent via php mainly, so i can't limit via sasl simply because users aren't authenticated. remove 127.0.0.1 in mynetworks, and make sasl usage from all what got sent from this box, problem solved, next step is a policy

Re: Hourly Limits

2009-07-13 Thread ad...@gg-lab.net
Lucian, i saw that solution, but i want something that can globally limit EVERY mail sent: i'll also offer smtp access, and a sendmail wrapper isn't a solution. Benny: ok, so we are speaking about the evenlope sender, so, it seems this is the solution. 2009/7/13 Benny Pedersen m...@junc.org:

Re: Hourly Limits

2009-07-13 Thread ad...@gg-lab.net
Here some details on cpanel limits: http://forums.cpanel.net/email-exim/73464-how-does-new-max-emails-per-hour-tracking-work-2.html 2009/7/13 ad...@gg-lab.net ad...@gg-lab.net: Lucian, i saw that solution, but i want something that can globally limit EVERY mail sent: i'll also offer smtp

Re: Hourly Limits

2009-07-13 Thread Sahil Tandon
On Jul 13, 2009, at 5:54 AM, ad...@gg-lab.net ad...@gg-lab.net wrote: Lucian, i saw that solution, but i want something that can globally limit EVERY mail sent: i'll also offer smtp access, and a sendmail wrapper isn't a solution. Benny: ok, so we are speaking about the evenlope sender, so,

Re: Hourly Limits

2009-07-13 Thread ad...@gg-lab.net
Hi, i don't think my situation keeps changing- That's simple: on my evinronment users can send email via CGI + PHP + SMTP (sasl), and i want to limit them globally. Example: user giorgio can send 100 emails. I want him locked also on CGI, if he send 100 emails with PHP. I can't: - use a

Re: Hourly Limits

2009-07-13 Thread Sahil Tandon
On Jul 13, 2009, at 11:51 AM, ad...@gg-lab.net ad...@gg-lab.net wrote: Hi, i don't think my situation keeps changing- That's simple: on my evinronment users can send email via CGI + PHP + SMTP (sasl), and i want to limit them globally. Example: user giorgio can send 100 emails. I want him

Re: Hourly Limits

2009-07-13 Thread ad...@gg-lab.net
Ok, so, in other words: that's a solution but not the better solution. Now, i can ALSO use thge sendmail wrapper. I need to have a look at postfwd code to see if and where i can increment mail counters. In this way, i will use postfwd for mail coming from CGI scripts and Remote SMTP, and the

Hourly Limits

2009-07-11 Thread ad...@gg-lab.net
Hi, i have benn googling for hours today, and can't solve this problem: I'm working on a free-hosting platform. As MTA, of course, i've choosen postfix. Now, to prevent abuse, i want to limit the number of email each user can send in an our. Any idea? Thankyou

Re: Hourly Limits

2009-07-11 Thread Sahil Tandon
On Jul 11, 2009, at 2:01 PM, ad...@gg-lab.net ad...@gg-lab.net wrote: Hi, i have benn googling for hours today, and can't solve this problem: I'm working on a free-hosting platform. As MTA, of course, i've choosen postfix. Now, to prevent abuse, i want to limit the number of email each user

Re: Hourly Limits

2009-07-11 Thread ad...@gg-lab.net
Very good, thankyou. I found DEB package postfix-policyd. In the .conf file i've created, i can see some quota-related directives, but it seems it can limit only SASL autenticated users or hosts (and the host will always be the same. And, i've also found postfwd, but i can't see how can i use it

Re: Hourly Limits

2009-07-11 Thread Benny Pedersen
On Sat, July 11, 2009 20:01, ad...@gg-lab.net wrote: i have benn googling for hours today, and can't solve this problem: hope its not generic :) Any idea? policyd v2 http://www.policyd.org/ -- xpoint

Re: Hourly Limits

2009-07-11 Thread Benny Pedersen
On Sat, July 11, 2009 21:42, ad...@gg-lab.net wrote: And, i've also found postfwd, but i can't see how can i use it to limit mails in number. or make it with fail2ban, match on sasl in log, geek style :) just make a action that disable sasl for this user in the time frame maybe it can be

Re: Hourly Limits

2009-07-11 Thread Sahil Tandon
On Sat, 11 Jul 2009, ad...@gg-lab.net wrote: And, i've also found postfwd, but i can't see how can i use it to limit mails in number. Assuming you want to limit mails per envelope sender, the following (untested) rule should work: id=MAX_PER_HOUR ; protocol_state=END-OF-MESSAGE ; \