Check that backup MX actually does its job


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Check that backup MX actually does its job
# 1  
Old 10-17-2008
Check that backup MX actually does its job

Hey!

I have just configured an backup MX using Mail::Toaster under FreeBSD.
As I'm a novice when it comes to mailservers, I need to ask someone how to check that this backup really does its job.

My primare MX is unfortunately on a Dynamic IP line, but its unsusual for it to change the IP.
So far it has hapend i think 4 or 5 times in a 3 year period.
Allthough, the server will soon be moved and there will be at least a few IP changes, and maybe even some other problems. Hence the backup MX (Either way, having it is good in the future).

But how can I check it? Do I just have to shut down the primary MX for lets say 10 minutes? And if everything works, the mail should be in the queue on the backup machine, waiting to be sent over to the primary machine?

Last edited by noratx; 10-17-2008 at 11:30 AM..
# 2  
Old 10-17-2008
That would be a good way to do it.
You are then testing a real world scenario.
# 3  
Old 10-17-2008
Ok...
I don't know if you are familiar with mail::toaster.. but, the suite has a script that is setup to do some checks and send a mail to the postmaster account every 5 minutes...
I just made an "qmail queue" and found this:

backup# qmail queue
messages in queue: 277
messages in queue but not yet preprocessed: 275
17 Oct 2008 09:25:03 GMT #547616 1960 <#@[]>
16 Oct 2008 18:31:39 GMT #547601 1163 <>

Do you know what I can do to find out why the mails is staying in the queue? I don't find much in the logs.. =(
# 4  
Old 10-17-2008
Hmm... I was just starting to think...
As Mail::Toaster is a whole suite, containging both POP3/IMAP and qmail...
Wouldn't I only be needing qmail to be able to use my server as a backup MX?
Other things like courier, vpopmail and so on, is not at all needed as all the maching would do is to relay them untill the primary server is up and running again?

Or am i wrong?
# 5  
Old 10-18-2008
I could not tell you. I was just responding to the original question on how to test MX records.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

CRON JOB not running - for tape backup from root user

I am trying a cron on root user to backup to tape using TAR command here is the cron entry 11 08 * * 6 /erdhot1cron 2>&1 >> /test3/scripts/dba/erdhot1cron.log here is script inside - edhot1cron #!/bin/bash vsysdt=`date +%d%m%y` date tar -cvf /dev/st0... (4 Replies)
Discussion started by: vijaymec50
4 Replies

2. Shell Programming and Scripting

To refire a backup job using shell scripting..........

how to write a code using shell scripting to refire a back up job if it fails with an error code of 196? (7 Replies)
Discussion started by: Pawan Ramnani
7 Replies

3. Programming

Refire a backup job.

how to code script using shell scripting to refire a backup job if it fails with an error code of 196? (1 Reply)
Discussion started by: Pawan Ramnani
1 Replies

4. UNIX for Advanced & Expert Users

Check the status of job

Hi, I have master job which will run based on the sub jobs status. In the master job I am giving the condition like, condition: s(sub_job) f(sub_job) This scenario will work if the sub job status is success or failed. but I want to run my master job even if the sub_job was... (1 Reply)
Discussion started by: Kattoor
1 Replies

5. Shell Programming and Scripting

check mail backup cron job

i have just installed a cron job to run at 3 in the morning once a week. It's difficult for me to test if it works because the email backup program takes the email service down before running the backup. I wondered if i could ask you gurus if this would work? 0 3 * * 0 ... (1 Reply)
Discussion started by: timgolding
1 Replies

6. UNIX for Dummies Questions & Answers

To check, a table is used in a job

Hi, I have a list of jobs scheduled in unix. I want to check whether a particular view or table is used in a job. If they are not used, I can make changes to them. Thanks, Raaga (2 Replies)
Discussion started by: Raaga
2 Replies

7. UNIX for Dummies Questions & Answers

Showing a daily backup job from a unique log file.

Hi guys, I´m a newbie in Linux, but I´m trying to solve some problems studying on my own, but I´ve had some problems with AWK. Look, I have one single backup log file per server and I want to make a daily delection from the last backup job to show in a intranet of my work. The log files are from... (0 Replies)
Discussion started by: metalfreakbr
0 Replies

8. UNIX for Dummies Questions & Answers

Check backup file size on backup tape

Hi, I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies

9. Shell Programming and Scripting

Backup with shell program and cron job.

Hi, The object of my program is to take automatic backup on daily basis to different folders. I have created the respective folders. when I execute below given shell program manually it is working perfectly and taking the backup to respective folder. #!/bin/sh #script to take backup on... (1 Reply)
Discussion started by: jarkvarma
1 Replies

10. UNIX for Dummies Questions & Answers

backup job help

I have a backup program on my unix box. I run it manualy and normaly start it from the terminal. But i would like to be able to start it up threw a telnet session. I was told that i had to leave teh telnet setion open untel the backup was complete, cuase if i closed the telnet the process would... (1 Reply)
Discussion started by: Thump
1 Replies
Login or Register to Ask a Question