how to use sendmail as a client

Reuben D. Budiardja techlist at voyager.phys.utk.edu
Thu Aug 26 12:27:08 UTC 2004


On Thursday 26 August 2004 06:47, Lito Lampitoc wrote:
> I want it to be automated, for example, logwatch or tripwire by default
> sends e-mail  to  root user in box1 whenever there is unusual activity,
> what I want is, these e-mails or reports redirected to my admin account
> in box2.  How? and shall I need a running sendmail daemon here?

The easies way, is to edit /etc/aliases on box1 and have the line:

root: youremailaddress at box2.com

then run (as root)
$> newaliases

that way all the email (ie. logwatch report, tripwire, etc) sent to the root 
on box1 will automatically be forwarded to youremailaddress at box2.com.

And yes, AFAIK sendmail service has to run for that to work. By default 
sendmail does not listen to the external interface (only local loopback). If 
you're still not convinced that's secure enough, use tcpwrapper to refused 
all connection to sendmail in /etc/host.deny, and/or block port 25 using 
firewall. 

RDB

-- 
Reuben D. Budiardja
Dept. Physics and Astronomy
University of Tennesse, Knoxville, TN

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/M/MU/P/S d-(++) s: a-- C++(+++) UL++++ P-- L+++>++++ E- W+++ 
N+ o? K- w--- !O M- V? !PS !PE Y PGP- t+ 5 X R- tv+ 
b++>+++ DI D(+) G e++>++++ h+(*) r++ y->++++
------END GEEK CODE BLOCK------





More information about the redhat-list mailing list