phpBB problem with any call to PHP’s mail function

After fighting for a while to figure out why a phpBB installation (migrated to my new server) wouldn’t send out email notifications, and digging through non-existent logs, I have figured out the problem. When a new registration would come through, or when a user would get a new private message, no email notification would be sent out. In the phpBB error log (in ACP), the only error listed was:

E-mail error
ยป EMAIL/PHP/mail()
/forums/ucp.php

In order to troubleshoot whether it was a phpBB problem or PHP mail() problem, I used this little mailer script:

<?php
$to = “myemail@domain.com”;
$subject = “Test”;
$message = “Test of PHP mail function.”;
$from = “myemail2@domain.com”;
$headers = “From: $from”;
mail($to,$subject,$message,$headers);
echo “Mail Sent.”;
?>

Low and behold, that email failed. What was the problem in my case? Well, in my php.ini (for Apache, not CLI), the following was listed for sendmail:

/usr/sbin/sendmail

and that is the correct path for my Gentoo server. However, I needed to add the -t option to it:

/usr/sbin/sendmail -t

The -t option “Read[s] message for recipients. To:, Cc:, and Bcc: lines will be scanned for recipient addresses. The Bcc: line will be deleted before transmission.”

After that option was added, I restarted Apache and everything worked nicely.

Hope that helps anyone in the same situation.

Cheers,
Zach

New server

After a lot of prep work, my blog is now on my new Gentoo server. I have certainly learned a lot from this experience, and have a lot more to learn! Everything works just fine with regard to the blog, but I am still having trouble getting my mail server set up with postfix, and dovecot (using just flat passwd/shadow files for each virtual domain). I am done with that for the day, though, and will pick it up again tomorrow. If anyone feels like lending me a hand in the virtual mail server process, please let me know by commenting here or sending me a private message on the Gentoo fora (nathanzachary).

Cheers,
Zach

Problems with xorg-server-1.8.1 and xf86-video-intel-2.11.0

For the past day or so, I have been working on a clean Gentoo installation on my Samsung NC10 netbook. Things were going along quite nicely with the rebuild using the testing (~arch) branch, including the initial installation of X. However, when I issued the lovely startx command, I was continuously getting:

(EE) intel(0): No kernel modesetting driver detected.
(EE) Screen(s) found, but none have a usable configuration.

Even though KMS was clearly set in my kernel, as evidenced by the output of:

# cat /usr/src/linux/.config | grep KMS
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_I915_KMS=y

After fighting for several hours with different kernel configurations, rebuilding all X packages (xorg-server, mesa, video & input drivers), downgrading the Intel video drivers and xorg-server in various combinations, and even running env-update (for some unknown reason, but hey, I was desperate ;)), I decided to ask for some help. Josh (nightmorph) recommended that I run:

eselect opengl set xorg-x11

a couple times. I couldn’t see what this would do, as I had set opengl already, and xorg-x11 was the only option. However, after running it a couple times, logging out and back in again, my X server finally started without error! Thank you Josh, and everyone else who made suggestions. I hope that this post helps someone else with the same issue.

|:| Zach |:|