Thanks steve and Wiliarto,
Your advice so helpful, I'll try implement as your guide.

Regards,

Pkardono

-----Original Message-----
From: Steve Huff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 10:44 AM
To: [email protected]
Subject: Re: [qmailtoaster] Back UP MX


On Oct 8, 2005, at 9:16 AM, Pribadi Kardono wrote:

> Hi all,
>
> I am using my qmailtoaster mostly as mailing list server. My  
> question, is there anyway to have a back up mx that will continue  
> to send/distribute the emails to the list whenever the main server  
> down.
>
> Currently I have one primary mail server  and one backup mail  
> server with setting mx on DNS are 10 for the backup. But seems the  
> backup server never take over the primary to distribute the email  
> while the main down.
>
> Is there anyway that I have to setup to make it works? Your help  
> would be great full and appreciated.
that's not how backup MX typically works.  normally a backup MX  
*accepts* mail for the domain when the primary MX is down, then holds  
the mail until the primary MX comes back up, whereupon it forwards  
the mail on to the primary MX.  if you want the backup MX to send out  
the mail to the list recipients, then you need to duplicate the list  
configuration (i.e. create a mailing list on the backup MX, with the  
same addresses subscribed).  when someone subscribes or unsubscribes  
from the main list, you'll need some way to propagate the changes  
over to the backup MX.  off the top of my head i can't think of an  
easy way to do that.

if you want basic secondary MX setup, try something like the following.

changes you must make to the primary mail server:

1. you must tell your primary mail server (the qmailtoaster) to allow  
mail relayed from the backup MX.  to do this, edit /etc/tcprules.d/ 
tcp.smtp and add lines like this:

<ip address of your secondary MX>:allow

add one such line for each secondary MX; place them between the line  
that starts with "127." and the line that starts with ":allow".

then run "qmailctl cdb" to apply your changes.

changes you must make to the DNS zone:

for each backup MX, add a MX record with a larger priority number  
than your primary.

and finally, if you're administering the secondary mail server  
instead of using somebody else's service, you must configure it to  
accept mail for your domain(s), hold it for a reasonable length of  
time (two weeks, perhaps?), and deliver it to the primary MX.

-steve

---
If this were played upon a stage now, I could condemn it as an  
improbable fiction. - Fabian, Twelfth Night, III,v


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to