Re: designing a backup mail server

2005-06-27 Thread Patrick Radtke
On Jun 24, 2005, at 2:09 AM, Shaun Feeley wrote:Hi Guys,I'm not sure if I'm at the right place so sorry if this is annoyingbut...I run a cyrus mail server here at Cytopia supporting about 35 users.  Ihave recently purchased some new boxes to upgrade the servers.  I amupgrading the Cyrus server, but I am also keen to run a mirror backupcyrus server.  Now my question is, can anyone give me any pointers onhow to go about designing a backup mail server.I would suggest using the 2.3 replication mechanism. I've been using it for 6-7 weeks in production with about 100 users.The basic idea is that a program(sync_client) runs on your main cyrus server and pushes any changes to the backup.I have configured one box as I want, then mirrored in onto another.  ButI am confused about the DNS setup .. should I create an alias ie mailthat can point to either??  We run our setup in a murder, so we just update the mailbox list on the frontends to point to the backup server in case of a failure.And secondly I am keen to somehow have the mail server polled and if itstops responding bring the backup server into play.  To keep themsyncronised I am planning to use rsync... but then how do I keep thesasl backend in sync, with different realms etc?Our failover step is manual. We think failures will be rare, and don't want to be concerned with an automatic mechanism mistakenly making the backup server active.-Patrick

designing a backup mail server

2005-06-24 Thread Shaun Feeley
Hi Guys,
I'm not sure if I'm at the right place so sorry if this is annoying
but...

I run a cyrus mail server here at Cytopia supporting about 35 users.  I
have recently purchased some new boxes to upgrade the servers.  I am
upgrading the Cyrus server, but I am also keen to run a mirror backup
cyrus server.  Now my question is, can anyone give me any pointers on
how to go about designing a backup mail server.

I have configured one box as I want, then mirrored in onto another.  But
I am confused about the DNS setup .. should I create an alias ie mail
that can point to either??  

And secondly I am keen to somehow have the mail server polled and if it
stops responding bring the backup server into play.  To keep them
syncronised I am planning to use rsync... but then how do I keep the
sasl backend in sync, with different realms etc?

Anyway as you might have gathered I am by no means on top of the problem
so any ideas will be greatly appreciated.  

Thanks Shaun



-- 
Shaun Feeley
Systems Administrator

CYTOPIA RESEARCH PTY LTD
A.C.N. 082 492 680
Level 5, Baker Heart Research Institute Building
Commercial Road
Melbourne Victoria 3004 Australia
Tel: +61 3 9522 6900
Fax: +61 3 9510 9292
Email: [EMAIL PROTECTED]
Website: www.cytopia.com.au


The information contained in this e-mail is confidential and is intended
only for the use of the addressee (s). If you receive this e-mail in
error,
please notify the sender by return e-mail immediately and erase all
copies
of the message and attachments.


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: backup mail server

2003-01-12 Thread Lee
I am in the process of testing out this same setup at present under
Linux
and I have a couple of questions.

1) How large is your Cyrus installation (# of accounts,  # of
simultaneous


286 Accounts, usually around 10-15 simultaneous IMAP connections.  Total
spool size is 4.2 gigs, this includes stage and all user data. We've 
designed this system to scale to 1500 accounts per box, but havent 
fully tested under that load yet though.

connections and IMAP spool size)
2) What DRBD protocol are you using A,B or C and over what file system
(EXT2, LVM, EXT3 ???)


DRBD protocol C / Ext3


3) Are you using block replicated disks for both your IMAP spool 
your IMAP
directory (Mailboxes DB etc)?


Yes, we are using block replication for everything directly related to
services running on this system.

L




Re: backup mail server

2003-01-12 Thread Lee
drbd configuration file:

resource drbd0 {
protocol=C
fsckcmd=fsck.ext2 -p -y

inittimeout=60
skip-wait=yes

disk {
do-panic
disk-size=66621523
}

net {
sync-rate=6M
tl-size=5000
timeout=60
connect-int=10
ping-int=10
}


on box1 {
device=/dev/nb0
disk=/dev/sda6
address=10.0.0.1
port=7789
}

on box2 {
device=/dev/nb0
disk=/dev/sda6
address=10.0.0.2
port=7789
}

}

Boxes are connected together via serial and etho links.

L

On Saturday, January 11, 2003, at 05:10 PM, [EMAIL PROTECTED] wrote:







On Sat, Jan 11, 2003 at 01:38:11PM -0500, Lee wrote:

