Originally Posted by chifun
I am using FC3 with sendmail. I am using DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl. I can sent out email by smtp and receive email.
But in my server. All the CGI and PHP programs cannot sent out email.
All the programs running fine. Just don't know why cannot sent out email.
The sendmail path also is correct : /usr/sbin/sendmail
And in the accress: localhost , 127.0.0.1 is relay
Please kindly help how to fix this problem. Thx a lot.
THIS SETTING I APPLIED IN RHEL4 ON MY OWN SERVER.
1. vi etc/hosts (add the remote server ip address and its domain name in etc/hosts.
1. vi /etc/mail/sendmail.mc
2. find "dnl #define('SMART_HOST','smtp.example.net')"
3. replace this by your smtp server address. (ex.yahoomail.smtp.net)
4. run make -C /etc/mail
5. service sendmail restart
1. if you want to start on boot. type "chkconfig sendmail on"