backup MX, correct way?

Discussion in 'Installation/Configuration' started by Rupert, Nov 9, 2010.

  1. Rupert

    Rupert New Member

    Hello,

    i would like to setup a Backup MX for my ispconfig enabled mailserver.
    Should I add the MX Server to my multiserver setup or should I keep it out of there?


    How Can I get the MX to recognize what domains are active on the main mailserver?


    still have more question...
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. Rupert

    Rupert New Member

    Hello,

    what im asking my sefl with this setup is, how does the bkacup mx knows which domains/mailboxes do exist on this server?
     
  4. Rupert

    Rupert New Member

    my idea is to have the DB from the main mailserver cloned to the Backup-MX,
    so the Backup-MX only accepts mails for users that have a mailbox?

    Would this be possible and how do I have to alter the paramters in postfix

    I did change these 2 parameters, is it ok to that?
    Code:
    relay_domains = mysql:/etc/postfix/mysql-virtual_domains.cf, $mydestination
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    
    The system now rejects all mail that dont habe a domain on that machine.
    I guess im missing the transport rule, still havent figured out how to do taht.
     
    Last edited: Nov 10, 2010
  5. falko

    falko Super Moderator Howtoforge Staff

    You can do that with MySQL replication: http://www.howtoforge.com/how-to-set-up-database-replication-in-mysql-on-ubuntu-9.10

    I think that could work, but I haven't tried it.
     
  6. Rupert

    Rupert New Member

    The ispconfig manuall states that when I clome a server all the data in den ispconfig Database is already replicated or did I understand something wrong?


    Im trying to get thes backup MX to work, without luck by now.
    I always get an relay denied for my users.
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Yes, if you install ISPConfig on the slave and install ISPConfig as a slave. I was thinking you were setting up the backup MX manually.

    I think Till can shed more light on this, but he's not available right now.
     
  8. Rupert

    Rupert New Member

    HI,

    i tried to do it manually but than i installed ispconfig, to get the configuration of the two system even.
     
  9. pma_

    pma_ New Member

    I have strange problem with backup mx
    I have ISPConfig 3 and followed "Setting Up Postfix As A Backup MX " tutorial but.
    Accoriding to tutorial I shouldn't have my domains in virtual_mailbox_domains but if I check database ob backup server I see all my domains in mail_domain table replicated by ispconfig.
    Second problem is that according to logs messages are delivered to dovecot and stored locally.
    Any idea?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    The tutorial you used is not compatible with ISPConfig 3, as ISPConfig uses a different approach for email mirroring that. Please undo the configuration from that tutorial.

    Then configure the /var/vmail directory so that it is synced between the servers. This can be done with a cluster filesystem like glusterfs or with unsion, rsync or drbd. See ispconfig mirroring tutorial for an example configuration.
     

Share This Page