LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   email notification on backup process! (https://www.linuxquestions.org/questions/red-hat-31/email-notification-on-backup-process-936416/)

yashvanth 03-25-2012 11:59 PM

email notification on backup process!
 
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.

EricTRA 03-26-2012 12:41 AM

Hello,

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.

Kind regards,

Eric

yashvanth 03-26-2012 12:46 AM

thank you
 
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 ?

EricTRA 03-26-2012 12:54 AM

Hello,

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.

Kind regards,

Eric

yashvanth 03-26-2012 12:59 AM

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

catkin 03-26-2012 01:17 AM

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.

yashvanth 03-26-2012 01:21 AM

thanks
 
hi can you elaborate more on the google mails you are talking about ?

is it easier to send mails from linux system to gmail/google ids ?

as i am new to linux more details will be much helpful(documentations/links)!

thank you


All times are GMT -5. The time now is 03:24 PM.