Results 1 to 3 of 3

Thread: Divert mail to secondary mx during zimbra maintenance

  1. #1
    Join Date
    May 2010
    Rep Power

    Default Divert mail to secondary mx during zimbra maintenance

    I understand that if the primary mx is down mail is diverted to the secondary mx. However, if the primary mx is up and I still want to divert incoming email what do you do?

    I've tried the various domain status settings, e.g. maintenance and closed, but with maintenance mail is queued on the zimbra mta and with closed email is bounced to the sender, which is not ideal.


  2. #2
    Join Date
    May 2010
    Rep Power


    Quote Originally Posted by vanity3168 View Post
    Lets assume that we have two mail servers

    What we ultimately want is to accept, store ( and forward ) mail for when it goes down.

    On from within the administration console add the domain in question you are configuring. From console on run the following commands as user zimbra

    zmprov md zimbraMailCatchAllAddress
    zmprov md zimbraMailCatchAllForwardingAddress
    zmprov md zimbraMailTransport

    In DNS your primary mail server should have a lower weighting ( 1 in this example ) then your secondary (10) and should look something like this.

    [root@mailhost ~]# dig mx

    ; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.1 <<>> mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43716
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

    ; IN MX

    ;; ANSWER SECTION: 3600 IN MX 10 3600 IN MX 1

    ;; Query time: 104 msec
    ;; SERVER:
    ;; WHEN: Fri Jan 6 15:02:06 2012
    ;; MSG SIZE rcvd: 72
    Thanks, but I should've probably stated that the secondary email server is actually a hosted service, e.g. Dyn Backup MX. Therefore, I can't make the changes you suggested.

    I can easily block port 25 in the firewall where the primary email server is located and mail will divert to secondary.

    I was just curious what Zimbra admins do in the situation I outlined in my first post

  3. #3
    Join Date
    Dec 2010
    Rep Power


    Personally I don't use a secondary mx.

    All modern mail servers keep rejected mail in a queue and periodically attempt to redeliver before bouncing.

    As long as your Zimbra isn't offline for more than a few hours any mail sent to you should arrive after you put it online again.

Similar Threads

  1. Renewing certificate failed zimbra 6
    By buddhikeg in forum Administrators
    Replies: 30
    Last Post: 04-28-2012, 07:28 PM
  2. Replies: 12
    Last Post: 03-23-2011, 09:39 PM
  3. Issues after upgrading from 6.0.10 to 7
    By rhorist in forum Administrators
    Replies: 8
    Last Post: 02-25-2011, 07:38 AM
  4. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 11:44 AM
  5. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 02:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts