Linode Forum
https://forum.linode.com/

dbmail
https://forum.linode.com/viewtopic.php?f=11&t=3991
Page 1 of 1

Author:  marcus0263 [ Sat Mar 14, 2009 1:26 pm ]
Post subject:  dbmail

Currently I'm just outsourcing my email which has worked great. They've got an outstanding antispam via "MX Logic" gateway scanning. But I've been thinking of dinking around with my own email service for my users, so here goes the question.

I've looked at dbmail, anyone have any experience with it? I like the idea of a db backend, so any feed back would be appreciated.

Cheers

Author:  nknight [ Sat Mar 21, 2009 1:42 pm ]
Post subject: 

I've been using dbmail for several years.

My basic architecture right now is:

Postfix --> amavisd-new --> Postfix --> dbmail-lmtpd

With dbmail-imapd and dbmail-pop3d for clients to connect to.

I also run dbmail-timsieved and use the avelsieve plugin for squirrelmail for managing server-side per-user filters.


The biggest challenge you'll run into is that the documentation is a little sparse. The basic setup is pretty easy but dbmail is relatively young and doesn't have a very big installed base (relative to, say, Courier), so more advanced things can get a little hairy. At the same time, its well-thought-out design and seemingly-simplistic nature has made certain things easier to figure out on my own than they might otherwise have been.

Edit: stray bbcode tag slipped in

Author:  SelfishMan [ Sat Mar 21, 2009 1:54 pm ]
Post subject: 

Does dbmail supports some of the more current functionality such as SSL/TLS? From what I can see that is only supported if proxied through stunnel which means another daemon that has to be running.

What exactly do you want stored in the database? Account credentials can be stored in a DB and accessed by postfix and dovecot with no problem. Mail storage in the DB is another story so unless you *need* the mail stored in a database then why not just use postfix? Odds are you will probably end up running that on the front end to support spam/virus filtering anyway.

Pesonally, I tend to avoid apps that have very little marketshare because of the typical lack of support.

Author:  nknight [ Sat Mar 21, 2009 3:13 pm ]
Post subject: 

Postfix and dbmail are different things. Postfix is an SMTP server (an MTA), dbmail, on the other hand, is an MDA and a set of daemons for accessing mail in its backing store. It's much closer to Cyrus or Courier than Postfix. This diagram might help:

http://dbmail.org/dokuwiki/doku.php?id=bigpicture

Some of the advantages to dbmail and its use of a proper database as a backing store are listed here:

http://dbmail.org/index.php?page=overview


Filesystems are finicky, performance varies wildly across workloads, they may or may not scale, remote access (e.g. NFS) has always had more than its fair share of issues, and filesystems are not built to make what we think of as transactions very easy (witness the recent confusion with ext4's completely-compliant but surprising-to-many-developers metadata behaviour).

A good RDBMS takes care of these issues and more for us. They're specifically built to handle large quantities of related data in a reliable, efficient, and scalable manner, and provide consistent, concurrent access to that data.

Another nice bonus: backups are trivial. Just mysqldump with the --single-transaction and --flush-logs flag and you have a snapshot that's guaranteed to be in a consistent state, and you can copy off mysql's binary logs for incrementals.

ETA: TLS/SSL does have to be run through stunnel, but stunnel is trivial to configure.

Author:  marcus0263 [ Sat Mar 21, 2009 9:57 pm ]
Post subject: 

Thanks for the feedback, I've just been kinda board of late. I'm off on holiday in a couple of weeks and have been looking for a new project to waste my time. Been looking at starting to mess about with running my own mail server. Between my social site and family sites I run my user base is growing. Thought I'd get back into messing with mail servers, haven't messed with them for a while.

Anyway dbmail, I really like the concept of it ......

I think I'll mess about with it

Cheers

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/