Hi everyone, good to be here. This is my first post. Im having problems sending mail with sendmail.

I am building a website in php that needs to be able to send email to external users.

I am using apache2 as my webserver and sendmail as my email server.

I understand SuSE doesnt have a sendmail.mc file. The /etc/sendmail.cf file is generated automaticaly from configuration files in /etc/sysconfig/sendmail and /etc/sysconfig/mail. I have edited these files to include a smart-host and I have successfuly sent email from the command line.

the following is the output from the /var/log/mail log when i send mail from the command
line...

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.