On April 27, 2004 08:20 pm, Shawn Grover wrote: > If you didn't un-emerge the ssmtp first, then you will have two mail > systems competing for the necessary port(s).
ssmtp doesnt appear to be doing anything. At least not by ps -e. > > I personally would use Postfix or qmail instead of sendmail - the > configuration is easier to do and understand, and both are drop in > replacements for sendmail. > Was going to look at Qmail but I think this is more my lack of knowledge than anything else. > Have you checked your logs? You will likely see errors in either the > Apache / PHP logs, or in your mail logs (most likely). These errors should > point you in the right diretion for resolving the problem. > Apr 27 15:35:43 herman sendmail[15173]: My unqualified host name (herman) unknown; sleeping for retry Apr 27 15:36:43 herman sendmail[15173]: unable to qualify my own domain name (herman) -- using short name Apr 27 15:36:43 herman sendmail[15173]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission denied herman points to 127.0.0.1 in hosts.conf. > HTH > > Shawn > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Nick W > Sent: Tuesday, April 27, 2004 8:13 AM > To: CLUG General > Subject: [clug-talk] Sendmail & PHP > > > I'm having problems with the mail() function in PHP. I don't think its my > code causing the issue. I tried running it and it quickly returned a > failure. Then I RTFM and realised I needed sendmail installed. Thats where > my fun began. Sendmail was blocked (we're talking emerge here) by the > virtual MTA package. So I killed that from the sendmail ebuild rather than > unmerging ssmtp. Got sendmail installed, and put the path in php.ini (with > the reccomended switches), then restarted apache2. > > Now instead of returning an immediate failure it sits there for like 20 > seconds then fails but the mail() function never says why, just 1 or 0. > Anyone with insight? Im a sendmail n00b in every sense of the term. > > Thanks. -- Nick W ([EMAIL PROTECTED]) Registered Linux User #324288 (http://counter.li.org) MSN Messenger: [EMAIL PROTECTED] Yahoo: foolish_gambit ICQ: 303276221 _______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

