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.net [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.steadydippin.com>, 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.
PS: Im not sure if this helps but this is the output i get when I type (sendmail -d0.11) from the commandline…
Version 8.12.10
Compiled with: DNSMAP EGD LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER
MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT
OS Defines: ADDRCONFIG_IS_BROKEN HASFCHOWN HASFCHMOD
HASGETDTABLESIZE HASINITGROUPS HASLSTAT HASNICE HASRANDOM
HASRRESVPORT HASSETREGID HASSETREUID HASSETRLIMIT HASSETSID
HASSETVBUF HASURANDOMDEV HASSTRERROR HASUNAME HASUNSETENV
HASWAITPID IDENTPROTO IP_SRCROUTE NEEDSGETIPNODE
REQUIRES_DIR_FSYNC USE_DOUBLE_FORK USE_SIGLONGJMP USESETEUID
Kernel symbols: /boot/vmlinux
Conf file: /etc/mail/submit.cf (default for MSP)
Conf file: /etc/sendmail.cf (default for MTA)
Pid file: /var/run/sendmail.pid (default)
Canonical name: luke.steadydippin.com
a.k.a.: luke
UUCP nodename: luke
a.k.a.: luke
a.k.a.: [192.168.1.104]
Conf file: /etc/mail/submit.cf (selected)
Pid file: /var/spool/clientmqueue/sm-client.pid (selected)
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = luke
(canonical domain name) $j = luke.steadydippin.com
(subdomain name) $m = steadydippin.com
(node name) $k = luke
Recipient names must be specified