We use drbd (http://www.complang.tuwien.ac.at/reisner/drbd/) and
linux-ha's (http://www.linux-ha.org/) heartbeat to create two-box
mailstores (one active, one hotspare, continuously in-sync). Works
beautifully.



Are you using the drdb from CVS on a 2.4.x kernel? Could you provide
details of the drdb version and OS off list?


A copy/paste of your config file would also be great as example, if 
they do
not contain too much sensitive data of course which shouldn't be the
case...

Thanks

Marc

C.DTF




Re: backup mail server

2003-01-12 Thread marc . bigler

Hi Lee,

First thanks for your configuration file... I have a few questions now
regarding your current setup:

- Are you using other tools like heartbeat or in the same kind ? If yes
which tool ?

- From your drbd configuration file I can see that you are using /dev/sda6
as physical disk, is that your Cyrus partition (/var/spool/imap) ?


Thanks
Marc


drbd configuration file:

resource drbd0 {
 protocol=C
 fsckcmd=fsck.ext2 -p -y

 inittimeout=60
 skip-wait=yes

 disk {
 do-panic
 disk-size=66621523
 }

 net {
 sync-rate=6M
 tl-size=5000
 timeout=60
 connect-int=10
 ping-int=10
 }


 on box1 {
 device=/dev/nb0
 disk=/dev/sda6
 address=10.0.0.1
 port=7789
 }

 on box2 {
 device=/dev/nb0
 disk=/dev/sda6
 address=10.0.0.2
 port=7789
 }

}

Boxes are connected together via serial and etho links.

L

On Saturday, January 11, 2003, at 05:10 PM, [EMAIL PROTECTED] wrote:






 On Sat, Jan 11, 2003 at 01:38:11PM -0500, Lee wrote:
 We use drbd (http://www.complang.tuwien.ac.at/reisner/drbd/) and
 linux-ha's (http://www.linux-ha.org/) heartbeat to create two-box
 mailstores (one active, one hotspare, continuously in-sync). Works
 beautifully.

 Are you using the drdb from CVS on a 2.4.x kernel? Could you provide
 details of the drdb version and OS off list?

 A copy/paste of your config file would also be great as example, if
 they do
 not contain too much sensitive data of course which shouldn't be the
 case...

 Thanks

 Marc

 C.DTF









Re: backup mail server

2003-01-12 Thread Lee
- Are you using other tools like heartbeat or in the same kind ? If yes
which tool ?


Yes, we're using hearbeat. Heres the requisite config:

/etc/ha.d/haresources:
servname.host.com 100.102.248.46 datadisk::drbd0 cyrus postfix


- From your drbd configuration file I can see that you are using 
/dev/sda6
as physical disk, is that your Cyrus partition (/var/spool/imap) ?


sda6 is our data partitiion where we keep /var/spool/imap /var/imap/ 
/var/spool/mail and all of our configuration files.

L


Thanks
Marc


drbd configuration file:

resource drbd0 {
 protocol=C
 fsckcmd=fsck.ext2 -p -y

 inittimeout=60
 skip-wait=yes

 disk {
 do-panic
 disk-size=66621523
 }

 net {
 sync-rate=6M
 tl-size=5000
 timeout=60
 connect-int=10
 ping-int=10
 }


 on box1 {
 device=/dev/nb0
 disk=/dev/sda6
 address=10.0.0.1
 port=7789
 }

 on box2 {
 device=/dev/nb0
 disk=/dev/sda6
 address=10.0.0.2
 port=7789
 }

}

Boxes are connected together via serial and etho links.

L

On Saturday, January 11, 2003, at 05:10 PM, [EMAIL PROTECTED] wrote:







On Sat, Jan 11, 2003 at 01:38:11PM -0500, Lee wrote:

We use drbd (http://www.complang.tuwien.ac.at/reisner/drbd/) and
linux-ha's (http://www.linux-ha.org/) heartbeat to create two-box
mailstores (one active, one hotspare, continuously in-sync). Works
beautifully.



Are you using the drdb from CVS on a 2.4.x kernel? Could you provide
details of the drdb version and OS off list?


A copy/paste of your config file would also be great as example, if
they do
not contain too much sensitive data of course which shouldn't be the
case...

Thanks

Marc

C.DTF












Re: backup mail server

2003-01-12 Thread Jared Watkins
How long have you been using this setup... and have you ever had any 
problem... or needed to do a failover.. or a failback? Do you dedicate 
nics for the replication.. are they GB?  Do you have any stats on the 
typical data rates for the replication under normal load?  

I've thought about using this setup as a poor mans san for a simple hot 
spare...  but I've not known of anyone actually doing it in production.. 
so I'm interested to know your experiences.  I'll assume you are running 
on hardware raid.. and doing backups... but what about using the LVM and 
snapshots?

Much thanks you brave soul...
Jared


Lee wrote:

- Are you using other tools like heartbeat or in the same kind ? If yes
which tool ?


Yes, we're using hearbeat. Heres the requisite config:

/etc/ha.d/haresources:
servname.host.com 100.102.248.46 datadisk::drbd0 cyrus postfix


- From your drbd configuration file I can see that you are using 
/dev/sda6
as physical disk, is that your Cyrus partition (/var/spool/imap) ?


sda6 is our data partitiion where we keep /var/spool/imap /var/imap/ 
/var/spool/mail and all of our configuration files.

L

--
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT/S/B d- s-:+ a- C$ UL$ P--- L+++$ E---
W+++ N++ o+ K- w O- M-- !V PS+ PE Y++ PGP++ t+
5- X+ R* tv+ b++ DI+ D G e+ h+ r+++ z* 
--END GEEK CODE BLOCK--



Re: backup mail server

2003-01-11 Thread Greg Sidleinger
On Sat, 2003-01-11 at 10:26, Ken Murchison wrote:
 
 
 Greg Sidleinger wrote:
  
  I have a small cyrus setup that only a few users use but I want to setup
  some kind of live backup system for it.  I would really just like to
  have two cyrus servers that keep the same mail boxes on them so if one
  fails (hardware, software crash, smurfs, etc...) the other will have a
  back up the mail and continue to receive mail.  I was reading up on the
  murder stuff for cyrus but am not sure if it is what I want and if I
  have the spare systems to support everything.  If anyone could point me
  in the right direction it would be great.
 
 Maintaining a hot spare machine _might_ be possible by using the NNTP
 support in Cyrus 2.2, since this is what NNTP does, but nothing has been
 done on this front.
 
Thanks for the info.  I will be doing a lot more reading up on this
stuff for the rest of this month because I plan on replacing my current
mail server at the end of the month.  First I need to figure out why
when sending mail to Gate does not get put into gate mailbox.

 -- 
 Kenneth Murchison Oceana Matrix Ltd.
 Software Engineer 21 Princeton Place
 716-662-8973 x26  Orchard Park, NY 14127
 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
 





Re: backup mail server

2003-01-11 Thread Lee
We use drbd (http://www.complang.tuwien.ac.at/reisner/drbd/) and 
linux-ha's (http://www.linux-ha.org/) heartbeat to create two-box 
mailstores (one active, one hotspare, continuously in-sync). Works 
beautifully.

L


On Saturday, January 11, 2003, at 10:26 AM, Ken Murchison wrote:



Greg Sidleinger wrote:


I have a small cyrus setup that only a few users use but I want to 
setup
some kind of live backup system for it.  I would really just like to
have two cyrus servers that keep the same mail boxes on them so if one
fails (hardware, software crash, smurfs, etc...) the other will have a
back up the mail and continue to receive mail.  I was reading up on 
the
murder stuff for cyrus but am not sure if it is what I want and if I
have the spare systems to support everything.  If anyone could point 
me
in the right direction it would be great.

Maintaining a hot spare machine _might_ be possible by using the NNTP
support in Cyrus 2.2, since this is what NNTP does, but nothing has 
been
done on this front.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp




Re: backup mail server

2003-01-11 Thread Rob Siemborski
On Sat, 11 Jan 2003, Ken Murchison wrote:

 Maintaining a hot spare machine _might_ be possible by using the NNTP
 support in Cyrus 2.2, since this is what NNTP does, but nothing has been
 done on this front.

Well, with the exception of IMAP-specific state, such as ACLs and flags,
etc...

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper





Re: backup mail server

2003-01-11 Thread Scott Russell
On Sat, Jan 11, 2003 at 01:38:11PM -0500, Lee wrote:
 We use drbd (http://www.complang.tuwien.ac.at/reisner/drbd/) and 
 linux-ha's (http://www.linux-ha.org/) heartbeat to create two-box 
 mailstores (one active, one hotspare, continuously in-sync). Works 
 beautifully.

Are you using the drdb from CVS on a 2.4.x kernel? Could you provide
details of the drdb version and OS off list?

-- 
  Scott Russell ([EMAIL PROTECTED])
  Linux Technology Center, System Admin, RHCE.
  Dial 877-735-8200 then ask for 919-543-9289 (TTY)




msg10372/pgp0.pgp
Description: PGP signature


Re: backup mail server

2003-01-11 Thread Roland Pope
- Original Message -
From: Lee [EMAIL PROTECTED]
 We use drbd (http://www.complang.tuwien.ac.at/reisner/drbd/) and
 linux-ha's (http://www.linux-ha.org/) heartbeat to create two-box
 mailstores (one active, one hotspare, continuously in-sync). Works
 beautifully.
I am in the process of testing out this same setup at present under Linux
and I have a couple of questions.

1) How large is your Cyrus installation (# of accounts,  # of simultaneous
connections and IMAP spool size)
2) What DRBD protocol are you using A,B or C and over what file system
(EXT2, LVM, EXT3 ???)
3) Are you using block replicated disks for both your IMAP spool  your IMAP
directory (Mailboxes DB etc)?

Thanks
Roland Pope




backup mail server

2003-01-10 Thread Greg Sidleinger
I have a small cyrus setup that only a few users use but I want to setup
some kind of live backup system for it.  I would really just like to
have two cyrus servers that keep the same mail boxes on them so if one
fails (hardware, software crash, smurfs, etc...) the other will have a
back up the mail and continue to receive mail.  I was reading up on the
murder stuff for cyrus but am not sure if it is what I want and if I
have the spare systems to support everything.  If anyone could point me
in the right direction it would be great.

Greg