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("[EMAIL PROTECTED]", "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=<[EMAIL PROTECTED]>, [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
- Re: [PHP-INSTALL] mail() sendmail problems Elijah A . Chancey
- Re: [PHP-INSTALL] mail() sendmail problems Chris Hewitt
- Re: [PHP-INSTALL] mail() sendmail problems Chris Hewitt
- Re: [PHP-INSTALL] mail() sendmail problems Chris Hewitt