HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   configure as a secondary mail server (http://www.howtoforge.com/forums/showthread.php?t=570)

xma 15th September 2005 10:18

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.

For example,
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,

falko 15th September 2005 11:07

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).

Quote:

Originally Posted by xma
return to the first mail server when it comes up

That cannot be done with ISPConfig. You may have to invent something yourself to achieve this...

farao 15th September 2005 17:09

@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.

http://www.postfix.org/STANDARD_CONF...ME.html#backup

Example taken from above link:
When your system is SECONDARY MX host for a remote site this is all you need:

1 DNS:
2 the.backed-up.domain.tld IN MX 100 your.machine.tld.
3
4 /etc/postfix/main.cf:
5 relay_domains = . . . the.backed-up.domain.tld
6 smtpd_recipient_restrictions =
7 permit_mynetworks reject_unauth_destination
8
9 # You must specify your NAT/proxy external address.
10 #proxy_interfaces = 1.2.3.4
11
12 relay_recipient_maps = hash:/etc/postfix/relay_recipients
13
14 /etc/postfix/relay_recipients:
15 user1@the.backed-up.domain.tld x
16 user2@the.backed-up.domain.tld x
17 . . .

When your system is PRIMARY MX host for a remote site you need the above, plus:

18 /etc/postfix/main.cf:
19 transport_maps = hash:/etc/postfix/transport
20
21 /etc/postfix/transport:
22 the.backed-up.domain.tld relay:[their.mail.host.tld]

Important notes:

* 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.

Best, Farao

Edit reason: added example from postfix.org site.

falko 15th September 2005 17:16

Quote:

Originally Posted by farao
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.

No, ISPConfig doesn't install it's own postfix, it relies on the postfix that's already on the system. The postfix files should then be under /etc/postfix/.

xma 15th September 2005 17:35

Some thanks to all,

Tomorrow I will try with your comments,

Jeroen 1st February 2006 20:45

Quote:

Originally Posted by falko
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).



That cannot be done with ISPConfig. You may have to invent something yourself to achieve this...

I thought when you had:

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.

Regards,

Jeroen.

Edit: Hmmz, this is an old post.... noticed too late... sorry!

xma 15th February 2006 13:46

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...

Some thanks,


All times are GMT +2. The time now is 13:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.