Women in Technology

Hear us Roar



Article:
  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 127.0.0.1 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=<200210090251.g992pCCS000512@g4.g4.com>, relay=localhost
Oct 8 19:51:13 G4 sendmail[514]: g992pCCS000512: to=myemail@mail.com, ctladdr=www (70/70), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30068, relay=mail.pacbell.net. [64.164.98.12], 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; myemail@pacbell.net
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 553 5.1.8 <www@g4.domain.com>... Domain of sender address www@g4.domain.com 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