Qmail and PHP

On the off chance this might help somebody, here's a solution for a problem with Qmail + PHP + FreeBSD. The issue was essentially that Qmail functioned perfectly in every capacity, except that PHP's mail() function was not able to deliver mail to remote servers.

That is, sending mail from mail clients was fine, receiving mail was fine, and mail could even be delivered locally from PHP. Just PHP to remote servers was broken.

There are a few solutions to be found by googling, but the problem in this case was that the /var/qmail/control/defaultdomain file was empty, so a remote server would reject the message. Even adding the From: header manually didn't solve the problem. I had to edit this file to see results.
Design Element
Qmail and PHP
Posted Sep 14, 2005 — 0 comments below




 

Comments Temporarily Disabled

I had to temporarily disable comments due to spam. I'll re-enable them soon.





Copyright © Scott Stevenson 2004-2015