PHP Scripts Sending Mail on Linux Server via Qmail

I need to change the way I process the sending of my emails on my server and I need to find out all of the process that are currently using the qmail program to send emails.

Is there an easy way to identify which PHP scripts are using qmail to send out an email?

Is there a log I can go to to see this or a process I can set up to log this?

I'm running a Linux RedHat Server.
Paul KonstanskiProject SpecialistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor Commented:
Finding all php (source) files that have qmail in them:

cd / ; grep -iR qmail * 2>/dev/null
0
nociSoftware EngineerCommented:
qmail does provide in a sendmail emultator for this,
(most other mailers do (exim,  postfix)).
From the php site:
http://php.net/manual/en/book.mail.php


And if you don't want to go through that route, then connect to any mailer using SMTP  on port 25.
Here some examples using authentication as well.
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.