Re: [Dovecot] First time Dovecot user, really impressed so far. What is best IMAP enabled webmail package to go with Dovecot?
Original-Nachricht > Datum: Fri, 08 Jan 2010 00:55:45 -0600 > Von: Stan Hoeppner > An: dovecot@dovecot.org > Betreff: Re: [Dovecot] First time Dovecot user, really impressed so far. What > is best IMAP enabled webmail packageto go with Dovecot? > > On Thu, 07 Jan 2010 12:23:50 -0500, Thomas Harold > > wrote: > > On 1/6/2010 11:38 AM, Steve wrote: > >> > >> An advice on another nice Web enabled mail client? Have you looked at > >> SOGo? Have a look at their online demo -> > >> http://www.scalableogo.org/tour/online_demo.html > >> > >> It has more to offer then RoundCube (aka: Calendaring, > >> synchronization with Funambol, etc). > > > > Ah? (perks up ears at the mention of Funambol) > > > > And SOGo plays nicely with postfix + dovecot? > > I saw that suggestion and checked out the online demo at the SOGo site. > Aside from the fantastic look/feel of the UI, the one thing that really > caught my attention is the "right click" context menu on messages, like > that in a full MUA such as T-Bird. The right click feature is really darn > sweet for a free webmail client. I must take a closer look at SOGo. As > you can see from the header of my email I'm already taking Roundcube for a > spin, although I'm on an old version, relying on the Debian Lenny backport > package. > RoundCube is a great Web app. It's written by a Swiss guy (I am from Switzerland too). So it can only be good :) SOGo is as well a great app. On my setup I offer Squirrel Mail, RoundCube, Horde, SOGo Monotone/Trunk (dev version) and Group Office. Most people like the more advanced packages like SOGo, Group Office and Horde. I personally like Squirrel Mail the most since it is so lean and it's not disturbing me with additional stuff that I don't need (mostly I check mail over Web while I am out of office and then I just need to quickly read and reply. That's it). > -- > Stan > Steve -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Re: [Dovecot] Enable plugin per user
On 8.1.2010, at 9.58, mail...@securitylabs.it wrote: > is there a way to enable some plugin (in particular I'm thinking of > lazy_expunge) on a per-user basis? > > I use Dovecot 1.2.9 with Maildir and virtual users in a MySQL database. Yes. Return mail_plugins setting from your user_query. For example: user_query = select .., mail_plugins from users where .. BTW. Don't post to list by replying to an existing mail. It preserves In-Reply-To: header and messes up threading.
Re: [Dovecot] 1.2.9 imap crash with backtrace
* David Halik : > > Ralf, you're seeing the same panic I've been going back and forth > with Timo on for the last two weeks. Do you think you could run a > couple of quick gdb commands? Timo asked me for these last week, but > I thought it might be useful if they came from you as well for > comparison. It also looks like you have optimization turned off which > is great for debugging. > > From Timo... > > Could you do in gdb something like: > > fr 6 (or whatever frame gives usable results) Yes, it's frame 6 > p *rec (gdb) p *rec $2 = {uid = 1721, flags = 8, filename = 0x9c4e2b0 "1247223070.M198961P26186.postamt.charite.de,S=4080,W=4182:2,Sa", extensions = 0x0} > p count (gdb) p count $3 = Sorry :( > p *recs[0] (gdb) p *recs[0] $4 = {uid = 1962, flags = 8, filename = 0x9c531a8 "1262613886.M868332P16003.postamt.charite.de,W=39324,S=38791:2,Sa", extensions = 0x0} > p *recs[1] > p *recs[..up until count-1] Since count is optimized out, how should I know? OK, trial and error: (gdb) p *recs[0] $16 = {uid = 1962, flags = 8, filename = 0x9c531a8 "1262613886.M868332P16003.postamt.charite.de,W=39324,S=38791:2,Sa", extensions = 0x0} (gdb) p *recs[1] $17 = {uid = 1963, flags = 8, filename = 0x9c53200 "1262613886.M868333P16003.postamt.charite.de,W=3061,S=2987:2,Sa", extensions = 0x0} (gdb) p *recs[2] $18 = {uid = 1964, flags = 8, filename = 0x9c53250 "1262613886.M868334P16003.postamt.charite.de,W=407687,S=402422:2,Sa", extensions = 0x0} (gdb) p *recs[3] $19 = {uid = 1965, flags = 8, filename = 0x9c532a8 "1262613886.M868335P16003.postamt.charite.de,W=3576,S=3496:2,RSa", extensions = 0x0} (gdb) p *recs[4] $20 = {uid = 1966, flags = 8, filename = 0x9c532f8 "1262613886.M868336P16003.postamt.charite.de,W=20045,S=19472:2,Sa", extensions = 0x0} (gdb) p *recs[5] $21 = {uid = 1967, flags = 8, filename = 0x9c53350 "1262613886.M868337P16003.postamt.charite.de,W=99371,S=97957:2,Sa", extensions = 0x0} (gdb) p *recs[6] $22 = {uid = 1968, flags = 8, filename = 0x9c533a8 "1262613886.M868338P16003.postamt.charite.de,W=4552,S=4453:2,Sa", extensions = 0x0} ... (gdb) p *recs[50] $23 = {uid = 2012, flags = 8, filename = 0x9c54260 "1262613886.M868382P16003.postamt.charite.de,W=29656,S=28920:2,Sa", extensions = 0x0} (gdb) p *recs[51] $24 = {uid = 2013, flags = 8, filename = 0x9c542b8 "1262613886.M868383P16003.postamt.charite.de,W=83093,S=81992:2,Sa", extensions = 0x0} (gdb) p *recs[52] $25 = {uid = 2014, flags = 8, filename = 0x9c54310 "1262613886.M868384P16003.postamt.charite.de,W=2104892,S=2077799:2,Sb", extensions = 0x0} (gdb) p *recs[53] $26 = {uid = 2015, flags = 8, filename = 0x9c54368 "1262613886.M868385P16003.postamt.charite.de,W=89389,S=88208:2,Sa", extensions = 0x0} (gdb) p *recs[54] $27 = {uid = 2016, flags = 8, filename = 0x9c543c0 "1262613886.M868386P16003.postamt.charite.de,W=12822,S=12457:2,Sa", extensions = 0x0} (gdb) p *recs[55] $28 = {uid = 2017, flags = 8, filename = 0x9c54428 "1262613886.M868387P16003.postamt.charite.de,W=14356,S=14096:2,Sa", extensions = 0x0} (gdb) p *recs[56] $29 = {uid = 2018, flags = 8, filename = 0x9c54480 "1262613886.M868388P16003.postamt.charite.de,W=15126,S=14718:2,Sa", extensions = 0x0} (gdb) p *recs[57] Cannot access memory at address 0x0 > If count is large, the main things I want to know are: > > 1) Is the array sorted (recs[n]->uid < recs[n+1]->uid always)? Yes, it's sorted! > 2) is rec->uid anywhere in the recs array? I don't understand this question. All the entries recs[0] ... recs[56] are containing entries like the ones above. > On 01/04/2010 05:09 AM, Ralf Hildebrandt wrote: > >> From the log: > > > >Jan 3 20:26:07 postamt dovecot: IMAP(nix): copy: uid=3526, dest=Deleted > >Messages, msgid=, size=2726 > >Jan 3 20:26:07 postamt dovecot: IMAP(nix): delete: uid=3526, > >msgid= > >Jan 3 20:26:11 postamt dovecot: IMAP(nix): expunge: uid=3526, > >msgid=, size=2726 > >Jan 3 20:26:42 postamt dovecot: IMAP(nix): copy: uid=415, box=Deleted > >Messages, dest=INBOX, > >msgid=, > >size=3604 > >Jan 3 20:26:42 postamt dovecot: IMAP(nix): > >/home/n/i/nix/Maildir/dovecot-uidlist: Duplicate file entry at line 1: > >1262534293.M822904P8880.postamt.charite.de,S=3604,W=3690:2,RSaf (uid 3528 -> > > 3531) > >Jan 3 20:26:42 postamt dovecot: IMAP(nix): Panic: file > >maildir-uidlist.c: line 403 (maildir_uidlist_records_array_delete): > >assertion failed: (pos != NULL) > >Jan 3 20:26:42 postamt dovecot: IMAP(nix): Raw backtrace: imap > >[0x80f1631] -> imap [0x80f16a2] -> imap [0x80f1019] -> imap > >[0x8088fa6] -> imap(maildir_uidlist_refresh+0x9e9) [0x8089fc9] -> imap > >[0x8086704] -> imap(maildir_storage_sync_init+0x125) [0x8086be5] -> > >imap(imap_sync_init+0x54) [0x8070434] -> imap [0x8062aa2] -> imap > >[0x80a619c] -> imap(io_loop_handle_timeouts+0xe9) [0x80f9959] -> > >imap(io_loop_handler_run+0x82) [0x80fa222] -> imap(io_loop_run+0x20) > >[0x80f96
Re: [Dovecot] auth, partially resolved
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 7 Jan 2010, Spyros Tsiolis wrote: signed certificate: /C=GR/ST=Kerkyra/L=Kerkyra/O=Tourist Enterprizes/OU=IMAP server/CN=webmail.domain.gr/emailaddress=postmas...@webmail.domain.gr You access the cert of webmail.domain.gr via a host named localhost. If Horde runs on the same host, just disable SSL :-) . . .because SSL is for remote hosts (clients) on the network anyway right ? Well, there might be scenarios, when a local user other than root may sniff the connection on localhost, but I think you have no such one. So to encrypt a connection from localhost to localhost is a waste of ressources. In case of Dovecot you'll need one extra file descriptior (and depending on your settings one extra process as well), plus the CPU time to actually do the encryption. Yeah. The certificate is there. Under "/etc/ssl/certs". I was thinking that maybe because the system (and the certificate issuer, horde and dovecot are on the same box. You ask me somewhere about that) is all-in-one, I need to import the certificate somewhere ? see above for the reason. The dovecot wiki says that importing the certificate is only applicable to the client-side (evolution, thunderbird and so on). The webmail-frontend _is_ your client in the view of Dovecot. But since the cert is in /etc/ssl/certs, it should work, but if you validate the cert, the webmail may bark, because you access the SSL-cert with the CN "webmail.domain.gr" by another name "localhost". This is a sign of a man-in-the-middle attack, actually. BTW: Do your SSL IMAP/POP clients also use the name "webmail.domain.gr"? Otherwise they will get a warning as well, maybe each time they connect. Regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS0bzDb+Vh58GPL/cAQJx9Af/egq1HW/M92tmivrAcBFCvyO6pL6cZcwr PDVfWTsQsHAhWOYNTfAuAe0kouFTnjCpGcTXKPAA3VCWvRWR37/RGseeAmKfRmEW BYfKPrkf6ltq+hfREi81rHIme0xIry5UG1oB2/1WfPHmWTckVWNRL0aRIZGM+ZR5 v40MuesoaMyY0EngEnaIfDbswG+vNWF60XZ71knAfVtl12LOe+twzLDEJ3M13SaV zw7qOGj4iUtZgML4LC042dGuF22yKAXElwp26oZVhk522J1VtdMuhi9Bma7YnVfU CfhUWqa3q+jL60fAKhWCP8IoRxxYJ/vsrWFjZaEamjCMCLx3FgeebQ== =IS0t -END PGP SIGNATURE-
Re: [Dovecot] Thinderbird+delete+move to Trash folder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 7 Jan 2010, Papp Tamás wrote: Well the conlusion is to me, that I can't use deleted_to_trash and SHIFT+DEL together. I think so, because on Shift-DEL the client must first mark the message as "DELETED", then expunge. The deleted_to_trash would need to wait a bit to not interfere the process. Regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS0bz2r+Vh58GPL/cAQIftAgApTl9PnwHulyIfckA8BAqhaTSgOcRAecZ GhOkPA25KxmgeJXbRXrtisc1++d+R8JWbZjjpBEs24INYF4xJZ7nEM33adpxWFBM GF4UN8HKpPMWHqn1g+v7xKcGqJCM6CiN9iykmokmh6nnWayEqIocJdBOIS6o9xMH J676vtyIEm87ocRUZCxXZyNkQICE7jMJa09FzRThAJiMtZxz8Z7oAGMZB9+eROFp ZR0xssHqD3+H/9xWXw/3H1ZhsV72ASu2Hg7kFrz3jR4sQ2pMt7neisxlkKkJkDhb ZF67boExwYEXUdyhaIkPY20wynK50lsUHtfumz/WBg7NNkUC6lwrow== =rF7H -END PGP SIGNATURE-
Re: [Dovecot] Dovecot Sieve: Vacation Recipient
Am Donnerstag, den 07.01.2010, 14:49 +0100 schrieb Steffen Kaiser: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Thu, 7 Jan 2010, Lukas Kolbe wrote: > > > I tried to use the sieve vacation plugin, but we're facing a little > > problem: our user's addresses are @, and if they want to > > use imap and sieve, they can have a forward to @imap.. The > > return-path, and hence the address the vacation message is sent to, is > > then @ and not the original sender of the message. Is there > > any way to circumvent this? Sending a vacation back to oneself doesn't > > Hmm, I understand to "forward" a mail so that a MTA accepts a message, > then determines to send it to another address. In this process the > original sender (aka argument of the MAIL FROM SMTP command) is preserved. > What you describe is that the message is delivered by the MTA locally, but > then send to another address. Correct - the user has either a .forward or a procmailrc, both resulting in a resend to @imap.. It has been this way for ages, unfortunatly. > Both methods do have their pros and cons: > > + first one preserves the original sender, second does not > > + first one fails on SPF tests, second one does not > > You will either need > > a) to switch to the first method and use forwarding at MTA stage or > > b) to determine a way to re-send the message with the original sender, > which is not "From:" but maybe "Return-Path", (sort of the same as first > method, but handled manually) or > > c) to pass along the original sender, e.g. in a custom header, to the > dovecot server and patch the Sieve implementation to use that info. I'll look into option b then. It might not be possible with the .forward approach, but almost certainly is with procmail. We're looking into decoupling the mail service from the users home directories anyway, which would fix this issue naturally. Thanks for the clarification! > Regards, > > - -- > Steffen Kaiser -- Lukas Kolbe
[Dovecot] IMAP client dependence on dovecot mail storage fromat?
Hi, After setting up a maildir tree with :LAYOUT=fs and accessing it with KMail and Thunderbird, various mail client-specific problems appeared, but, as I didn't try with maildir++, I would like to confirm here: does that matter for an IMAP client much if I store mail on server as ":LAYOUT=fs" or maildir++? Can it see differences? I would like to think, that IMAP protocol should provide for all transactions in a standard way and its dovecot's/server's sole business how it stores mail locally. However... These results seem not very good: KMail: try creating a folder "sub" in "parrent" and you'll get "parrent.sub" along with "parrent" on server side. There, however, are no problems with Latvian unicode chars. Thunderbird: it can create a new folder in "parrent" as desired, but it can't display Latvian unicode chars (being such at server side) on client, while, if I try creating a new folder with Thunderbird with these chars, on server it will look somewhat like base64! So I'm really confused. All together these things are pretty frustrating, sure, but I'd like to understand whats the real problem here! signature.asc Description: This is a digitally signed message part.
Re: [Dovecot] Enable plugin per user
On 08/01/2010 09:15, Timo Sirainen wrote: On 8.1.2010, at 9.58, mail...@securitylabs.it wrote: is there a way to enable some plugin (in particular I'm thinking of lazy_expunge) on a per-user basis? I use Dovecot 1.2.9 with Maildir and virtual users in a MySQL database. Yes. Return mail_plugins setting from your user_query. For example: user_query = select .., mail_plugins from users where .. Thanks. One clarification. If I have: protocol imap { mail_plugins = quota imap_quota mail_log in my conf file, I have to add only lazy_expunge in the MySQL field and it "adds" to the plugins specified in the conf? Or I have to add every plugin I'd like to use in the MySQL field? Igor
Re: [Dovecot] sieve 0.1.14: vacation encodes Subject twice
Roland Rosenfeld wrote: Hi! I noticed the following problem in dovecot-1.2-sieve-0.1.14: The following vacation causes trouble with the Subject line: if not exists ["List-Id", "List-Post"] { vacation :days 7 :addresses ["t...@netcologne.de"] :subject "=?utf-8?b?w4TDlsOc?= sadasd" "Bin gerade nicht hier."; } As you can see, the Subject is already MIME encoded according to RFC2047. Starting with sieve 0.1.14 the subject is now encoded by sieve again, so I get the following in my vacation mail: Subject: =?utf-8?q?=3D=3Futf-8=3Fb=3Fw4TDlsOc=3F=3D?= sadasd As you can see, the RFC2047 encoding is RFC2047 encoded, which results in an unreadable subject. According to RFC5230 section 4.3 this shouldn't happen: The ":subject" parameter specifies a subject line to attach to any vacation response that is generated. UTF-8 characters can be used in the string argument; implementations MUST convert the string to [RFC2047] encoded words if and only if non-ASCII characters are present. Implementations MUST generate an appropriate default subject line as specified below if no :subject parameter is specified. If I understand this right, sieve should do the RFC2047 encoding only if the string is non-ASCII. But the RFC2047 encoded string is already ASCII, so it should not be encoded a second time. Fixed: http://hg.rename-it.nl/dovecot-1.2-sieve/rev/219a6f0d6bf6 Regards, Stephan.
[Dovecot] shared namespace problem
Hi List, I've got a problem, setting up shared namespaces. I am trying to setup a Mailbox (Maildir) which is accessible for some users. (For example mailbox "sales" and only sales representive have access to it) Mailboxes can be found under /var/vmail/, whereas looks like foo.bar or peter.griffin ;) Now, if I connect via telnet, loggin in as foo.bar and run a03 SETACL foobar peter.griffin lwrxk everything seems fine. Under /var/vmail/foo.bar is a acl-file dovecot-acl-list Under /var/vmail/foo.bar/.foobar is a acl-file dovecot-acl The contents looks ok. Also there is a generated file /var/vmail/shared-mailboxes.db. But if i now loggin in as peter.griffin and setup command a03 LIST "" "*" or a03 LIST "" "#shared" I can not find any shared mailbox. Above you can find my actual configuration. I've tried several versions of location: under shared namespace, but without success. Hope someone has a clue and point me into the right direction. Thanks for your help. Friendly Regards, Patrick dovecot -n : # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-686 i686 Debian squeeze/sid ext3 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_privileged_group: mail mail_uid: 1001 mail_gid: 1001 mail_location: maildir:/var/vmail/%n mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): acl imap_acl mail_plugins(imap): acl imap_acl mail_plugins(pop3): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_log_max_lines_per_sec: 0 imap_client_workarounds(default): outlook-idle imap_client_workarounds(imap): outlook-idle imap_client_workarounds(pop3): namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: shared separator: / prefix: shared/%%u location: maildir:/var/vmail/%%u/shared:INDEX=/var/vmail/%%u/shared list: children lda: postmaster_address: postmas...@example.com hostname: mail.cronon-ag.de mail_plugins: acl mail_plugin_dir: /usr/lib/dovecot/modules/lda sendmail_path: /usr/lib/sendmail auth_socket_path: /var/run/dovecot/auth-master auth default: mechanisms: plain login digest-md5 passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: acl: vfile acl_shared_dict: file:/var/vmail/shared-mailboxes.db -- Name : Patrick Kaiser Email : patrick.kai...@argonius.de Website : http://www.argonius.de GPG Key : http://www.argonius.de/key.pub
Re: [Dovecot] Enable plugin per user
On 8.1.2010, at 12.14, mail...@securitylabs.it wrote: >> user_query = select .., mail_plugins from users where .. >> > > Thanks. One clarification. If I have: > > protocol imap { > mail_plugins = quota imap_quota mail_log > > > in my conf file, I have to add only lazy_expunge in the MySQL field and it > "adds" to the plugins specified in the conf? Or I have to add every plugin > I'd like to use in the MySQL field? Returning mail_plugins from userdb overrides the setting, so it needs to return all of them. But of course you can do something like: select concat('quota imap_quota mail_log ', extra_plugins) as mail_plugins or whatever.
[Dovecot] dovecot-1.2-sieve-0.1.3 compile error
Hi, when I try to compile dovecot-1.2-sieve-0.1.3 on my NAS I get the error below and I have no idea why and who to fix this. I have a Qnap TS239pro NAS with a Intel Atom CPU running Linux. I installed and configured the ipkg dovecot packet (1.2.beta1). Getting mails via fetchmail and send them with deliver to the IMAP. Not I want to include sieve to filter mails as this is not part of the packet I need to compile this by my own. I installed all needed packets and download dovecot-1.2.beta1 and dovecot-1.2-sieve-0.1.3. I do configure and make for dovecot and ./configure --with-dovecot=../dovecot-1.2.beta1 and make for dovecot-1.2-sieve-0.1.3. All run without any problem till the error below. Any idea how to fix this is welcome. /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2-o libsieve.la rfc2822.lo sieve-limits.lo sieve-message.lo sieve-lexer.lo sieve-script.lo sieve-ast.lo sieve-binary.lo sieve-parser.lo sieve-address.lo sieve-validator.lo sieve-generator.lo sieve-interpreter.lo sieve-code-dumper.lo sieve-binary-dumper.lo sieve-result.lo sieve-error.lo sieve-objects.lo sieve-comparators.lo sieve-match-types.lo sieve-address-parts.lo sieve-match.lo sieve-commands.lo sieve-code.lo sieve-actions.lo sieve-extensions.lo cmp-i-octet.lo cmp-i-ascii-casemap.lo mcht-is.lo mcht-contains.lo mcht-matches.lo tst-truefalse.lo tst-not.lo tst-anyof.lo tst-allof.lo tst-address.lo tst-header.lo tst-exists.lo tst-size.lo cmd-require.lo cmd-stop.lo cmd-if.lo cmd-keep.lo cmd-redirect.lo cmd-discard.lo ext-fileinto.lo ext-reject.lo ext-envelope.lo ext-encoded -character.lo sieve.lo ./plugins/vacation/libsieve_ext_vacation.la ./plugins/subaddress/libsieve_ext_subaddress.la ./plugins/comparator-i-ascii-numeric/libsieve_ext_comparator-i-ascii-numeric.la ./plugins/relational/libsieve_ext_relational.la ./plugins/regex/libsieve_ext_regex.la ./plugins/copy/libsieve_ext_copy.la ./plugins/imap4flags/libsieve_ext_imap4flags.la ./plugins/include/libsieve_ext_include.la ./plugins/body/libsieve_ext_body.la ./plugins/variables/libsieve_ext_variables.la ./plugins/enotify/libsieve_ext_enotify.la rm -fr .libs/libsieve.lax mkdir .libs/libsieve.lax rm -fr .libs/libsieve.lax/libsieve_ext_vacation.a mkdir .libs/libsieve.lax/libsieve_ext_vacation.a (cd .libs/libsieve.lax/libsieve_ext_vacation.a && ar x /opt/qnap_install/dovecot-1.2-sieve-0.1.3/src/lib-sieve/./plugins/vacation/.libs/libsieve_ext_vacation.a) libtool: link: ERROR: object name conflicts: .libs/libsieve.lax/libsieve_ext_vacation.a//opt/qnap_install/dovecot-1.2-sieve-0.1.3/src/lib-sieve/./plugins/vacation/.libs/libsieve_ext_vacation.a make[4]: *** [libsieve.la] Error 1 make[4]: Leaving directory `/share/MD0_DATA/.qpkg/Optware/qnap_install/dovecot-1.2-sieve-0.1.3/src/lib-sieve' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/share/MD0_DATA/.qpkg/Optware/qnap_install/dovecot-1.2-sieve-0.1.3/src/lib-sieve' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/share/MD0_DATA/.qpkg/Optware/qnap_install/dovecot-1.2-sieve-0.1.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/share/MD0_DATA/.qpkg/Optware/qnap_install/dovecot-1.2-sieve-0.1.3' make: *** [all] Error 2 /opt/ is a link to /share/MD0_DATA/.qpkg/Optware/ Bye El -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Re: [Dovecot] Dovecot (IMAP) Hangs sometimes
Exactly! I agree with you! I used to have webmail connect locally via unencrypted IMAP on port 143, but the problem occurred even more frequently. So I thought that it could be dovecot not being able to work out both protocols... I had it like this: protocol imap { listen = 127.0.0.1:143 ssl_listen = *:[another port] } Then I commented the listen line, and things got better, but not good enough yet. Strange, uh? I know I should not be using webmail locally via SSL. But I got less errors like that. Altough, I know once I get the problem solved, I can go back to the correct solution. Just for the record: My mail server is running super fast! The problem happens only at specific moments, twice a day, only. Otherwise, what's the other configuration that could be eating up resources? BTW, I got plenty of CPU (2xQuadCore 3.0) and memory (32GB). On Fri, Jan 8, 2010 at 5:07 AM, Stan Hoeppner wrote: > > On Thu, 7 Jan 2010 11:08:54 -0200, Mario Gomide > wrote: > > > Webmail is in localhost and connects locally also with SSL. > > > > The problem starts when webmail takes long to authenticate and show > folders > > and stuff. After a while it times out and doesn't connect. > > Any ideas? > > It may be unrelated to your current problem, but, why in the world are you > having a local process connect to another local process via SSL? That's > akin to encrypting the traffic between the left and right hemispheres of > your brain for fear someone might be listening in to the unencrypted > traffic occurring within you skull. Silly isn't it? > > One thing your configuration will certainly do is suck CPU horsepower, eat > up memory unnecessarily, and make things slower than they should/could be. > > -- > Stan >
Re: [Dovecot] Dovecot (IMAP) Hangs sometimes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 8 Jan 2010, Mario Gomide wrote: Then I commented the listen line, and things got better, but not good enough yet. Strange, uh? I never tried that. Just for the record: My mail server is running super fast! The problem happens only at specific moments, twice a day, only. specific moments? Which and what are the spesifics? If I remember correctly, I made logs of the number of file descriptors of the "dovecot" process; each time the number _almost_ reached the max (say one or two are not allocated yet), I saw the stalls _and_ when I manually logged off users (kill -15 imap-process) the number did not decreased. Well, not much anyway. Sort of, it looked like a fd leak. Since I have ulimit -n in my init.d, no such problem came up again. The previous ulimit was lower than the max Dovecot could handle. Regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS0c0yb+Vh58GPL/cAQKYTQf/RRDR9hgWhjjO2hivS/Lncm1fO5cNVnqZ 6dTT4Z70M+kgC/yPgGbWEMjEPthDORGeIFMBQof2XdBYAlc/B9TiPH4gmhvkhesU sv5V8Rq9f02LPWmYAAwiCa4BZ+zQDBPQDfBajJhrhUsYfvrSwEW7Jgb9QUXl/00G h4s1S2ptrg/3NzKFctyUgkxEyDRLEa+eqCNXNUBwakRfb+4dvkjcaKPCclA9bw51 CxxtffJNR8oDxQoFCe+tXZDc5FWOxUAffkEDft1Qg9rabqMupfKw45Lecg8rtsgN vU7D0Fxb18OF7p2JOelYA8sfeCCOLMXj91utH87/VK7Jy7IO2keSUw== =n6J7 -END PGP SIGNATURE-
Re: [Dovecot] Dovecot (IMAP) Hangs sometimes
On 8.1.2010, at 15.36, Steffen Kaiser wrote: > If I remember correctly, I made logs of the number of file descriptors of the > "dovecot" process; each time the number _almost_ reached the max (say one or > two are not allocated yet), I saw the stalls _and_ when I manually logged > off users (kill -15 imap-process) the number did not decreased. Well, not > much anyway. > Sort of, it looked like a fd leak. If Dovecot runs out of file descriptors, it logs an error. So the most important part: Check if there are any errors in logs. http://wiki.dovecot.org/Logging
Re: [Dovecot] Dovecot (IMAP) Hangs sometimes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 8 Jan 2010, Timo Sirainen wrote: If I remember correctly, I made logs of the number of file descriptors of the "dovecot" process; each time the number _almost_ reached the max (say one or two are not allocated yet), I saw the stalls _and_ when I manually logged off users (kill -15 imap-process) the number did not decreased. Well, not much anyway. Sort of, it looked like a fd leak. If Dovecot runs out of file descriptors, it logs an error. So the most important part: Check if there are any errors in logs. http://wiki.dovecot.org/Logging Well, I know it should, but it does not. Maybe it is something different. I changed my init.d in July 2008, but unfortunately I do not find anything I posted in the mailinglist. There is no sign in the logs, regardless of the auth_debug or mail_debug setting. A telnet to port 143 just hangs without any "connected". However, this is Dovecot v1.0, so I see no reason to dig into it. Regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS0dHub+Vh58GPL/cAQJ2Bgf/VBx1tvRqc4mJIC/Bjc3ZhebZEWmm0NSj UaSU3uXum1QCaPZ8BOtZlM4lTFNhnIVvTQj9lzzKeDlu8UB2/OlvghWkqJfk7GpN UJJmlhadEkTqL8iUvRFyz2caClsEN0g5BvCjE/VlBREdeAWHJ/UQvCa7u97m+UZw CG8EMN1eZ7TgPLoLeEmkTcZ3eNL3e9ia2lYFjLYzG0pvsg+VeTZMv+nihN0PmGhY /K5o051kX3CG9fU9TVLhURlW/1HLVV4Cm6yhdb9nCy+KrJZSb+fVCZk5X0PxUUrL LdNZE2DMm7M9t81lUcmMZ2o9AW+dM21q1kg9SGpU3AQumAZ5HY0fLg== =CV2a -END PGP SIGNATURE-
[Dovecot] Next message unexpectedly corrupted in mbox file
Hi, I am seeing this on one of my servers: Jan 8 10:08:58 l1 dovecot: IMuser(user): Next message unexpectedly corrupted in mbox file /home/user/Mailbox at 10558 I have never seen this before, and google yields no results except when this warning was added to the source code here: http://www.dovecot.org/list/dovecot-cvs/2009-December/015177.html The user has deleted all of the mail in the Mailbox but the problem persists. Any ideas? Justin.
Re: [Dovecot] Dovecot (IMAP) Hangs sometimes
The specific moments are at about 9:40 am and 2:30 pm. Exactly when I have most of my users connecting simultaneously (when they arrive in the morning and back from lunch break). At these exact moments, dovecot hangs. Anyways, I took a look at http://wiki.dovecot.org/LoginProcess. I increased the default login_max_processes_count from 128 to 256 and restarted dovecot. Right before doing this (2:24pm, at this time, imap was getting slow already and dovecot was about to hang) I checked my processes every second: ps -ef | grep imap-login | grep dovecot | wc -l and the results varied from 149 to 152. After setting login_max_processes_count to 256, I hope the problem is fixed. I didn't do anything related to open file descriptors. Mario On Fri, Jan 8, 2010 at 11:36 AM, Steffen Kaiser < skdove...@smail.inf.fh-brs.de> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, 8 Jan 2010, Mario Gomide wrote: > > Then I commented the listen line, and things got better, but not good >> enough >> yet. Strange, uh? >> > > I never tried that. > > > Just for the record: My mail server is running super fast! The problem >> happens only at specific moments, twice a day, only. >> > > specific moments? Which and what are the spesifics? > > If I remember correctly, I made logs of the number of file descriptors of > the "dovecot" process; each time the number _almost_ reached the max (say > one or two are not allocated yet), I saw the stalls _and_ when I manually > logged off users (kill -15 imap-process) the number did not decreased. Well, > not much anyway. > Sort of, it looked like a fd leak. > > Since I have ulimit -n in my init.d, no such problem came up again. The > previous ulimit was lower than the max Dovecot could handle. > > > Regards, > > - -- Steffen Kaiser > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.6 (GNU/Linux) > > iQEVAwUBS0c0yb+Vh58GPL/cAQKYTQf/RRDR9hgWhjjO2hivS/Lncm1fO5cNVnqZ > 6dTT4Z70M+kgC/yPgGbWEMjEPthDORGeIFMBQof2XdBYAlc/B9TiPH4gmhvkhesU > sv5V8Rq9f02LPWmYAAwiCa4BZ+zQDBPQDfBajJhrhUsYfvrSwEW7Jgb9QUXl/00G > h4s1S2ptrg/3NzKFctyUgkxEyDRLEa+eqCNXNUBwakRfb+4dvkjcaKPCclA9bw51 > CxxtffJNR8oDxQoFCe+tXZDc5FWOxUAffkEDft1Qg9rabqMupfKw45Lecg8rtsgN > vU7D0Fxb18OF7p2JOelYA8sfeCCOLMXj91utH87/VK7Jy7IO2keSUw== > =n6J7 > -END PGP SIGNATURE- >
Re: [Dovecot] Dovecot Quota Problem
On Tue, 05 Jan 2010 11:59:45 -0500, Ken Price wrote: > I'm using Dovecot LDA with Exim. I'm also using Dictionary Quotas in a > MySQL database. I want to avoid backscatter completely, so I set > "quota_full_tempfail = yes" and handle quota checking in the Exim RCPT ACL > during the SMTP session. The problem lies in the case where a user's > account is nearly full. Smaller messages will continue to come through, > but a larger message would get queued for retry since it will push the > account over quota. I need Dovecot's quota to exhibit the same behavior as > Exim's "quota_is_inclusive=false". > >>From Exim docs: > quota_is_inclusive=false > When this is done, the check for exceeding the quota does not include the > current message. Thus, deliveries continue until the quota has been > exceeded; thereafter, no futher messages are delivered. > > > Any ideas on how I can implement this inside of Dovecot? Ok, since I've received no responses on my original post, I went about digging through the source. I *think* I found the line which I need to change in order to check the available quota, but not include the current message size in the calculation. My C++ is rusty to say the least, and I'm having a bit of trouble understanding some of the functions, so any help will be appreciated. This is part of the "quota_default_test_alloc()" function. Ideally the patch would add the ability to enable/disable this capability in the dovecot config file, but I'm just looking for a quick 'n' dirty hack at the moment. -- dovecot-1.2.9/src/plugins/quota/quota.c @@ -969,4 +969,4 @@ *too_large_r = FALSE; - if (ctx->count_left != 0 && ctx->bytes_left >= ctx->bytes_used + size) + if (ctx->count_left != 0 && ctx->bytes_left > 0) return 1; -- Any help would be appreciated! Thanks, Ken
[Dovecot] stripping attachments
there is a windows tool that strips attachments from emails on the server. i think it works for exchange. is there a tool or a way to do this for imap? i don't mean a mail filter that would strip them before the user sees them, i mean that the user could actively cooperate to reduce mail storage space, yet keep the original email on the server sans attachment.
Re: [Dovecot] stripping attachments
* Frank Cusack [2010-01-08 15:27]: there is a windows tool that strips attachments from emails on the server. i think it works for exchange. is there a tool or a way to do this for imap? yes, this is doable. e.g. mutt client can delete attachments from messages stored on imap server. in reality it would get the message, strip attachments, upload the message witout attachments and delete the original message with attachments. i believe mozilla thunderbird also offers a similar option. i don't mean a mail filter that would strip them before the user sees them, i mean that the user could actively cooperate to reduce mail storage space, yet keep the original email on the server sans attachment. right. yes, this is done by the approach described before. or you could use the imapsize tool: http://www.broobles.com/imapsize/imap-delete-attachments.php regards, kirill -- #!/usr/bin/perl -w print(&{sub{eval(qq(q(@_)))}}((join(''=>map{ord=~m(1(06|12))?uc:lc}($[=> map{chr}(97..122))[map{int}grep{length}split(/(\d\d)/,'102119200114152'. q(008051816051812080103110518))]))=~m(^(Just)(.+)(Perl)(.+)(?#:-)$)),$/)
[Dovecot] uw-imap compatability hack?
Hi all Apologies if this question has already been asked before... I'm migrating from a uw-imap setup where the mail folders were in a subdir mail/ in the users' home directories. All of the clients are configured with 'IMAP server directory' set to mail/ (Thunderbird) and it would be difficult to change this on the clients (there are 1000s of them) I want to use maildir and I have converted the original mbox files in ~mail/ to maildir format. So in ~Maildir/ I now have: cur dovecot.index dovecot.index.cache dovecot.index.log dovecot-uidlist .Drafts new .Sent-Items .Spam subscriptions tmp .Trash if I remove the mail/ setting from 'IMAP server directory' in the client, then everything works as expected and all the folders are visible. With this setting in however, only the inbox is visible and attempts to click on another folder, say Trash result in the client error: Mailbox doesn't exist .mail.Trash I've tried various namespace configurations I found in the namespaces wiki example but none seem to work. What I would really like to happen is for dovecot to ignore this setting supplied by the client and not to prepend .mail onto the folders it is looking for. Is there a clever namespace that will do this for me, or some other setting or symlink trickery? Ultimately I want to support clients that might have both mail/ and nothing set in this box. Using dovecot 1.07. kind regards Simon -- This e-mail and any attachment is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify me immediately. The contents of this message may contain personal views which are not necessarily the views of Ateb Ltd, unless specifically stated. Mae'r e-bost hwn ac unrhyw atodiad sydd ynghlwm wrtho, yn gyfrinachol. Os yw wedi eich cyrraedd mewn camgymeriad dilëwch ef oddi ar eich system. Peidiwch â defnyddio na datgelu'r wybodaeth mewn unrhyw ffordd a rhowch wybod imi ar unwaith os gwelwch yn dda. Gall y neges gynnwys barn bersonol nad yw o anghenraid yn farn Ateb Cyf, oni ddywedir hynny'n benodol. *** Ateb Ltd. Company No. 3769059 VAT No. 736568987 Registered Address: Marteg House, St. Harmon, Rhayader, Powys LD6 5LG T: 01597 870329 M: 07932 014055 ***
Re: [Dovecot] Sieve > Pigeonhole > external storage with LDAP or other data source available to dovecot
Martin F. Foster wrote: I am looking at porting and generalizing an old in-house patch that I'm using for the CMU Sieve plugin. It allows sieve script to test & lookup arguments from LDAP. Before getting too involved in this, I'd like to discuss my goals here in the hopes that someone else also thinks this would be useful. Many heads may make better design? I thought this would be an excellent opportunity to test the new Pigeonhole plugin support and also to do something interesting with the namespace functionality of the variables extension. That is why I gave this a short look, which promptly resulted in a preliminary implementation. If you want to play around with it, you can download it from: http://hg.rename-it.nl/pigeonhole-sieve-extdata/ It will compile and run with both Pigeonhole for Dovecot v1.2 and Pigeonhole for Dovecot v2.0, but only with the tip Mercurial revisions (since only those have plugin support). I swiped together many of the ideas posted here on the mailing list and from those I concocted the following Sieve language extension: http://hg.rename-it.nl/pigeonhole-sieve-extdata/raw-file/tip/doc/rfc/spec-bosch-sieve-external-data.txt Note that - despite its looks - this is not intended as a IETF draft submission, but merely as a internal memo for the specification of this vendor-specific extension (in a familiar format). It could be further extended with an 'extdata_open' command to dynamically link a resource URI to a data store identifier, but thus far I did not bother to write that idea down. All the necessary installation information should be found in the INSTALL and README files. Note that I have only tested this against a flat file dict and not something like SQL. So that may still be broken somehow. Tell me what you think. Regards, -- Stephan Bosch step...@rename-it.nl
[Dovecot] outlook 2007 can't see public folders more than 1 deep
dovecot-1.2.9 I have a public folder using ACLs to determine who can access it. namespace public { separator = / prefix = shared/ location = maildir:/var/maildir/shared subscriptions = no } Outlook 2007 can't see any folders except at the top level. It can create them just fine, but can't see them after quit and restart. For example, I can create the folder shared/foo/bar but on restart outlook only sees foo as a folder without subfolders (no + to expand it) and doesn't see bar anymore. In fact I can delete the folder foo in outlook and then BOTH .foo and .foo.bar directories are removed on the server. When you click on foo, the error message in the mail pane is "Cannot display the folder. The folder 'foo' cannot contain items. This is most likely a limitation of your IMAP server. In order to create a folder that can contain items, be sure not to append '/' to its name as you create it." -frank