Re: which php file is sending emails?
| From: | Jim Lucas | Date: | Sat, 15 Jan 2011 16:52:20 +0000 |
| Subject: | Re: which php file is sending emails? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310782@lists.php.net to get a copy of this message | ||
On 1/14/2011 9:53 PM, Nilesh Govindarajan wrote:
> On 01/15/2011 06:21 AM, Mesut GULNAZ wrote:
>> is it possible to see which php file(s) is/are sending emails on my server
>> by php.ini or with any other way?
>>
>> coz i have a server and i have many domains and subdomains. on my smtp
>> systems i saw that many random mails are being sent from www server which
>> has RELAY permission. I know i must not give RELAY (i can use SMTP-AUTH) but
>> some kind of issues i have to give it.
>>
>> so i have to find the domain or subdomain and the file or files which send
>> this emails.
>>
>> how can i solve this issue?
>>
>> my system ise freebsd.
>>
>> thanks...
>>
>
> grep -l mail $(find -name *.php)
> There can be nothing more simpler than this!!!
> Seriously man, you need to revise your sysadmin skills!
>
Um, I use OpenBSD and that command gives me an error or two...
$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
formmail.php
$ grep -l mail $(find ./ -name "*.php")
Output a big long list of files...
Jim Lucas