×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

using sendmail through apache2

using sendmail through apache2

using sendmail through apache2

(OP)
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=wwwrun, size=212, class=0, nrcpts=0, msgid=<200906040138.n541cBsg007718@luke.steadydipp in>, relay=wwwrun@localhost

clearly the relay=wwwrun@localhost 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 wwwrun@localhost 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.

RE: using sendmail through apache2

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close