[Ilugc] Re: Need help in sendmail

  • From: tuxkumar@xxxxxxxxx (Saravana Kumar)
  • Date: Mon Nov 1 19:31:10 2004

jayaraj deenadayalan wrote:

Hi,
i wrote an script to generate an report about the disk usage,memory
usage and processor status of a system and i planned to automate this
process. so i scheduled in cronjob so that it can run every morning.
now what i am trying to do is, i want all those reports to be mailed
to my email id.
i used "mail" command to send a mail and it works fine.but the thing
is only if i start the sendmail service (opening the port 25) i am
able to get the mails from root.
i want to know is there any possibilities to get the mails from root
without starting the sendmail service (i mean without opening the port
25).i think client doesn't require port 25 to be opened. whether port
25 need to be open in client machine?
Can anyone give me the solution for the above scenario.
Thanks in advance!
Here i assume all ur logs come to "root"
In the root's home create a file ".forward" which will
have the ids you want the mails(logs) to go.
Any send to "root" will be forwarded to the mailid's.

You have to start sendmail, but its enough if you configure it
to listen for lo(alone), which will be the default(in redhat/fedora).

Do revert back if that was helpful.

HTH,
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.             --- Linus Torvalds
--
SK

Other related posts: