PHP, Mail and OSX Leopard

I have been trying to get my old apps to send emails, but for some wierd reason I couldnt get it working out of the fox. If you have had similar problems, you can try out this.
Step 1: Update the hostconfig file.
Add the following line to /etc/hostconfig
MAILSERVER=-YES-

Step 2: Update variable myhostname in the file /etc/postfix/main.cf
Set the variable to your hostname, you might need to uncomment the default value.

Step 3: Find your php.ini file and update the sendmail_path and make it
/your/path/sendmail -t -i

Now open another terminal window and do a tail on the log file to see if you have any further errors.
tail -f /var/log/mail.log

You can start the server by running the following command:

sudo postfix start

The above changes worked for me, however you might need to investigate this a little more if you still have trouble.

About rp

Architect for large, highly scalable LAMP applications and Technical Manager with special focus on metrics based continuous improvement of teams and products. Rajat has close to a decade of experience of a very wide range of skills related to infrastructure, middleware, app servers all the way to front-end technologies and software development methodologies including agile, iterative waterfall, waterfall as well as ah-hoc startup using the right approach in the right context to reduce time to market.