Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am new to this. Have got a cloudserver running centos 5.4, Installed php, mysql and apache to run magento however emails are not going out.. Do I need to configure something more?

share|improve this question

1 Answer 1

PHP mail function depends only on two things:

  • PHP config (search for mail keyword in php.ini)
  • Sendmail

Mail transport is a different question and if you don't have any errors after your PHP script sends the email, you could check:

  • mailq, if queue is not empty, possibly there is firewall issue
  • tail /var/log/mail, log checking :-)
share|improve this answer
    
Hi, Thanks for your reply. I checked /var/log/maillog and its empty. php.ini under [mail function]: sendmail_path = /usr/sbin/sendmail -t -i but in /usr/sbin there is no sendmail, maybe I need to install this first? –  Silverphp Feb 25 '10 at 13:03
    
Yes. Or check the command 'whereis sendmail` in case if sendmail is installed in different place. –  Andrejs Cainikovs Feb 26 '10 at 11:14
    
You could also install something else. Other MTAs also offer sendmail compatible sendmail commands. –  Alexandre Jasmin Apr 12 '10 at 10:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.