Re: Throttling locally generated email

2015-11-11 Thread Tom Hendrikx
Hi, You might want to 'replace' the postfix sendmail command with mini_sendmail or something alike, and have that actually forward to localhost:25 using SMTP. Then you can apply throttling on the localhost ip, but lose the ability to see which local user was the source. Tom On 11-11-15 08:41,

Re: Throttling locally generated email

2015-11-10 Thread Donald Bindner
Yes, the point of my email is that I researched and tried to apply exactly this configuration, but it did not work. The smtpd_recipient_restrictions rule they suggest does not appear to apply to messages that originate on the server. Or at least making that single configuration does not have

Re: Throttling locally generated email

2015-11-10 Thread Curtis Maurand
Hello, I found this link that might be helpful. http://steam.io/2013/04/01/postfix-rate-limiting/ Cheers, Curtis On 11/10/2015 5:42 PM, Donald Bindner wrote: I've been searching for some time, and what I want seems to be fairly obscure, because I haven't found clear examples of it (at least

Re: Throttling locally generated email

2015-11-10 Thread Ken Simpson
Hi Donald, Chances are, the problem you're trying to solve (throttling users) is actually a symptom of the larger problem of runaway spamming accounts. Am I right? In this case, throttling users with policyd and a relatively straightforward policyd script is a good option to stem the bleeding.

Re: Throttling locally generated email

2015-11-10 Thread Viktor Dukhovni
On Tue, Nov 10, 2015 at 04:42:32PM -0600, Donald Bindner wrote: > smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10040 > > However, this kind of rule seems to run only for mail "passing > through" my Postfix server and not for mail originating locally. In > any event, the

Re: Throttling locally generated email

2015-11-10 Thread Donald Bindner
Yes, of course it's about stemming the bleeding. We found the problem account almost right away and shut it down. It's no longer a problem. But I'm looking ahead to the next time. It's just inevitable that new naive users are going to do this again to the system. People think, "Who would want

Re: Throttling locally generated email

2015-11-10 Thread Benning, Markus
On 2015-11-10 23:42, Donald Bindner wrote: smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10040 You may want to use a different restriction than recipient. The recipient restrictions are executed for every recipient. It gets executed multiple times if the mail has more than

Re: Throttling locally generated email

2015-11-10 Thread Peter
On 11/11/2015 11:42 AM, Donald Bindner wrote: > smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10040 > > However, this kind of rule seems to run only for mail "passing > through" my Postfix server and not for mail originating locally. In > any event, the service running on

Throttling locally generated email

2015-11-10 Thread Donald Bindner
I've been searching for some time, and what I want seems to be fairly obscure, because I haven't found clear examples of it (at least I don't think I have). I run an Ubuntu server with user accounts, and we use a limited amount of email on it, which we process with Postfix. On occasion, a user

Re: Throttling locally generated email

2015-11-10 Thread Curtis Maurand
And this. http://serverfault.com/questions/290684/postfix-limiting-the-rate-at-which-a-particular-user-can-send-email --Curtis On 11/10/2015 5:42 PM, Donald Bindner wrote: I've been searching for some time, and what I want seems to be fairly obscure, because I haven't found clear examples of