Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using sendmail through apache2

Status
Not open for further replies.

shuks

IS-IT--Management
Jun 5, 2009
1
CA
Jun 3 18:35:11 luke sendmail[7697]: n541Z21j007697: to=james.luke318@gmail.com, ctladdr=james (1000/100), delay=00:00:09, xdelay=00:00:04, mailer=relay, pri=30006, relay=shawmail.vc.shawcable [64.59.128.135], dsn=2.0.0, stat=Sent (ok: Message 69473869 accepted)

everything works fine. I checked my gmail account and the message is there. The problem I have is when I try to send mail from my website it doesnt work. The following is the log message when I try to send mail from my webpage...

Jun 3 18:38:11 luke sendmail[7718]: n541cBsg007718: from= size=212, class=0, nrcpts=0, msgid=<200906040138.n541cBsg007718@luke.steadydipp in>, relay=
clearly the relay= is wrong and no email is sent. The PHP code to send the mail is correct, there must something wrong with my sendmail configuration. Can someone tell me why mail is getting realayed to instead of my ISP mail server? maybe I have to edit something in the (local-host-names) or (relay-domains) file??

any help would be greatly appreciated. Thanks.
 
do you have a smarthost (DS) defined in your sendmail.cf file?

If you can send email via sendmail, then it looks like there might well be a problem with your PHP scripts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top