The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how long it take for mail to be deliver back from backup?

Discussion in 'E-mail Discussions' started by gundamz, Aug 22, 2005.

  1. gundamz

    gundamz Well-Known Member

    Joined:
    Mar 27, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hi all,

    I had a 2nd server use for backup for email if main server went down.. May i know how long does it take for the mail to be deliver back to main server?

    What interval will mail queue on the server?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It will be processed in accordance to the queue processing configuration that you have configured. For exim on cPanel, the default queue run interval is every 60 minutes, but that starts to vary after time depending on your settings for retry intervals at the bottom of /etc/exim.conf
     
  3. gundamz

    gundamz Well-Known Member

    Joined:
    Mar 27, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hi jon,

    Thanks for the info.
     
  4. gundamz

    gundamz Well-Known Member

    Joined:
    Mar 27, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hi Jon,

    Hmm...it's over 2 days. The mail is still queue in the backup server.

    i had to click on "deliver now" , then the mail is send to the mail server.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Do you have a high load average on the backup server? Remember that when if the load average on the server is at 3 or above then exim, by the cPanel default configuration, will skip queue processing.

    1. Make sure that your queuing settings are set to the normal defaults, i.e.:

    WHM > Tweak Settings > Number of minutes between mail server queue runs > 60
    WHM > Exim Configuration Editor > Advanced Mode > the last textbox is empty

    2. Try increasing the queue load suspension setting by adding the following in the first textbox of the advanced mode exim configuration editor:

    deliver_queue_load_max = 6
     
  6. gundamz

    gundamz Well-Known Member

    Joined:
    Mar 27, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hi Jon,

    I make some changes.

    I change Number of minutes between mail server queue runs from "60" to "10"

    deliver_queue_load_max from "3" to "10"

    restarted exim.

    after 1 hour.. the email is still queue on the backup server
     
  7. gundamz

    gundamz Well-Known Member

    Joined:
    Mar 27, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    i see /var/log/exim_mainlog

    it say the message is frozen..

    what does this mean?
     
  8. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    when a message can neither be delivered to its recipients
    nor returned to its sender, the message is marked ‘frozen’ on the spool, and no more deliveries are attempted.

    enter the following lines in the very first text box in advanced exim configuration editor :

    timeout_frozen_after = 2d
    ignore_bounce_errors_after = 12h
    auto_thaw = 3h

    The auto_thaw variable will cause all the frozen messages to be delivered after 3Hrs, save the changes and wait..if your in hurry set this value to a lower value but it will cause high load if your mail server is busy one.
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The only other issue I can think of other than the advice that nickb provides, is if the backup server is continuing to have problems accessing the main server. One thing that can cause this is if you have noth NS records for the domains pointing to the server that goes down. If this is the case, you will always have problems, as you should never ever have the only nameservers for domains on a single server (i.e. they must always be on separate servers, preferrably in different datacentres with different network providers). If you already have that, then it's more than somewhat odd.
     
  10. fred123123

    fred123123 Well-Known Member

    Joined:
    Jul 23, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    :) reminds me when i moved a vps content from one to another...

    I didn't removed the dns zone from the first one... and i was using him as backup mx :)
    This isn't a good mix... All the mail was tried to be delivered locally ...

    i had a lot of fun when i looked at my backup mx logs and noticed the stupid thing i did :)
     
Loading...

Share This Page