[Dovecot] expire
hi! $ dovecot --exec-mail ext /usr/lib/dovecot/expire-tool.sh /usr/lib/dovecot/expire-tool.sh: 9: Bad substitution What's the problem, do I miss something? This is the first time, I trying to use expire. This is an Ubuntu 10.04 . Thank you, tamas
Re: [Dovecot] expire
Phil Howard wrote, On 2010. 07. 06. 23:10: Looks like a newer version that I can't help on. Should be plenty others around at some point. If I run only the pure binary: $ dovecot --exec-mail ext /usr/lib/dovecot/expire-tool Error: dlopen(/usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so) failed: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so: undefined symbol: capability_string Fatal: Couldn't load required plugins I'm sure, I do something the wrong way. tamas
[Dovecot] quota usage
hi All! Dovecot's version is 1.2.11-0~auto+0 from http://xi.rename-it.nl/debian/ . dovecot.conf: dict { quota = mysql:/data/apps/dovecot/dict-sql.conf #expire = db:/var/lib/dovecot/expire.db } /data/apps/dovecot/dict-sql.conf: connect = host=127.0.0.1 dbname=db user=user password=pw map { pattern = priv/quota/storage table = quota username_field = username value_field = bytes } map { pattern = priv/quota/messages table = quota username_field = username value_field = messages } The problem is that the mailbox is almost empty: $ du -sh . 228K. But the quota usage show something else: mysql select bytes,messages from quota where username='user'; +---+--+ | bytes | messages | +---+--+ | 217699358 | 987 | +---+--+ What could be a problem, how can I fix this? Thank you very much, tamas
Re: [Dovecot] vacation script
Timo Sirainen wrote, On 2010. 03. 10. 10:50: On 10.3.2010, at 10.57, Steffen Kaiser wrote: The autoreply function is wors fine, but the email address are not saved, so when the sender sents more mail, an autoreply email is received again and again. Hmm, the text part looks broken, esp. with text: token, but you said, it's working. Check the file .dovecot.lda-dupes in the user's home directory, if the systen user, deliver runs under, can write to this file and if it is changing. There probably is no home directory, so .dovecot.lda-dupes file isn't being created anywhere. http://wiki.dovecot.org/VirtualUsers/Hom Exctly, you are right. plugin { home = ... } Now it works. Thank you, tamas
[Dovecot] vacation script
hi All, One of my users created this sieve script via roundcube's avelsieve implementation: # This script has been automatically generated by avelsieve # (Sieve Mail Filters Plugin for Squirrelmail) # Warning: If you edit this manually, then the changes will not # be reflected in the users' front-end! #AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTo5O3M6NzoicmVsZWFzZSI7aTo3O3M6Njoic3RyaW5nIjtzOjU6IjEuOS43Ijt9 #AVELSIEVE_CREATED1268148005 #AVELSIEVE_MODIFIED1268148005 require [fileinto,envelope,reject,vacation,relational,comparator-i;ascii-numeric,regex,body]; if #START_SIEVE_RULEYTo2OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6MTp7czo0OiJ0eXBlIjtzOjM6ImFsbCI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo2OiJhY3Rpb24iO3M6MToiNiI7czoxMzoidmFjX2FkZHJlc3NlcyI7czoyMToic2lrZXQuZ2Fib3JAY2VudGVyLmh1IjtzOjg6InZhY19kYXlzIjtzOjE6IjciO3M6MTE6InZhY19tZXNzYWdlIjtzOjUzNzoiMjAxMC4gbeFyY2l1cyA5IC0gMTkga%2FZ69nR0IHN6YWJhZHPhZ29uIHZhZ3lvaywgDQpsZXZlbGVpbWV0IGxlZ2hhbWFyYWJiIG3hcmNpdXMgMjIt6W4gZm9nb20gb2x2YXNuaS4NCg0KVOF2b2xs6XRlbSBhbGF0dCBr6XJlbSwgaG9neSBz%2FHJn9XMgZXNldGJlbiBrb2xs6WfhaW1hdCBrZXJlc3NlLg0KDQpDc%2BFraSBab2x04W4gLSD8emVtZWx0ZXTpcw0KdGVsOiAwNiAxIDk5OSA0NDYwDQplLW1haWw6IGNzYWtpLnpvbHRhbkBjZW50ZXIuaHUNCg0KS2VyZXNrZWRlbG1pIPxneWVrYmVuIGtvbGzpZ%2BFpbSBhIGtlcmVza2VkZWxlbUBjZW50ZXIuaHUgZW1haWwgY%2B1tZW4sDQppbGxldHZlIGEgMDYgMSA5OTkgNDQ2MCB0ZWxlZm9uc3rhbW9uIOFsbG5hayByZW5kZWxrZXrpc%2BlyZS4gDQoNCg0K3GR29npsZXR0ZWw6DQpTaWtldCBH4WJvcg0KDQpDRU5URVIuSFUgS2Z0Lg0KIA0KSXJvZGE6IDExMzMgQnVkYXBlc3QsIFbhZyB1LiAxMy4NClRlbDogKDM2MSkgOTk5IDQ0NjAsIDk5OSA0NDYxDQpGYXg6ICgzNjEpIDk5OSA0NDYyLCA5OTkgNDQ5OQ0KIjt9END_SIEVE_RULE true { vacation :days 7 :addresses [u...@domain.hu] text: 2010. mA(A;rcius 9 - 19 kA(s'zA(s'tt szabadsA(A;gon vagyok, ^M leveleimet leghamarabb mA(A;rcius 22-A(n fogom olvasni.^M [...some more text...] ^M TA(A;vollA(tem alatt kA(rem, hogy sA(z'rgL's esetben kollA(gA(A;imat keresse.^M ^M ^M .^M ; } The text is in hungarian. The autoreply function is wors fine, but the email address are not saved, so when the sender sents more mail, an autoreply email is received again and again. Dovecot version is 1.2.10-0~auto+106 from http://xi.rename-it.nl/debian/ . Is this a bug or maybe I miss something? Is there any dovecot option about this? Thank you, tamas
Re: [Dovecot] Thinderbird+delete+move to Trash folder
Lex Brugman wrote, On 2010. 01. 12. 0:01: (as a reply to your mail) I'm not subscribed to the mailing list, but I just read your thread regarding this plugin. It seems to me that the Shift-Delete function you are referring to in Thunderbird just bypasses the built-in move-to-trash-on-delete function, but on the server-side is identical to any other regular delete action (flag the message as deleted, followed by an expunge later on, probably after closing the mail client) and is thus copied to the trash folder by my plugin. I can't think of anything to distinguish this behavior from a normal delete action by any other mail client and using Shift-Delete in Thunderbird (server-side), if you know one, please let me know and I will try to implement it. hi Lex, I don't know quite a lot about IMAP. I just know courier and cyrus and how the way they work with TB. With them TB expunge the message if I delete it by SHIFT+DEL. What I can see with courier is if I press DEL, it marks the message as deleted and copy it to Trash. I say this, because it leaves the marked message in the mailbox (maildir) and for example I can see and undelete it by mutt. If I press SHIFT+DEL, it does not move the message to Trash, only marks it as deleted. I apologize if I was not exact and I didn't use the right phrases. Thank you, tamas
Re: [Dovecot] Thinderbird+delete+move to Trash folder
Aiko Barz wrote, On 2010. 01. 07. 13:49: Moving mails to Trash or expunging them directly is something, the mailprogram has to take care of. Right now, I guess, your thunderbird configuration is slighty different for dovecot. To prove my guess, you should start with an empty mailbox and a fresh thunderbird profile. Yes, I did with the same result. Does it work for you? Thanks, tamas
Re: [Dovecot] Thinderbird+delete+move to Trash folder
Mark Sapiro wrote, On 2010. 01. 07. 23:28: Here's my dovecot -n # dovecot -n # 1.2.9: /usr/local/etc/dovecot.conf # OS: Linux 2.6.18-8.1.14.el5 i686 CentOS release 5 (Final) protocols: pop3 pop3s imap imaps ssl_cert_file: /etc/postfix/sbh16-cert.pem ssl_key_file: /etc/postfix/sbh16-key.pem login_dir: /usr/local/var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login mail_privileged_group: mail mail_location: mbox:~/Mail:INBOX=/var/spool/mail/%u mbox_write_locks: fcntl dotlock mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 lda: postmaster_address: postmas...@example.com auth default: mechanisms: plain apop login worker_max_count: 5 passdb: driver: passwd-file args: /usr/local/etc/dovecot.passwd passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix Well the conlusion is to me, that I can't use deleted_to_trash and SHIFT+DEL together. Thank you, tamas
Re: [Dovecot] Thinderbird+delete+move to Trash folder
Aiko Barz wrote, On 2009. 12. 22. 11:08: On Tue, Dec 22, 2009 at 12:32:00AM +0100, Papp Tamás wrote: It's like when a messages is deleted from TB, the message get moved to the Trash folder, and it's expunged(?) at the same time. Is it possible? Do you use TB2? And do you have two trash folders? Like: - INBOX.Trash - Trash Then have a look at this bugreport: https://bugzilla.mozilla.org/show_bug.cgi?id=479226 TB3 behaves differently, but still wrong. hi Aiko, Thanks for the quick answer and I'm sorry for the late. Yes, this was the problemm it's solved, but still not everything is cool. I think, I tried everything and now I'm out of clue. If I press DEL with courier+TB, the message was moved to trash. But if I press SHIFT+DEL, it's just removed the message. With dovecot I can't do that. Is there any solution? Thank you, tamas
Re: [Dovecot] pop3+leave messages on server
Timo Sirainen wrote, On 2009. 12. 29. 21:08: dovecot -n output could be helpful. Also did you look at logs? Maybe Yes, I looked logs, I didn't found an error. This is dovecot -n: # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-15-server x86_64 Ubuntu 9.04 xfs protocols: imap imaps pop3 pop3s managesieve ssl_cert_file: /data/apps/dovecot/mail.exampledomain.hu.pem ssl_key_file: /data/apps/dovecot/mail.exampledomain.hu.pem 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 login_executable(managesieve): /usr/lib/dovecot/managesieve-login login_user: _dovecot verbose_proctitle: yes first_valid_uid: 1 mail_privileged_group: dovecot mail_uid: dovecot mail_gid: dovecot mail_location(default): maildir:/data/mail/%d/%n/Maildir/ mail_location(imap): maildir:/data/mail/%d/%n/Maildir/ mail_location(pop3): maildir:/data/mail/%d/%n/Maildir/ mail_location(managesieve): maildir:/data/mail/%d/%n maildir_stat_dirs: yes maildir_copy_preserve_filename: yes maildir_very_dirty_syncs: yes mbox_write_locks: fcntl dotlock mbox_dirty_syncs: no mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota deleted_to_trash mail_plugins(imap): quota imap_quota deleted_to_trash mail_plugins(pop3): mail_plugins(managesieve): 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_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_enable_last(default): no pop3_enable_last(imap): no pop3_enable_last(pop3): yes pop3_enable_last(managesieve): no pop3_reuse_xuidl(default): no pop3_reuse_xuidl(imap): no pop3_reuse_xuidl(pop3): yes pop3_reuse_xuidl(managesieve): no pop3_save_uidl(default): no pop3_save_uidl(imap): no pop3_save_uidl(pop3): yes pop3_save_uidl(managesieve): no pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): lda: postmaster_address: r...@mail.exampledomain.hu hostname: mail0.exampledomain.hu mail_plugins: quota sieve deliver_log_format: msgid=%m: From=%f %$ auth default: mechanisms: plain login default_realm: exampledomain.hu user: dovecot passdb: driver: sql args: /data/apps/dovecot/dovecot-mysql.conf userdb: driver: sql args: /data/apps/dovecot/dovecot-mysql.conf socket: type: listen client: path: /data/postfix/private/dovecot-auth-client mode: 438 user: dovecot group: dovecot master: path: /var/run/dovecot/auth-master mode: 432 user: dovecot group: dovecot plugin: sieve: /data/mail/%d/%n/.sieve.dovecot sieve_dir: /data/mail/%d/%n quota: dict:User quota::proxy::quota quota_rule: *:storage=10GB dict: quota: mysql:/data/apps/dovecot/dict-sql.conf I didn't want to send it, because I don't know, which part is useful in this case. there are errors. http://wiki.dovecot.org/Logging Actually I've juest enabled all debugging related options, except password. I'm afraid, there will be too much messages. Anyway, the possible reasons: 1) Dovecot changed the UIDLs because something weird happened. In that case it logged an error. No error. 2) Did you use the courier migration script so that the UIDLs got converted to Dovecot? If not, maybe Outlook got confused because the UIDLs changed, and fixing it would require recreating the Outlook account or something.. No, there was no conversation. I was thinking about recreating the account, but it's not possible right now. It will be actual in 1-2 weeks. Anyway, even if it help, there is an error, which does not happen all the time, still I think it's server related. 3) Outlook just doesn't like the new UIDLs and messes up itself. I think Courier usually uses maildir filenames as UIDLs, you could have kept doing that with pop3_uidl_format=%f. But changing it now would cause users to redownload everything again.. With v1.2.5+ you could use pop3_save_uidl=yes to make it possible to change UIDLs on the fly. Are you sure, it can be enabled on the fly and if I use it, the mail won't be donwload again after changing the uidl format? Thank you, tamas
Re: [Dovecot] pop3+leave messages on server
Justin Krejci wrote, On 2009. 12. 29. 16:27: Not to pick nits but pop3+leave on server does not mean you have all message from the dawn of time stored on the server. Outlook and presumably other MUAs have remove from server after X time and remove from server when message is deleted options when leaving pop3 messages on the server is enabled. I agree with the general principal though that if you wish to keep messages on server as general practice you should use IMAP. IMO pop3+leave is really only ideal while traveling using other clients/computers or maybe if IMAP is not offered at all. This is not an ideal situation, we are agreed. tamas
Re: [Dovecot] pop3+leave messages on server
Charles Marcus wrote, On 2009. 12. 29. 13:18: The fact that he has had 'no problems' in many years is purely the luck of the draw. One minor bug in either the IMAP/POP server or the mail client during an upgrade or other maintenance, and boom - he will *really* be surprised when *all* of his messages from the last few *years* are downloaded again, not just the last few hours worth. No, he makes the messages deleted from time to time. tamas
[Dovecot] Thinderbird+delete+move to Trash folder
hi All, I have a problem, which makes me headache. I can't find out, what is the problem. I have a mail szerver, which works just fine as expected, TB move messages to trash folder after I delete it, and they are moved. I have an other server. If I delete a message, it doesn't move to the Trash folder. As deleted_to_trash plugin is installed, if I only mark messages as deleted, they are moved to thee Trash folder and also with Outlook works well. It's like when a messages is deleted from TB, the message get moved to the Trash folder, and it's expunged(?) at the same time. Is it possible? Could you help me? The system is Ubuntu 9.04 with docecot 1.2.5-0~auto+0 from http://xi.rename-it.nl/debian/, but builded by myself for x86_64. Thank you, tamas
Re: [Dovecot] Thinderbird+delete+move to Trash folder
Papp Tamás wrote, On 2009. 12. 22. 0:32: hi All, I have a problem, which makes me headache. I can't find out, what is the problem. I have a mail szerver, which works just fine as expected, TB move messages to trash folder after I delete it, and they are moved. I have an other server. If I delete a message, it doesn't move to the Trash folder. As deleted_to_trash plugin is installed, if I only mark messages as deleted, they are moved to thee Trash folder and also with Outlook works well. It's like when a messages is deleted from TB, the message get moved to the Trash folder, and it's expunged(?) at the same time. Is it possible? Could you help me? The system is Ubuntu 9.04 with docecot 1.2.5-0~auto+0 from http://xi.rename-it.nl/debian/, but builded by myself for x86_64. I've just tried 1.2.9-0~auto+21 and I see the same. But(!) if I press SHIFT+DELETE, than it's working as it should work with the pure DELETE. Probably SHIFT+DEL set only the delete flag, it does not move the message? Thank you, tamas