Lightweight simple program that only sends local e-mail I am looking for a simple and lightweight application that will send e-mail generated by system messages, php, etc... to the outside world. The server will not recieve any mail of any kind. I host my e-mail on an exchange server and have no desire of any kind to have e-mail be recieved on the server. Does anyone know of a good application/guide/setup that will do what I want ?
The system SMTP set up should handle local mail from cron jobs, etc. Typically sendmail is used, but exim, etc. are all options. As far as a mail client to send with, the mail command could work. I like to use mailm
If you want to do this with PHP, use PHP's mail() function: http://de.php.net/manual/en/function.mail.php
I did a little bit more reading, and found that sSmtp is a good alternative, but it requires the use of a SMTP server elsewhere, I would really prefer that the server that I am sending the e-mail from, be able to send directly from it, without the use of another server.
I'd simply install Postfix. You can make it listen on localhost only (inet_interfaces = 127.0.0.1) so that noone can send any mails to the server.