LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-25-2012, 11:59 PM   #1
yashvanth
LQ Newbie
 
Registered: Mar 2012
Posts: 23

Rep: Reputation: Disabled
Post 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.
 
Old 03-26-2012, 12:41 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 03-26-2012, 12:46 AM   #3
yashvanth
LQ Newbie
 
Registered: Mar 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Post 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 ?
 
Old 03-26-2012, 12:54 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 03-26-2012, 12:59 AM   #5
yashvanth
LQ Newbie
 
Registered: Mar 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Post 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.
 
Old 03-26-2012, 01:17 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 03-26-2012, 01:21 AM   #7
yashvanth
LQ Newbie
 
Registered: Mar 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Smile 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Email notification (new email) for Screen status bar? Xeratul Linux - General 1 03-16-2012 05:26 PM
Nagios - email notification - How to receive alert email? kumaran1983 Linux - Newbie 4 10-20-2011 06:12 AM
New Email Notification lapthorn Linux - Software 0 02-04-2004 09:44 AM
Email notification jeremy LQ Suggestions & Feedback 6 11-07-2002 01:16 PM
email notification elainepearl Linux - General 1 01-14-2002 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration