Originally Posted by Roman
Initially couldn't send out mail through my website (php), because sendmail smtp settings default to 127.0.0.1. Thought I fixed that and was confident that sendmail works fine. Now I can send emails out using Evolution, but still can't send out emails through my website.
In sendmail.mc I changed
and did m4 /etc/mail/sendmail.mc > /etc/sendmail.cf after that.
Do I need to recompile PHP to make it work? If yes, are there any special things I need to add to --with options to make this work.
Was sendmail installed when you compiled PHP? If not, PHP's mail() function doesn't work, and you have to re-compile PHP.