Re: [PHP] How can I count the usage of mail function in scripts?
Andy Pieters schrieb: > While it *is* possible to do what you ask for, it would be worthless. > > I can write from scratch a php script that > * looks up the mx record for a given email address > * connects to the mail server looked up > * send the message. > > Since the SMTP protocol is fairly simple, I am sure many others can and will > use this to circumvent your limitations. And with PHPMailer there's a package that does this work for you ;-) As I said: What I do with my traffic is none of the hoster's business. OLLi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How can I count the usage of mail function in scripts?
Hi While it *is* possible to do what you ask for, it would be worthless. I can write from scratch a php script that * looks up the mx record for a given email address * connects to the mail server looked up * send the message. Since the SMTP protocol is fairly simple, I am sure many others can and will use this to circumvent your limitations. With kind regards Andy On Tuesday 18 October 2005 11:45, Cristea Adrian wrote: > Hello peoples! > > short question: How can I count the usage of mail function in scripts? > > long description :D > > I have a webserver, and I want to limit the usage of mail function for > each host I have there.. Notice that i have a couple of hundrest of > virtual hosts (domains and subdomains) there, and i want to limit > them, let`s say.. 100 mails per day.. there is any solution to do > that? (i know there is, i saw that in a nwebhosting company) .. can > you guide me find this solution? > > thanks in advance! > > cheers, cajbecu -- Now listening to Top! Radio Live www.topradio.be/stream on amaroK Geek code: www.vlaamse-kern.com/geek Registered Linux User No 379093 If life was for sale, what would be its price? www.vlaamse-kern.com/sas/ for free php utilities -- pgpCA6RiR5PNi.pgp Description: PGP signature
Re: [PHP] How can I count the usage of mail function in scripts?
Cristea Adrian wrote: Hello peoples! short question: How can I count the usage of mail function in scripts? question: what does this have to do with php? (I gather you probably have lots of users mailing via php but that doesn't mean that php should responsible for managing send quotas, and if it was then whats to stop me using exec() to call a cmdline mailer and bypass whatever security you have put in place?) sounds to me like you need to look into the possibilities of customizing you smtp server (and/or) creating some OS level wrapper that is resonsible for quota checking. long description :D I have a webserver, and I want to limit the usage of mail function for each host I have there.. Notice that i have a couple of hundrest of virtual hosts (domains and subdomains) there, and i want to limit them, let`s say.. 100 mails per day.. there is any solution to do that? (i know there is, i saw that in a nwebhosting company) .. can you guide me find this solution? question is why you would want to set such limits - if you have abusive domains - drop them? thanks in advance! cheers, cajbecu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can I count the usage of mail function in scripts?
Hello peoples! short question: How can I count the usage of mail function in scripts? long description :D I have a webserver, and I want to limit the usage of mail function for each host I have there.. Notice that i have a couple of hundrest of virtual hosts (domains and subdomains) there, and i want to limit them, let`s say.. 100 mails per day.. there is any solution to do that? (i know there is, i saw that in a nwebhosting company) .. can you guide me find this solution? thanks in advance! cheers, cajbecu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php