PDA

View Full Version : [ubuntu] Easiest way to PHP mail()-capable mail server



kepardue
December 12th, 2008, 07:25 PM
I've been able to get most things up and running with 8.04LTS pretty well so far, but the only thing that I'm missing in my server configuration is PHP's mail function. I don't necessarily need a full blown mail server for each of the several domains that I have on the server, but I do need something for PHP's mail function to work.

What is the most drop-dead easy way of making PHP's mail() function work on a relatively vanilla 8.04LTS server box?

Thanks!

cdenley
December 12th, 2008, 08:06 PM
sudo apt-get install nullmailer

You also have other options, such as postfix, sendmail, or exim4.

lykwydchykyn
December 12th, 2008, 08:37 PM
I'll second the recommendation for nullmailer. Stay away from sendmail.
You also need to make sure your SMTP server allows relaying from the web server.

Dr Small
December 12th, 2008, 08:39 PM
You also need to make sure your SMTP server allows relaying from the web server.

Most do, unfortunately