On Thu, Oct 14, 2010 at 08:47:28AM +0200, Giles Coochey wrote:
On 14/10/2010 08:44, Roland RoLaNd wrote:
Hi all, i'm following online guides to secure my centos 5.4 it's advised to turn off sendmail service among others. but how can i forward my /var/log/mail to my webmail ?
http://blog.zloether.com/2009/07/install-ssmtp-in-centos.html
The problem with ssmtp is that it only sends to an outside source. It's no longer maintained as far as I know, and I don't think there's a way to get it to just go local, without sending outside. (DISCLAIMER--haven't used it in a long while, and perhaps someone fixed that, or found out a way, but I remember on Fedora forums there was a thread about it, and I don't think anyone managed to get it to only send and deliver locally.)
http://blog.zloether.com/2009/07/send-email-from-linux-shell.html
This also, you will note, sends email through (in the example) through gmail, that is, going outside the machine.