Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th September 2005, 11:18
xma xma is offline
Junior Member
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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,
Reply With Quote
Sponsored Links
  #2  
Old 15th September 2005, 12:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

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...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th September 2005, 18:09
farao farao is offline
Member
 
Join Date: Sep 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

Last edited by farao; 15th September 2005 at 18:12.
Reply With Quote
  #4  
Old 15th September 2005, 18:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

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/.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th September 2005, 18:35
xma xma is offline
Junior Member
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Some thanks to all,

Tomorrow I will try with your comments,
Reply With Quote
  #6  
Old 1st February 2006, 21:45
Jeroen Jeroen is offline
Junior Member
 
Join Date: Jan 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!
Reply With Quote
  #7  
Old 15th February 2006, 14:46
xma xma is offline
Junior Member
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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,
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Setup - Debian Woody (3.0)... sending mail from my XP box? ExCIA HOWTO-Related Questions 17 27th June 2007 19:31
Using a subdomain as mail server roberto8080 Installation/Configuration 7 21st June 2006 02:50
Mail Configuration mphayesuk General 1 12th September 2005 14:16
Server can't "see" the internet Luciano Installation/Configuration 8 23rd August 2005 00:22
2 mail servers? thedude General 2 15th August 2005 17:34


All times are GMT +2. The time now is 08:03.


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