Re: [gentoo-user] installing big qmail server ... where to start?

2005-05-06 Thread Matthias F. Brandstetter
thanks for your info guys, that was indeed helpful!

One more question: should I use a meta-package like vpopmail, or would a 
plain qmail+mysql (maybe with a custom admin webinterface) be enough?

-- quoting A. Khattri --
 On Thu, 5 May 2005, kashani wrote:
  other hand, spam filter can be CPU intensive and use a ton of RAM.

 If you plan on running spamassassin I would recommend offloading that to
 one or more dedicated boxes running the daemonized spamassassin.

 We have two qmail servers here (third one is almost ready) plus we have
 three other boxes dedicated to spamd and clamd. (We're using round-robin
 DNS of a local zone to distribute spam+virus filtering to the filtering
 boxes. This is for 3000-4000 mailboxes ;-)

   I use Mysql on my current system with Postfix. I assume qmail can
  play nicely with Mysql as well.

 We are running tcpserver patched with a MySQL patch. We're using
 vpopmail with MySQL. (Pretty much everything is running with MySQL, even
 spamd preferences and squirrelmail preferences/address books.

  I am running into some Mysql connection
  problems because each Postfix process has it's own Mysql connection.
  IIRC you can configure Mysql:proxy in Postfix and Courier to multiplex
  queries over a single connection... something I'm planning on doing
  later this month.

 We have separate read and write MySQL servers plus replication to a
 third box.


 --

-- 

Son, when you participate in sporting events, it's not whether you win 
or lose: it's how drunk you get.

-- Homer Simpson
   Bart Gets An Elephant
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] installing big qmail server ... where to start?

2005-05-06 Thread A. Khattri
On Fri, 6 May 2005, Matthias F. Brandstetter wrote:

 One more question: should I use a meta-package like vpopmail, or would a
 plain qmail+mysql (maybe with a custom admin webinterface) be enough?

Its a matter of preference. If you use something like vpopmail, email will
be stored under /home/vpopmail/domains in separate trees for each domain.

We use qmailadmin to manage domain accounts from as web browser.

Quotas have been implemented using maildir++.

If you dont have lots of virtual domains (we do), then this might be
overkill for you, but having all the email in place is useful.


-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] installing big qmail server ... where to start?

2005-05-05 Thread kashani
Matthias F. Brandstetter wrote:
Hi all,
I have to plan and setup a mail solution for about 50.000 users, here are 
some key features requested by our customer:

 - self coded webfrontend w/ webmail and administration (filter, alias etc)
 - 100MB quota per user
 - autoresponder
 - about 50.000 user
 - online backup of data
 - some more featuers for web frontend
Since I happily use qmail for some other (but smaller) installations, I 
want to try it with qmail here for this project as well. My only problem 
is, I have no clue where to start ... beginning from should I use 2 
redundant and really strong or some more but cheaper servers? to which 
qmail distributions and patches should I use (ldap, mysql, ...)? and how 
to store data (mails) and do online backup w/o downtime?.

I know you can't give me _the_ solution for this issue, but I am thankful 
for any hints and internet links on this topic.

	I'd go with three or more servers if possible. That way doing 
maintenance is easy and losing a server due to failure is annoying, not 
an emergency. I like my sleep.
	Mail tends to be I/O intensive, again depending on a number of factors, 
so having more cheaper machines is an easy way to get more I/O. On the 
other hand, spam filter can be CPU intensive and use a ton of RAM. 
Unfortunately my exp has been at the wrong ends of the scale. Previous 
job was 5 million active mail boxes and the current gig is barely 
pushing 1000. The large system had numerous cluster that supported mail. 
The pop cluster, smtp-relay, smtp-inbound, spam/content filtering, imap, 
http-frontend so it was easy to fix miscalculation in usage by throwing 
more hardware at the problem.

	If you support webmail you need an imap backend. The squirrel mail site 
has a lot of good info about picking your imap backend and lots of 
general performance data. I'd lean towards Courier-imap as it's probably 
the fasted IMAP server that doesn't use it's own data format.
	I'd look around and see what you can modify to your own use rather than 
create from scratch. Squirrel mail, horde, postfixadmin, etc are all 
packages that do some of what you want. Unless you've got a lot of time 
and people to develop and know that you're never going to allow your 
packages to face the public Internet then it might be doable.

	In an environment your size I assume you're looking at shared storage 
via NFS or something similar. A number of places have had good luck with 
Netapp, but it's pricey. You might want to look at some of the cheap 
Dell stuff which is rebranded EMC.
	Maildir format is probably best for using shared storage, but things 
can get interesting have a few million files on your filesystem. With 
50k users you shouldn't see any of the stranger issues, but you may want 
to keep an eye on inode usage. Reiserfs may be your best bet here.

	I use Mysql on my current system with Postfix. I assume qmail can play 
nicely with Mysql as well. I am running into some Mysql connection 
problems because each Postfix process has it's own Mysql connection. 
IIRC you can configure Mysql:proxy in Postfix and Courier to multiplex 
queries over a single connection... something I'm planning on doing 
later this month.

	I used the qmail-1.03-r10 ebuild in production last time, but cut a 
number of patches out since it was only for sending client emails to 
customers. You'll probably want r15 since you're going to have users 
directly connecting. Don't be afraid to cut patches you don't need, but 
you'll definitely want to keep these big-todo and big-concurrency for 
performance. qmail-link-sync support async filesystems, aka anything 
journaled. The rest should be pretty self explanatory.

That's off the top of my head... hopefully it highlighted some issues 
that you might have missed.

kashani
--
gentoo-user@gentoo.org mailing list


[gentoo-user] installing big qmail server ... where to start?

2005-05-04 Thread Matthias F. Brandstetter
Hi all,

I have to plan and setup a mail solution for about 50.000 users, here are 
some key features requested by our customer:

 - self coded webfrontend w/ webmail and administration (filter, alias etc)
 - 100MB quota per user
 - autoresponder
 - about 50.000 user
 - online backup of data
 - some more featuers for web frontend

Since I happily use qmail for some other (but smaller) installations, I 
want to try it with qmail here for this project as well. My only problem 
is, I have no clue where to start ... beginning from should I use 2 
redundant and really strong or some more but cheaper servers? to which 
qmail distributions and patches should I use (ldap, mysql, ...)? and how 
to store data (mails) and do online backup w/o downtime?.

I know you can't give me _the_ solution for this issue, but I am thankful 
for any hints and internet links on this topic.

I am sure you guys can help me :)
Greetings and TIA, Matthias

-- 
Homer: The secret ingredient is --

Moe: Homer, no!

Homer: Cough syrup!  Nothing but plain, ordinary, over-the-counter 
 children's cough syrup!

 Flaming Moe's
-- 
gentoo-user@gentoo.org mailing list