Re: large mailbox -- best practices

2013-04-08 Thread Daniel O'Connor
: stat, msg = imap.fetch(m, '(ENVELOPE)') print "%s -> %s" % (m, re.findall('[0-9]+ [a-zA-Z]+ [0-9]+ ..:..:.. \+', msg[0])) def init(): imap = imaplib.IMAP4_SSL(host) stat, msg = imap.login(user, password) assert(stat == 'OK

Re: MD5 Passwords in MySql?

2013-03-24 Thread Daniel O'Connor
it difficult to find a password if the password DB is leaked. MD5 is no longer sufficient for this (even with salt). A modern GPU can brute force billions of passwords per second and humans suck at generating them. -- Daniel O'Connor software and network engineer for Genesis Software -

Re: Public Key for Cyrus IMAPD

2013-03-20 Thread Daniel O'Connor
uot;Jeroen van Meeuwen (Ergo Project) (Ergo Project) " gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: C6B0 7FB4 43E6 CDDA D258 F70B 28DE 9FDA 9342 BF08 -- Daniel O'

Re: cyrus sasl Password lock after n failed attempts

2012-10-11 Thread Daniel O'Connor
ables, etc etc.. It is probably available as a package for your OS/distro or you can get it from http://www.sshguard.net/ -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so man

Re: [OT] offline mail user and syncing

2011-05-10 Thread Daniel O'Connor
/default one. at least thunderbird uses file based message store, > but alas, windblows doesn't run rsync (iirc). There are ports of rsync to Windows (eg cwrsync). -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing abo

Re: competition

2010-09-22 Thread Daniel O'Connor
to skiplist some day :) Now if only I could use skiplist with openldap ;) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG

Re: competition

2010-09-22 Thread Daniel O'Connor
I'm prone to believing it. I'm not sure it's Cyrus, I see issues with OpenLDAP and BDB too. On a bad shutdown it requires admin intervention very frequently which is pretty tedious. And yes, upgrading it is also a PITA. -- Daniel O'Connor software and network engineer for

Re: Database fragility

2010-09-10 Thread Daniel O'Connor
s it... If the server bailed on startup if there was a mismatch and there was a program/script/whatever which did an automagic upgrade I think that would be safest. No POLA violations then. > > "Daniel O'Connor" wrote: > >> >> On 10/09/2010, at 16:59, Bron

Re: Database fragility

2010-09-10 Thread Daniel O'Connor
On 10/09/2010, at 16:59, Bron Gondwana wrote: > On Fri, Sep 10, 2010 at 04:52:17PM +0930, Daniel O'Connor wrote: >> I recently had some crashes on my home cyrus server and found I had to >> delete the log files for the DB's by hand :( >> >> [ ... ] >&g

Database fragility

2010-09-10 Thread Daniel O'Connor
tc/imapd.conf #annotation_db: skiplist #duplicate_db: berkeley-nosync #mboxlist_db: skiplist #ptscache_db: berkeley #seenstate_db: skiplist #statuscache_db: berkeley-nosync #subscription_db: flat #tlscache_db: berkeley-nosync Thanks! -- Daniel O'Connor software and network engineer for Genes

Re: Upgrade from 2.1.x or 2.2.x to 2.3

2010-05-05 Thread Daniel O'Connor
id when I upgraded, however I did not try not running it). Also I had a corrupt flat seen DB which the converter choked on so I had to edit it by hand to remove the damage and then it worked OK. So check the new DB size vs the old one (they should be of similar size). -- Daniel O'Conn

Re: cyrus and 500k to >1M mails per inbox

2010-02-11 Thread Daniel O'Connor
this is a pretty good way to deal with large archival > mailboxes. I wrote a script which creates a new folder each month and moves emails into it. This does suck for offline users though (lucky that is not an issue for me). I can send it to you if you like, it uses Python's base imap

Re: Separating master processes for different services to utilise multiple cores/cpus

2009-03-02 Thread Daniel O'Connor
On Tuesday 03 March 2009 10:52:06 Atif Ghaffar wrote: > Has no-one else really experienced this? Sounds like a problem with the scheduler rather than cyrus.. Since each connection is a separate process I imagine all the CPUs would get used. (Not that I have a dual core cyrus box) -- Dan

Re: Can't get IDLE working..

2009-02-08 Thread Daniel O'Connor
e devices though, saves battery as it doesn't have to poll the server all the time. > (besides, it means I batch email rather than getting continually > interrupted) Yep :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "

Re: Can't get IDLE working..

2009-02-08 Thread Daniel O'Connor
On Monday 09 February 2009 12:37:46 Bron Gondwana wrote: > On Mon, Feb 09, 2009 at 12:21:57PM +1030, Daniel O'Connor wrote: > > So.. I guess it IS working, although I can't tell the difference between > > idled & polling can I? > > Sorry, didn't get back t

Re: Can't get IDLE working..

2009-02-08 Thread Daniel O'Connor
On Saturday 07 February 2009 16:02:29 Daniel O'Connor wrote: > > imap/idled.c:312if ((s = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1) { > > Ah whoops! > > OK, so why doesn't it work then? :) > > I should expect to see 'IDLE' in the cap string when I conn

Re: Can't get IDLE working..

2009-02-06 Thread Daniel O'Connor
On Saturday 07 February 2009 15:08:27 Bron Gondwana wrote: > On Sat, Feb 07, 2009 at 10:33:08AM +1030, Daniel O'Connor wrote: > > Hi, > > I'm trying to get the IDLE extension working, I have idled (I uncommented > > the line in cyrus.conf and restarted) running but

Can't get IDLE working..

