Bij het versturen van mail via de mail() functie van PHP wordt de mail gebounced met de error, unrouteable mail domain. Zoals te zien aan de error hieronder, ligt het waarschijnlijk aan het feit dat nobody geen mail mag sturen. Wat hier nog meer op wijst is het volgende:

giant# exim -bt info@sensson.net
info@sensson.net
router = lookuphost, transport = remote_smtp
host sensson.net [209.51.139.74] MX=0

Normaal mailen is ook wel mogelijk. Alleen PHP geeft een probleem.

Misschien dat ik iets vergeten ben in de config, maar de volgende dingen zijn uitgeschakeld:

- Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)
- SuExec

Het gaat hier om een FreeBSD 5.2.1 met cPanel (9.4.1-C72) server, die helemaal up-to-date is. We maken gebruik van PHP 4.3.8. De phpinfo() is te vinden op http://www.sensson.nl/php.php



Bounce message:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

info@sensson.net
unrouteable mail domain "sensson.net"

------ This is a copy of the message, including all the headers. ------

Return-path: <mail@sensson.com>
Received: from nobody by giant.rimote.nl with local (Exim 4.34; FreeBSD)
id 1BnHks-00081F-Pf; Wed, 21 Jul 2004 16:07:34 +0200
To: info@sensson.net