I know this has been asked before, but all of the responses give fixes that don't seem to work for me, or are related to routing through Windows servers, or are just to difficult to understand for a newbie like me :-)
I have been using Linux for a couple of weeks now, and am basically setting up a LAMP platform. So far, although it has taken me a while to get here, I have managed to get most things working. I am using Linux Mandrake 10. I have installed "Apache-AdvancedExtranetServer/2.0.48 (Mandrake Linux/5mdk)" (or so it says), PHP 4.3.4, MySQL (not sure what version, how do I check?), and phpMyAdmin etc.
Everything seems to be working now except the mail() command in PHP. Whenever I try to send mail, the function just returns False, and the mail isn't sent. I have looked at the various other posts concerning this, but still can't get it to work.
FYI, I am connected via a LAN to another computer which has a direct connection (ADSL) to the Internet. My Internet is working fine, and so is the Evolution mailer (although I am using IMAP so don't know about POP/SMTP). I have run ps x to see what is running (as suggested elsewhere), and can't see anything about sendmail or postfix in there. I have taken a look at PHP configuration using phpinfo(), and here is what I have found concerning mail:
sendmail_from firstname.lastname@example.org email@example.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
In case these details help anyone, this is what Apache spits out if I force it to do a 403 error:
Apache-AdvancedExtranetServer/2.0.48 (Mandrake Linux/5mdk) mod_perl/1.99_11 Perl/v5.8.3 mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.4 Server at video.arknet Port 80
Oh btw, I just now (halfway through writing this) tried:
/usr/sbin/sendmail -t -i
In the console. It started sendmail and the PHP mail() function no longer returned False, however, the mail is still not coming through. I have tried sending to numerous addresses, and none have arrived, so I am guessing it is sending and not receiving that is the problem. Now I have two problems:
1. How do I get the emails to ACTUALLY send instead of just saying they are sent? and...
2. How do I make sendmail always start instead of having to do it manually?
Any help would be greatly appreciated. Just ask for any additional info you might need. Please also remember that I am REALLY new so 'check the log files' doesn't make sense to me :-) How about...go to directory X and open log Y....look for a line that looks like Z...that would be great thanks.