Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

DBMail 2.3.4 released

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


paul at nfg

Nov 14, 2008, 5:48 AM

Post #1 of 9 (1445 views)
Permalink
DBMail 2.3.4 released

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1




Hi all,

It is with great pleasure that I'm announcing the availability of DBMail
version 2.3.4, the latest in the 'unstable' development series.

The main focus of this release has been stability. I hope and expect
this version to mark the final milestone before 2.4.0.

Special thanks to Jonathan Feally who's help in fixing bugs and adding
features was invaluable.

The only new feature that deserves special attention is the new
fine-grained logging mechanism written by Jon.

Also, IMAP-IDLE works again without any problems.

Changelog: http://git.dbmail.eu/?p=paul/dbmail;a=shortlog;h=v2.3.4
Download: http://www.dbmail.org/download/2.3/dbmail-2.3.4.tar.gz

happy testing,


- --
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJHYGR8iITvBH4zTERAgseAJ9+Lgf18LPqM7rz3kxZwq1mOg3JOwCdFjm2
ILTv8ztETOvi+KE7Q2cJ7CI=
=pmF3
-----END PGP SIGNATURE-----
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail


aaron at serendipity

Nov 14, 2008, 6:30 AM

Post #2 of 9 (1362 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

Congrats on this milestone. Welcome and congrats to new developers!


On Nov 14, 2008, at 5:48 AM, Paul J Stevens wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
>
> Hi all,
>
> It is with great pleasure that I'm announcing the availability of
> DBMail
> version 2.3.4, the latest in the 'unstable' development series.
>
> The main focus of this release has been stability. I hope and expect
> this version to mark the final milestone before 2.4.0.
>
> Special thanks to Jonathan Feally who's help in fixing bugs and adding
> features was invaluable.
>
> The only new feature that deserves special attention is the new
> fine-grained logging mechanism written by Jon.
>
> Also, IMAP-IDLE works again without any problems.
>
> Changelog: http://git.dbmail.eu/?p=paul/dbmail;a=shortlog;h=v2.3.4
> Download: http://www.dbmail.org/download/2.3/dbmail-2.3.4.tar.gz
>
> happy testing,
>
>
> - --
> ________________________________________________________________
> Paul Stevens paul at nfg.nl
> NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
> The Netherlands________________________________http://www.nfg.nl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJHYGR8iITvBH4zTERAgseAJ9+Lgf18LPqM7rz3kxZwq1mOg3JOwCdFjm2
> ILTv8ztETOvi+KE7Q2cJ7CI=
> =pmF3
> -----END PGP SIGNATURE-----
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> https://mailman.fastxs.nl/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail


jake at vapourforge

Nov 14, 2008, 7:35 AM

Post #3 of 9 (1364 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

What's the easiest way of getting this into use?
I plan to install a VM with dbmail as its sole application so whatever
distro you recommend.

I'm thinking debian lenny so I get a 2.6.20+ kernel out of the box so i
can use paravirtualised disk and network IO.
I would prefer ubuntu intrepid (or hardy even better) to keep the ubuntu
theme with my current machines, but if that means i have to compile
stuff i could just apt-get then no way.

So from a clean debian/ubuntu install to a working 2.3.4 system with the
fewest chances for me to screw something up is the goal ;->


Paul J Stevens wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
>
> Hi all,
>
> It is with great pleasure that I'm announcing the availability of DBMail
> version 2.3.4, the latest in the 'unstable' development series.
>
> The main focus of this release has been stability. I hope and expect
> this version to mark the final milestone before 2.4.0.
>
> Special thanks to Jonathan Feally who's help in fixing bugs and adding
> features was invaluable.
>
> The only new feature that deserves special attention is the new
> fine-grained logging mechanism written by Jon.
>
> Also, IMAP-IDLE works again without any problems.
>
> Changelog: http://git.dbmail.eu/?p=paul/dbmail;a=shortlog;h=v2.3.4
> Download: http://www.dbmail.org/download/2.3/dbmail-2.3.4.tar.gz
>
> happy testing,
>
>
> - --
> ________________________________________________________________
> Paul Stevens paul at nfg.nl
> NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
> The Netherlands________________________________http://www.nfg.nl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJHYGR8iITvBH4zTERAgseAJ9+Lgf18LPqM7rz3kxZwq1mOg3JOwCdFjm2
> ILTv8ztETOvi+KE7Q2cJ7CI=
> =pmF3
> -----END PGP SIGNATURE-----
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail


paul at nfg

Nov 14, 2008, 7:51 AM

Post #4 of 9 (1373 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

Jake Anderson wrote:

> So from a clean debian/ubuntu install to a working 2.3.4 system with the
> fewest chances for me to screw something up is the goal ;->

this should work:

cat >> /etc/apt/sources.d/dbmail << EOF

deb http://debian.nfgd.net/debian/ unstable main
deb http://debian.nfgd.net/debian/ experimental main

EOF

apt-get update
apt-get install -t experimental dbmail

but this assumes you've setup a database server, configured access to
it, etc...


