Configuring sendmail on Jaguar
Subject:   Telnet Works but PHP and WebServer do not
Date:   2002-10-09 02:56:10
From:   anonymous2
Hello all,

I am able to send emails fine with sendmail by using telnet 25 (and then sending an email from the prompts). However when I use apache and a PHP script the mail never gets sent - even though mail.log shows that the email went through ok. Here's the mail.log:

Oct 8 19:51:12 G4 sendmail[512]: g992pCCS000512: from=www, size=157, class=0, nrcpts=1, msgid=<>, relay=localhost
Oct 8 19:51:13 G4 sendmail[514]: g992pCCS000512:, ctladdr=www (70/70), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30068, [], dsn=2.0.0, stat=Sent (Ok.)

I checked out the file /var/mail/www and this error appeared for each email I tried to send using PHP:

Final-Recipient: RFC822;
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 553 5.1.8 <>... Domain of sender address does not exist

In addition I have noticed then when sendmail first starts up it spits out this error in mail.log:

File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor

Any suggestions on how I can get sendmail to work with apache and PHP?

thanks in advance