configure as a secondary mail server
Hi to all,
I looking for in ISPCONFIG if I can configure one domain as a secondary mail server.
One domain has his own mail server and I want to add a second MX register that points to my ISPCONFIG box.
If the first mail server goes down my ISPCONFIG has to recieve all the emails and return to the first mail server when it comes up.
Some thanks in advance
Sorry for my english,
You can create a secondary MX record for your domain pointing to the ISPConfig system. In ISPConfig you create a new site for that domain and the appropriate users (or a catch-all account).
@xma: take a look at this link. It's the standard postfix configuration-documentation. It states how to set up a secondary mailserver, and it looks easy enough. I'm not entirely sure which postfix you need to edit, since I believe ISPConfig installs its own postfix, but I would assume you need to edit the files in the ispconfig subfolders. Please correct me if I'm wrong.
Example taken from above link:
When your system is SECONDARY MX host for a remote site this is all you need:
2 the.backed-up.domain.tld IN MX 100 your.machine.tld.
5 relay_domains = . . . the.backed-up.domain.tld
6 smtpd_recipient_restrictions =
7 permit_mynetworks reject_unauth_destination
9 # You must specify your NAT/proxy external address.
10 #proxy_interfaces = 220.127.116.11
12 relay_recipient_maps = hash:/etc/postfix/relay_recipients
15 firstname.lastname@example.org x
16 email@example.com x
17 . . .
When your system is PRIMARY MX host for a remote site you need the above, plus:
19 transport_maps = hash:/etc/postfix/transport
22 the.backed-up.domain.tld relay:[their.mail.host.tld]
* Do not list the.backed-up.domain.tld in mydestination.
* Do not list the.backed-up.domain.tld in virtual_alias_domains.
* Do not list the.backed-up.domain.tld in virtual_mailbox_domains.
Edit reason: added example from postfix.org site.
Some thanks to all,
Tomorrow I will try with your comments,
domain.com. 7200 IN MX 0 mail.domain.com.
domain.com. 7200 IN MX 5 backup.domain.com.
The backup.domain.com will keep the mail until mail.domain.com is back online, then pushes all mails back to the mail.domain.com and everything is done. People cannot receive mail from backup.domain.com..... or I'm misunderstand the MX record features....
So it cannot be done with ISPConfig, but it can be done configuring you DNS settings.
Edit: Hmmz, this is an old post.... noticed too late... sorry!
Jeroen, you say that configuring DNS settings you can do a mail server backup?
As I know, you have to point a seconday dns entry to a mailserver backup, and configure this mail server to take the mails, and relay to primary MX server, isn't it?
When primary server goes down, secondary mail server catch all mail and stores until the first mail server goes on...
So the secondary mail server (in my case ispconfig) would be configured to take mail...
|All times are GMT +2. The time now is 13:13.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.