packages for 2.3.4 are in experimental because 2.2.x is in unstable. But
you still need unstable because the libzdb packages are there.


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail


jake at vapourforge

Nov 15, 2008, 7:15 AM

Post #5 of 9 (1356 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

Paul J Stevens wrote:
> Jake Anderson wrote:
>
>
>> So from a clean debian/ubuntu install to a working 2.3.4 system with the
>> fewest chances for me to screw something up is the goal ;->
>>
>
> this should work:
>
> cat >> /etc/apt/sources.d/dbmail << EOF
>
> deb http://debian.nfgd.net/debian/ unstable main
> deb http://debian.nfgd.net/debian/ experimental main
>
> EOF
>
> apt-get update
> apt-get install -t experimental dbmail
>
> but this assumes you've setup a database server, configured access to
> it, etc...
>
>
> packages for 2.3.4 are in experimental because 2.2.x is in unstable. But
> you still need unstable because the libzdb packages are there.
>
>
>
sweet, well that was pretty painless
(i just nanoed the sources.list file and added those 2 lines ;->)

some futzing and I have a a VM with paravirtualised disk and network
adaptors so we should be seeing pretty good performance
now I just need to migrate my (10gb or so) of mail from the 2.2.10
server to the new one.

My plan is to do that nifty trick with the copying over of the user
tables then point the port forward at the new host so we don't drop any
email.
Then I'm looking at the "best" way of moving the bulk of the email over.
I don't want to just mysqldump it over, I want it all in the single
instance storage system.

Any recommendations? The last few times I have tried imapcopy and
imapsync they seem to crash or cause dbmail to crash or something
equally silly (not to mention they are slow as a wet week). The dump to
mbox tool lost/merged or some such a few emails last time I tried it as
i recall although it was nice and fast.


jake at vapourforge

Nov 17, 2008, 7:27 AM

Post #6 of 9 (1343 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

>
>
> My plan is to do that nifty trick with the copying over of the user
> tables then point the port forward at the new host so we don't drop
> any email.
> Then I'm looking at the "best" way of moving the bulk of the email
> over. I don't want to just mysqldump it over, I want it all in the
> single instance storage system.
>
> Any recommendations? The last few times I have tried imapcopy and
> imapsync they seem to crash or cause dbmail to crash or something
> equally silly (not to mention they are slow as a wet week). The dump
> to mbox tool lost/merged or some such a few emails last time I tried
> it as i recall although it was nice and fast.
Well it looks like the dbmail mbox exporter and the mbox-import tool
like to play nicley now, I copied over a gig worth of email to test the
new server and it seems pretty good. I did have imap crash though with
no error in dbmail.err or anything in dbmail.log however this was in
mail.log

Nov 17 03:00:09 mail dbmail/maintenance[12270]: [0x9f60958]
Warning:[db] db_set_headercache(+1604): error caching headers for
physmessage: [11406]
Nov 17 03:00:09 mail dbmail/maintenance[12270]: [0x9f60958] Warning:[db]
db_set_headercache(+1604): error caching headers for physmessage: [9262]
Nov 17 03:00:09 mail dbmail/maintenance[12270]: [0x9f60958] Warning:[db]
db_set_headercache(+1604): error caching headers for physmessage: [9246]
Nov 17 03:16:40 mail dbmail/deliver[7708]: [0x95ee9c0] Error:[message]
_header_cache(+1510): SQLException: Duplicate entry
'103090-9-xxxxxxxx.xxxxxxx [at] cba' for key 3
Nov 17 03:18:13 mail dbmail/deliver[12193]: [0x9f429c0] Error:[message]
_header_cache(+1510): SQLException: Duplicate entry
'105016-9-xxxxxxxx.xxxxxxx [at] cba' for key 3


That might be my fault for loading the data several times but it seems
unlikely as its still loaded through dbmail-deliver.
Whilst on the subject of loading data I made a frontend for mbox2dbmail
that should load all the accounts and mailboxes dumped by a wildcard
dump from the source system and as a bonus do it in parallel (ie 3
simultaneous insertion programs).
Its tailored pretty specifically to the setup i was using and isn't
general purpose in anyway yet however it was useful to me ;->
basically copy the results of your dbmail-export -u *
to a directory called "migrate" on the target system
(so ~/migrate/jake [at] spamthis would be a result)

