Will my mail-filtering server hold fowards until my exchange server is back up?

Posted on 2006-03-29
Last Modified: 2013-12-16
I just started at a company and I am doing more net admin stuff than programming (which is what I was hired for).  We have a mail filtering server(remote) running SendMail, ProcMail and Spamassassin.  This server filters the mail and then forwards it to an exchange server(local).  

The exchange server needs to be physically moved this weekend.  I was wondering if I can setup the mail filtering server to hold all the fowards until the exchange server is back up.  

Is this default behavior?

If not, how can I do this?

You don't have to give me every detail just tell what I have to do.
Question by:turtletimer
    LVL 22

    Accepted Solution


    All the mail that sendmail gets is 'dumped' in a queue. By altering either the queue processing time -q option (to only process the queue say every week, and ensuring that the number of retries is greater than 2), then you can guarantee that all the mail received is queued.

    Basically restart the sendmail daemon before you start the move with the new queue timings, carry out the move, and then restart the sendmail daemon with the default settings again.

    LVL 22

    Expert Comment

    In fact, most servers are by default configured to hold the mail and put it back in the queue for resending for a maximum time. This is normally configured in the startup script /etc/init.d/sendmail and you'll possibly find that it's already set the q option such that it'll hold the message in the queue for up to 8 hours, or possibly which case, if the move is going to be fairly quick (less than the appropriate time period), then you'll need to do nothing:)


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now