2009-02-06 Thread Daniel O'Connor
2p2 server ready It seems there may be a coding mistake in idled but I am not sure.. My copy of Stevens is at work and I am not :) This is running on FreeBSD 7.1 - everything else works fine. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.co

Re: Doing Cyrus *right* for a large installation

2009-01-15 Thread Daniel O'Connor
Solaris > x86. Unfortunately the SPARC hardware is not as cheap as x86. Try OpenSolaris or FreeBSD :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from.

Re: root file system full: master.core?

2008-08-25 Thread Daniel O'Connor
2.3.7 without seeing coredumps FWIW. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E

Re: how to get rid of "Client side certs may not work" message

2008-04-22 Thread Daniel O'Connor
t > authentication. It would be nice if it didn't spam the log file with it though.. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- A

Re: LARGE single-system Cyrus installs?

2007-11-26 Thread Daniel O'Connor
). AFAIK you get it with UFS + gjournal, dunno if that counts as "main stream" though :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from."

Re: Cyrus IMAP 2.3.9 on Solaris 10 with ZFS and SAN

2007-09-21 Thread Daniel O'Connor
some code Google found -> http://search.cpan.org/src/SAMPO/Socket-PassAccessRights-0.03/passfd.c It's a feature, not an insane kludge! You can pass process credentials too. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "T

Re: Recommend how to move 31GB of mail to a new server

2007-06-23 Thread Daniel O'Connor
determine what has changed, and that can chew up a lot of time. Yes, but hopefully less time that copying the files :) By default it will compare mtime and size and skip files which match. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au &qu

Re: Recommend how to move 31GB of mail to a new server

2007-06-23 Thread Daniel O'Connor
ile it is live, take it down and then rsync again. That should save considerable time as I would imagine the vast majority of email would be unchanged between the first & second copy. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au &qu

Re: Connection throttling POP3.

2007-05-21 Thread Daniel O'Connor
te-force-mitigation.html Needs PF though. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 2

Re: Login attack on cyrus imap

2006-11-02 Thread Daniel O'Connor
connect more often than you specify. I have a script which removes old entries from the table - it is also very effective at stopping SSH brute force attempts (which is why I added it in the first place) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gso

Re: How to backup cyrus-imapd without stopping service

2006-06-23 Thread Daniel O'Connor
tent copy that you could > switch to in the event of a large-scale disaster, then you probably > want to explore application-level replication. If the database is not consistent then the seen flags will be broken.. This was the primary complaint of my users last time I had to do a large sca

Re: How to backup cyrus-imapd without stopping service

2006-06-22 Thread Daniel O'Connor
or tar or whatever. If you use rsync the database will be inconsistent with itself or other files. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from."

Re: Looking for a *good* X based GUI IMAP client for Cyrus IMAP ...

2006-06-12 Thread Daniel O'Connor
n case of a single account. Otherwise than that I > like it. I've used it a bit but I find it too lacks a decent keyboard interface, it is also fairly slow (in terms of GUI responsiveness anyway) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.co

Re: Looking for a *good* X based GUI IMAP client for Cyrus IMAP ...

2006-06-12 Thread Daniel O'Connor
from the keyboard. I used to use Evolution for when I went overseas because kmail didn't support offline caching, however now it does which is nice :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that th

Re: Looking for a *good* X based GUI IMAP client for Cyrus IMAP ...

2006-06-10 Thread Daniel O'Connor
e a *good* GUI client that ppl are more commonly using? It has > to work under FreeBSD ... The least sucky email client I have tried so far is KMail. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is th

Re: what happens to mail after sieve error?

2006-03-21 Thread Daniel O'Connor
o nirvana? It should go straight into the user inbox. (Does for me anyway) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG F

Re: How to activate sieve script for users?

2006-03-08 Thread Daniel O'Connor
me > how to activate for them? AFAIK you can't :( I've tried to using "sieveshell --user=foo --authname=root mail" but it doesn't let me authenticate :( -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thi

Re: Backup using lvm snapshot on linux

2006-01-31 Thread Daniel O'Connor
of dm-snapshots in the > linux kernel or just a general statement? :) It was a slight linux dig (me being a FreeBSD person), but in general if you really care about your emails then working snapshots are a good thing :) (Hard to test of course) -- Daniel O'Connor software and netwo

Re: Backup using lvm snapshot on linux

2006-01-30 Thread Daniel O'Connor
on't want to break things just because I am trying to do a > backup. The DB's should always be consistent on disk, so if you do a snapshot then you can back it up however you like. The critical thing would be that you did a snapshot though.. (and your snapshot implementation work

Re: Cyrus on AMD64

2006-01-11 Thread Daniel O'Connor
.3.0 recently and it built fine (from FreeBSD ports) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B7

Re: Seen flag reverts for some users

2006-01-10 Thread Daniel O'Connor
Moz nor Tbird are IMAP clients. > (They speak IMAP, but are really POP clients, or NNTP clients. This is a > huge beef of mine ;) ) I was under the impression they had been fixed. At least that was the claim on a previous post I found (the archives appear to be down now so I can't pa

Seen flag reverts for some users

2006-01-09 Thread Daniel O'Connor
on FreeBSD 6.0/amd64. Would it be worth upgrading to 2.2 or 2.3? (ie would that have a chance of fixing the problem?). Thanks. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so ma

Re: Creating INBOXes noninteractively

2006-01-08 Thread Daniel O'Connor
earn and bogofilter. It would have been nice if root could login as the IMAP admin without having to know the password but I don't know if it's possible. Unless the server is contacted via a unix domain socket and credential passing is used I don't see how either. -- Daniel O&#