Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 21st April 2011, 15:29
Justin Albstmeijer Justin Albstmeijer is offline
Join Date: Dec 2007
Posts: 76
Thanks: 1
Thanked 6 Times in 6 Posts
Default ispconfig3: setup a secondary/fall-back mail server


What is the correct/intended way of configuring a secondary/fall-back mail server within ispconfig3?
Especially one that will also start bouncing on non existing accounts/domains and does spam/virus filtering before passing the mail to the primary mail server.

This because till now it seems to cripple the spam efficiency if this bouncing/filtering is only done by the primary mail server receiving the unfiltered mail from the secondary mail server.

Till now I did the following which works fine, but I wonder if there is a cleaner/better way of doing it.

Make the local mysql server on the secudary mail server a slave of the mysql server of the primary mail server. (using SSL, as the replication goes through the public network).
On the secondary mail server there is no need to run the ispconfig cron, as it is not known to ispconfig and there are no ispconfig triggered changes that need to take place on this server.

Make the postfix/spamassasin config on the secondary mail server equal to the primary except for some changes to the transport_maps and forward all accepted mail to the primary mail server on a different port which won't pass the mail again though a spam filter.

In the meantime I see I can also define a mirror server within ispconfig which will get all config changes for mysql too, so I won't need a mysql master/slave setup anymore.
But still I will need to hack the postfix config as mentioned above and will have an ispconfig cron running which will execute unneeded file system changes (like mailboxes) on the secondary mail server.

Maybe I'm missing an obvious way to configure the wanted primary/secondary mail server setup within ispconfig.

Thanks in advance for any suggestions or clarifications.

Reply With Quote
Sponsored Links
Old 21st April 2011, 15:57
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts

Please see here:


for mailserver mirroring, glusterfs is needed only for /var/vmail. Do not put mysql and /var/www on glusterfs for that setup and do not use mysql replication, as the config replication is done by ispconfig. You can run as many mirrors as you need to handle the load in that way.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 21st April 2011, 16:14
Justin Albstmeijer Justin Albstmeijer is offline
Join Date: Dec 2007
Posts: 76
Thanks: 1
Thanked 6 Times in 6 Posts

Thanks Till for your reply.

But that is not what I'm looking for.

I don't need a mail cluster.
Just the traditional primary/secondary mx setup.,

domain.ext MX 100 ispconfig_mx1.domain.ext
domain.ext MX 200 ispconfig_mx1.domain.ext

whereby the secondary also take it's part in filtering mail.

Reply With Quote


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
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 05:24
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 17:27
Why did Squirrelmail, Dovecot/IMAP & Outbound mail break? websissy Technical 4 29th October 2009 23:39
postfix, pop3 uvbnserved Server Operation 22 24th May 2009 22:00
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 10:50

All times are GMT +2. The time now is 00:55.

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