Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi i am very new to linux/unix kind of environment . i am using rhel and i am trying to take the backup of file system(some directory) with rsync tool.can anyone help me how to send the email notification whenever the backup of some directories are taken by both manual and automated process.
You can use simple redirection to send you a mail if your server is configured correctly. For example:
Code:
rsync --your-parameters | mail your_mail_address@domain.com
will send all output from rsync to your mail address if your server is configured correctly with regards to sending mails. If you want to script it, there are a lot of examples available on the internet.
thank you eric
is there any documentationm available for configuring the server/linux system to send the mails . as i am new to linux not able to do that work by the docs available on internet. can you provide any documentation which will help me to configure system to send the mails
also can we send the mails to gmail or yahoo domains ? form our linux system ?
There's a lot of documentation available on the internet, it all depends on what exactly you want to do. If you want to send mails to your GMail or Yahoo account then that might be a bit difficult. AFAIK both providers don't allow relaying emails from servers using a dynamic IP but you could try. Just search Google for: relay mail to GMail and see if one of the solutions work for you.
hi eric i will check about gamil notifications.
can you tell me the prerequisites for sending mails to same domain
smtp server is required ?
i am using rhel 5 version.
Yes -- an SMTP server. Usually exim, postfix or sendmail. postfix was designed to be an easier-to-use drop-in replacement for sendmail.
Google's SMTP service accepts mail on port 587 when the from address is the authenticating user. This is working regularly for us using the Googlemail service (as opposed to GMail). Gmail may be the same.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.