Server :: Implement Email Alerts On Backup Scripts
Apr 28, 2011
I have recently been asked by my boss to implement Email alerts on some Backup scripts to be sent to me and another person. I edited one of the Backup scripts on a mail server and they appear to be working without problems (i.e., the backup job runs successfully and I get told so via E-Mail). However, when I implemented this script onto another, non-mail server, it would not send E-Mail confirmations. The only server that is allowed to send Emails to the outside world is the mail server, so I did not expect the script to work without any fine-tuning.
However, I thought I could direct the non-mail server to send an E-Mail through the mail server. I just can't find out how to do it. The servers are running Ubuntu 9.04 64bit. The mail server is using postfix and dovecot for email, and is also the DNS server for that particular network section. The non-mail server should be installed with the default server install (exim4). If possible, I do not want to install any new programs on either server. How to get the non-mail server to use the mail server to send out E-Mails?
I recently setup a server running subversion. It is working well and all, but I am curious as to how to make it send out email alerts to my team when a commit occurs.Also, are their any good GUI tools to manage a subversion server in Ubuntu. The command line is fine since I made some scripts but a nice GUI would be great! Maybe that could be a fun project to work on.
I have ubuntu 9.10 and i have mailx and smtp installed and getting them running so I can get this script to send email alerts. I been trying to get smtp running with my isp stmp server but I been having problems with it. getting this running with a stmp server. and if a good stmp server for sending mail let me know what it is. I have heard of postfix and I like to know if I should use it instead of smtp.
I'm trying to set up a tool that emails me periodically (in my case, psad). It allows by default to define just a destination email for reports. Is there a general way to get this or similar tools to use a non-default SMTP server, with TLS? (e.g. gmail's SMTP)
I'm about to start trying to write a script to backup / with just something like tar, or dd, split into 24mb files and email to myself.What could possibly go wrong? I'm amazed I couldn't find anything in my searches on this specifically.What I want is to go from a Gentoo rescue CD to a restored system as easily as possible.I tried rsync over gmailfs but that just froze. I can't really see that working too well anyway.
A question that I've asked myself (and google) many times but never got to an answer.Scenario:ServerA) postfix Primary MXServerB) postfix Backup MXAccording to the rfc a source mailserver can decide where to send email e.g.send an email to backup even is primary is reachable up and running.So my questions are: 1) how do I (live I mean) replicate messages arrived on any server to the other?2) How do I synchronise sent messages, message deletion, folder creation/deletion.Imapsync goes half way towards the solution but it needs to be run manually one off and you must specify source and destination.All I wanted really is a user to be able to use either server without having to worry about primary/secondary or what so ever.
After I spent some time discovering The BIG BANG of Universe and The Meaning of Life :
I managed somehow to create a script to make some backup of files on server and TAR it and then FTP the archive to another location FTP server and then emails result.
It also measures time needed to complete it and deletes archive older than XX days (set in find -mtime +20) and makes incremental backup every weekday and FULL on Sundays (which suits me bcoz no heavy load).
Files for TAR to include and exclude are in txt files listed each line separate name:
i am beginner to Linux, i have svn server installed in redhat 5 till now every thing is working fine now i need help from all of you to set up svn backup with email authentication. i need conformation of when it is backup and is the backup don perfect or not. can anyone give me guidelines how to setup (Step by step)
I have a server Linux/Centos 5.3 who I have formed it like server of data with samba for a network with 5 Windows XP terminals; desire to know if it is also possible to form this equipment like server anti-virus multiplatform so that it can look for virus (and clean) to the terminals win xp.
I was looking for by the network on this subject, but I have not had favorable results, please if somebody could help with some Link or tutorial me that has found.
just set up a windows server and other windows boxes send alerts to it no problem.Yesterday I configured my linux box (RHEL 5) using /etc/sysconfig/syslog and /etc/syslog.conf so that all alerts would go to the syslog server.There are no external firewalls involved and while the firewall is working on my linux boxI have made sure port 514 TCP/UDP are let through.Ive checked syslogd and klogd are running.I've also applied the '*@10.20.30.40' line in etc/syslog.conf. Basically Id like everything to go to the syslog server.Now if I telnet to the syslog server on port 514 I can type text on the linux box and it comes through on the syslog server. Great - but no syslog alerts seem to come through normally, even when I reboot the box.I've tried *., .*, and * to no avail, ive got an entry in my hosts file for the server 10.20.30.40 and tried using a name instead of an ip address, no luck.
Debian 5, apache 2.2 I've got Apache up and hosting multiple sites. Each site will have a php contact me page that will simply dump an email to a fixed address. What program should i be using to accomplish this? I've used nullmailer before but that assumes you have a fixed smarthost somewhere which I don't.
I recently reinstalled my computer with new hard drives and Ubuntu 10.10 (AMD64). Before the switch I used the 'Backup' function in Evolution to backup all my email and email settings -- I thought! The backup file was big (300 MB) so I didn't double-check how big it should have been.
After the reinstall I restored the backup and Evolution seemed to be working fine, i.e., I could see all the new email in my IMAP mailbox. Also, my local Contacts were all there, as expected. But eventually I tried locating an old email which I had saved to a sub-folder under the 'Local' Inbox and realized that there was nothing there! Fortunately I still had my old hard-drive and so I was able to recover the additional 400 MB of old emails. Shouldn't the 'Backup' function include the entire Evolution profile including any/all 'Local' settings?
Is there a way of allowing only certain domain to send e-mails to certain specific e-mail address. I am using Sendmail, and I have an alias which translate to certain members of staff within my organization. I don't expect e-mails from outside our domain to be sent to this alias e-mail address.
I have recently setup a new mail server and have simulated sending and receiving on the new email server. The new email server will replace the primary one.I would like to setup the new email server in parallel with the existing one.This way i can observe issues that might occur and be aware of what could go wrong. I want to received mail to be delivered to both mail servers at the same time.I would like to use postfix, exim i find a bit to difficult to understand.I have thought of using transport maps, the only problem is that you can only forward mail to one server at a time using transport maps.I think recipient_bcc_maps and sender_bcc_maps could work, i would just like ideas of how i can do this.
I come from more of a programming background but have been giving the task of sending backup results from a linux box in an email to external email addresses, I have spent days looking trough google for info but cant seem to find anything simple, I have looked at postfix but because I don't understand networks, hosts, nameservers etc. What I need to do to allow mail get sent from the linux box to external mail address. I have outlook connected to an exchange server on windows and I can ping the linux box from my windows command so surely it cant be to much involved.
I have s script that standard users use to back up usb drives to lto4 tapes.it asks for a JobNumber and sends an email upon success.I recently expanded it to use Multiple tapes.my specific Q is if the system reaches the end of the tape it happily mentions in the terminal that one needs to put in a second tape.what i would like to do is send an email that --It needs a second tape.( it presently sends an email upon successful compleation - so you see the only way a person knows that they need a second tape is if they
1-- know that the drive they are backing up is < 800GB (lto4) 2-- they do not get a completion emails and the think to walk to the basement and see the request for a second tape. I wish for an email that would tap them on the shoulder that : " you need to put in a second tape "so -- if i know the exact syntax that shows in the terminal - which is:Prepare volume #2 for `/dev/st0' and hit return:then can i test for that somehow?