mail() sendmail problems

From: Date: Mon, 23 Feb 2004 15:19:48 +0000
Subject: mail() sendmail problems
Groups: php.install 
Request: Send a blank email to php-install+get-12838@lists.php.net to get a copy of this message
I'm having difficulty with the php mail() function. Freebsd 4.9, apache 2.0.48, php 4.3.4 Here is my code: <?php mail("sysadmin@netlinkip.com", "subject", "body"); ?> The problem: The mail is not being delivered to my address. PHP returns no errors. The webserver (fenchurch) does not run a mail relay. The nearest mail server is @ IP 216.111.143.7 (allows relaying from webserver). I have added the following line to the sendmail .mc file: FEATURE(msp', [216.111.143.7]')dnl I then ran 'make install' Solutions I've tried: Installing postfix, exim, qmail (with mailwrapper). They all give the same results. Since sendmail is the default, I've decided to scrap the other MTA's and make sendmail work. Sendmail permissions: ls -al /usr/sbin/sendmail lrwxr-xr-x 1 root wheel 24 Feb 20 12:34 /usr/sbin/sendmail -> /usr/local/sbin/sendmail ls -al /usr/local/sbin/sendmail -r-xr-sr-x 1 root smmsp 561922 Feb 20 12:32 /usr/local/sbin/sendmail Info from /var/log/maillog Feb 23 09:30:00 fenchurch sendmail[75790]: i1NEU0PO075790: from=root, size=500, class=0, nrcpts=1, msgid=<200402231430.i1NEU0PO075790@fenchurch.netlinkip.com>, relay=root@localhost Feb 23 09:30:00 fenchurch sendmail[75790]: i1NEU0PO075790: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30500, relay=[216.111.143.7] [216.111.143.7], dsn=2.0.0, stat=Sent (ok 1077547537 qp 14019) phpinfo() is available here: http://fenchurch.netlinkip.com/info.php If anyone has any ideas, please let me know! Elijah Chancey sysadmin@netlinkip.com

Attachment: [text/enriched]
« previous php.install (#12838) next »