Re: how to use sendmail as a client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx

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@xxxxxxxxx

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------


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux