Re: how to use sendmail as a client

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

 



Greetings....

Can u please conformed this things.....!!!!!!
 
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

This tells sendmail to only look at the loopback device, and not the
network interface for incoming mail.  Change 127.0.0.1 to your eth0 ip
or comment it out by placing a dnl in front of it like this:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

There's also no problem in deleting it.  Anytime you edit sendmail.mc,
you have to build a new sendmail.cf.  This is done with the following
command:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Now you need to tell sendmail who the local domains and hosts are. 
Open /etc/mail/local-host-names and add the name of your localdomain. 
In the future this will be the registered domains that are hosted by
this server.  The next thing you need to do is to allow relaying for
this domain.  To do that, open /etc/mail/access and add a line that
looks like this:

mydomain.com     RELAY

You will see other lines aready there for localhost and 127.0.0.1 - do
NOT delete those lines.  Now you need to create the database:

makemap hash /etc/mail/access.db < /etc/mail/access





Now just restart sendmail and mail should start coming in.
On Thu, 26 Aug 2004 08:27:08 -0400, Reuben D. Budiardja
<techlist@xxxxxxxxxxxxxxxxxxxx> wrote:
> 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
> 


-- 
Vipul Ramani
linux2000in@xxxxxxxxx
linux2000in@xxxxxxxxx
~~~~~We Know HOW NetWorkS ~~~~~


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