Click to See Complete Forum and Search --> : Using Exim for PHP
Dr. Shim
07-29-2003, 12:56 PM
As Dr. Shim's adventure to use Exim continues...
I've actually got through configuring Exim, which was as easy as eximconfig and filling out the blank (n00b alert), all I have to do now is somehow configure my PHP config file to use exim instead of sendmail. So far no luck.
What i need to know is simple, but I can't seem to find the answer anywhere. What command is PHP supposed to use in it's configuration file in order to send email via exim?
This is what i have right now in my config file:
sendmail_path = /usr/sbin/exim -bm
Help the (newbie) meathead! :)
root.veg
07-30-2003, 05:22 AM
I'm not at my Debian box, but I believe Debian uses a fairly sensible system so that if you just call sendmail, it will automagically start exim. Can't quite remember if Debian does it by symlinks, shell aliases or whether it's a built in function of exim.
The exim man page I'm sure has a section on how exim behaves slightly differently according to whether you call "sendmail" or "qmail" for instance. Check that out first - I'll have a quick look when I get home...
Have you tried just using the sendmail command anyway? What distro are you using? - it may not be as sensible as Debian :)
Dr. Shim
07-30-2003, 05:35 AM
Debian "Woody" is my dist. I've tried using the php.ini default setting of "sendmail -t -i", but it didn't quite seem to work. I'll try it again anyway, since i found two sendmail binary files in /usr/lib/ and /usr/sbin/, so I'll give both a try.
If that doesn't work, I'll try fiddling with exim's settings s'more.
root.veg
07-30-2003, 05:52 AM
I'm using Woody too... I'm surprised it doesn't just work out of the box. For instance, if I remember correctly, my mutt is configured by default to use "sendmail", but Debian has it set up to use exim automagically.
Another idea: check you don't have sendmail *and* exim installed at the same time, just to avoid confusion. But then Debian does that by default anyway...
Dr. Shim
07-30-2003, 09:31 AM
Debian by default has both sendmail and exim? I think I removed Sendmail, maybe I shoudl reinstall it?
btw apt is kewl.
[edit] I must mention that i have two sendmail executables (not scripts). One in /usr/sbin and one in /usr/lib/. If you have Debian, could you see if you also have this?
apt (which is kewl), says that I do not have sendmail installed, I believe that I have removed it, but can't remember. :confused:
did I mention that apt is kewl?