Re: Limit PHP web application to connect postfix on localhost

2014-10-25 Thread Robert Schetterer
Am 25.10.2014 um 10:01 schrieb Benny Pedersen: > On October 24, 2014 10:41:11 PM Rod K wrote: > >> Using PHP's mail() function which sends via 25 is A Bad Thing. Use >> something like phpmailer class to use submission and a policy server to >> rate limit. > > php wont retry, so not possible pe

Re: Limit PHP web application to connect postfix on localhost

2014-10-25 Thread Benny Pedersen
On October 24, 2014 10:41:11 PM Rod K wrote: Using PHP's mail() function which sends via 25 is A Bad Thing. Use something like phpmailer class to use submission and a policy server to rate limit. php wont retry, so not possible

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Robert Schetterer
Am 24.10.2014 um 20:47 schrieb Julio Cesar Covolato: > Hi. > > Hello! > Is there a way to limit connections from web applications on the same > server for postfix? > The web application sends messages via smtp on localhost (127.0.0.1:25). > > Need to limit the maximum 5k messages per hour. Is tha

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Mike Cardwell
* on the Fri, Oct 24, 2014 at 04:51:42PM -0400, Wietse Venema wrote: >> I did this for a shared hosting system about ten years ago using the >> ident functionality in Exim. I installed a local ident daemon and >> then configured Exim to talk to it. Once Exim knew the user, it could >> apply user-l

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread li...@rhsoft.net
Am 25.10.2014 um 00:28 schrieb Mike Cardwell: * on the Fri, Oct 24, 2014 at 11:04:18PM +0200, li...@rhsoft.net wrote: and so you end in lose random mails if for whatever reason the app exceeds the limits Web-apps that weren't written to handle retries, don't handle retries. I'll agree with th

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Mike Cardwell
* on the Fri, Oct 24, 2014 at 05:09:21PM -0400, Wietse Venema wrote: >> If a user attempts to send more email than they are allowed to and the mail >> server starts rejecting it and the users code doesn't handle this case, then >> from the shared hosting companies point of view, it is a problem at

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Mike Cardwell
* on the Fri, Oct 24, 2014 at 11:04:18PM +0200, li...@rhsoft.net wrote: >>> the problem is that a website script can't handle a temporary reject >> >> That's not true. > > it is true - period > > nobody right in his brain implements a mail queue in a scripting > language like PHP where the scri

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Rod K
On 10/24/2014 4:47 PM, li...@rhsoft.net wrote: Am 24.10.2014 um 22:41 schrieb Rod K: On 10/24/2014 2:47 PM, Julio Cesar Covolato wrote: Hi. Hello! Is there a way to limit connections from web applications on the same server for postfix? The web application sends messages via smtp on localhos

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Wietse Venema
Mike Cardwell: > If a user attempts to send more email than they are allowed to and the mail > server starts rejecting it and the users code doesn't handle this case, then > from the shared hosting companies point of view, it is a problem at the > users end. In that case, Postfix can require that

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread li...@rhsoft.net
Am 24.10.2014 um 22:56 schrieb Mike Cardwell: * on the Fri, Oct 24, 2014 at 10:42:27PM +0200, li...@rhsoft.net wrote: Is there a way to limit connections from web applications on the same server for postfix? The web application sends messages via smtp on localhost (127.0.0.1:25). Need to limi

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Mike Cardwell
* on the Fri, Oct 24, 2014 at 10:42:27PM +0200, li...@rhsoft.net wrote: Is there a way to limit connections from web applications on the same server for postfix? The web application sends messages via smtp on localhost (127.0.0.1:25). >>> Need to limit the maximum 5k messages p

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Wietse Venema
Mike Cardwell: Checking application/pgp-signature: FAILURE -- Start of PGP signed section. > * on the Fri, Oct 24, 2014 at 03:41:22PM -0400, Wietse Venema wrote: > > >> Is there a way to limit connections from web applications on the same > >> server for postfix? > >> The web application sends m

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread li...@rhsoft.net
Am 24.10.2014 um 22:41 schrieb Rod K: On 10/24/2014 2:47 PM, Julio Cesar Covolato wrote: Hi. Hello! Is there a way to limit connections from web applications on the same server for postfix? The web application sends messages via smtp on localhost (127.0.0.1:25). Need to limit the maximum 5k

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread li...@rhsoft.net
Am 24.10.2014 um 22:22 schrieb Mike Cardwell: * on the Fri, Oct 24, 2014 at 03:41:22PM -0400, Wietse Venema wrote: Is there a way to limit connections from web applications on the same server for postfix? The web application sends messages via smtp on localhost (127.0.0.1:25). Need to limit t

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Rod K
On 10/24/2014 2:47 PM, Julio Cesar Covolato wrote: Hi. Hello! Is there a way to limit connections from web applications on the same server for postfix? The web application sends messages via smtp on localhost (127.0.0.1:25). Need to limit the maximum 5k messages per hour. Is that possible? R

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Mike Cardwell
* on the Fri, Oct 24, 2014 at 03:41:22PM -0400, Wietse Venema wrote: >> Is there a way to limit connections from web applications on the same >> server for postfix? >> The web application sends messages via smtp on localhost (127.0.0.1:25). >> >> Need to limit the maximum 5k messages per hour. I

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread Wietse Venema
Julio Cesar Covolato: > Hi. > > Hello! > Is there a way to limit connections from web applications on the same > server for postfix? > The web application sends messages via smtp on localhost (127.0.0.1:25). > > Need to limit the maximum 5k messages per hour. Is that possible? You don't want to

Re: Limit PHP web application to connect postfix on localhost

2014-10-24 Thread li...@rhsoft.net
Am 24.10.2014 um 20:47 schrieb Julio Cesar Covolato: Is there a way to limit connections from web applications on the same server for postfix? The web application sends messages via smtp on localhost (127.0.0.1:25). Need to limit the maximum 5k messages per hour. Is that possible? not a postf