put this program thus named migrate2dbmail.py version 0.01 and
mbox2dbmail in the parent directory (IE ~)
set how many threads you would like to use to insert (i used 3 because
thats how many CPU's i gave the VM)
then run it
python migrate2dbmail.py

It should spit out N text files for you
thread-1 thread-2 thread-3
with the commands to run mbox2dbmail in it.

so chmod +x thread*

screen (its probably going to take a while)

(./thread-1 &) ; (./thread-2 &) ; (./thread-3 &)

Its not tuned in any way shape or form it just splits the mbox files
directly into the 3 processes but its better than nothing.
It got me a pretty linear improvement in performance, I was hitting
~240% CPU use by dbmail-deliver 10% by python and 50% or so by mysql.
The disk was pretty relaxed, nowhere near hitting that. I estimate it
was inserting 5-10 emails a second or so, into a paravirtualised machine
on a quad core host with a generic 7200RPM 80GB drive as the single disk.

The emails themselves start appearing a minute or 2 after the thing says
they were inserted so don't get too impatient ;->

==========================================================
# Copyright (C) 2008 Jake Anderson <jake at vapourforge dot com>
# migrate2dbmail Version 0.01
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

import os
import re

from os.path import join, getsize
os.chdir('migrate/')

numthreads = 3
outputfile = {}

for i in range(1,numthreads+1):
outputfile[i] = ''

currthread = 0
for root, dirs, files in os.walk('.'):
currthread += 1
if currthread > numthreads:
currthread = 1
print currthread
if root.count('/') == 1:
#this is the top level folder, set the account name
curract = root.split('/')[1]

for file in files:
mboxpath = os.path.abspath(os.path.join(root,file))
dest_path = '/'.join(root.split('/')[2:])+'/'+file[:-5]
if dest_path[0:1] == "/":
dest_path = dest_path[1:]
# print "python mbox2dbmail -p /usr/sbin/dbmail-deliver -t mbox
-u \"%s\" -m \"%s\" -b \"%s\"" % (curract,mboxpath,dest_path)
outputfile[currthread] += "python mbox2dbmail -p
/usr/sbin/dbmail-deliver -t mbox -u \"%s\" -m \"%s\" -b \"%s\"\n" %
(curract,mboxpath,dest_path)
# print dest_path

os.chdir('..')
for i in range(1,numthreads+1):
f = open("thread-%s" % (i),'w')
f.write(outputfile[i])


_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail


dan at entropy

Nov 17, 2008, 3:31 PM

Post #7 of 9 (1345 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

On Fri, 14 Nov 2008 14:48:01 +0100, Paul J Stevens <paul [at] nfg> wrote:

> Hi all,
>
> It is with great pleasure that I'm announcing the availability of DBMail
> version 2.3.4, the latest in the 'unstable' development series.

Cool. Will update soon. Any caveats moving ( home server ... no I'm not
using in production ) from 2.3.2 to 2.3.4 ... ie are there any rolling
changes I need to apply to the DB from 2.3.3?

Dan

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail


vulture at netvulture

Nov 17, 2008, 9:07 PM

Post #8 of 9 (1341 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

Have a look at
http://git.dbmail.eu/?p=paul/dbmail;a=tree;f=sql;h=db840570d289ebbe1d77101724ec35a37ae03cf7;hb=master

From there click on your database platform, then click on history next
to the create_tables file.

2.3.2 came out on 2008-02-09, so any commits past date you should click
on the commitdiff to see what tables are touched.

The latest commit "misc fixes" is only for code that is after the
tarball - so don't do that change.

For mysql is looks like the dbmail_mimeparts.hash column was changed
from char(64) to char(128). That is the only change to the schema for
that platform.

Simply do a:
ALTER TABLE dbmail_mimeparts MODIFY COLUMN `hash` char(128) NOT NULL;

That should be safe to do.

Don't drop this table as all of your mail is in it.

a mysqldump of the database would be a good idea before fooling with it
though, just in case.

-Jon

dan wrote:
> On Fri, 14 Nov 2008 14:48:01 +0100, Paul J Stevens <paul [at] nfg> wrote:
>
>
>> Hi all,
>>
>> It is with great pleasure that I'm announcing the availability of DBMail
>> version 2.3.4, the latest in the 'unstable' development series.
>>
>
> Cool. Will update soon. Any caveats moving ( home server ... no I'm not
> using in production ) from 2.3.2 to 2.3.4 ... ie are there any rolling
> changes I need to apply to the DB from 2.3.3?
>
> Dan
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>
>


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail


paul at nfg

Nov 17, 2008, 11:50 PM

Post #9 of 9 (1342 views)
Permalink
Re: DBMail 2.3.4 released [In reply to]

No database changes between 2.3.2 and 2.3.4.

I plan on at least one very small chang for 2.3.5 (the mtime timestamp
field on mailboxes will be replaced by a sequence). Also, the reported
crashes in 2.3.4 are being worked on very actively. Until then, please
do run dbmail in a keep-alive framework like daemontools, runit, or a
simple shell wrapper like:

#!/bin/sh
while [ 1 ]; do
/usr/sbin/dbmail-imapd -D
sleep 1
echo "crashed! restarting..."|logger -t dbmail-keepalive
done




dan wrote:
> On Fri, 14 Nov 2008 14:48:01 +0100, Paul J Stevens <paul [at] nfg> wrote:
>
>> Hi all,
>>
>> It is with great pleasure that I'm announcing the availability of DBMail
>> version 2.3.4, the latest in the 'unstable' development series.
>
> Cool. Will update soon. Any caveats moving ( home server ... no I'm not
> using in production ) from 2.3.2 to 2.3.4 ... ie are there any rolling
> changes I need to apply to the DB from 2.3.3?
>
> Dan
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
https://mailman.fastxs.nl/mailman/listinfo/dbmail

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.