[Dovecot] system accepts my domains without point
I have postfix+ dovecot + ldap (AD). my system accepts u...@domain as u...@domain. as u...@domain.com. To send as much to create the mailbox when I login to squirrelmail, for example. Problem is postfix, dovecot or from AD? Someone can help me? -- ## # Esteban Torres Rodríguez # # Área de Soporte Técnico# # Subdirección de Sistemas Informáticos # # Empresa Pública Desarrollo Agrario y Pesquero # # email: etor...@dap.es # ##
Re: [Dovecot] Missing IMAP folders after Server reboot
Hi, I see INOBX, Trash, Drafts. All but INBOX have no items, after doing list command. Thanks, Eoin -Original Message- From: dovecot-bounces+ekennedy=sherlings@dovecot.org [mailto:dovecot-bounces+ekennedy=sherlings@dovecot.org] On Behalf Of punit_j Sent: 31 May 2009 19:45 To: ekenn...@sherlings.com Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Missing IMAP folders after Server reboot Did you try looking for the folders by connecting to IMAP using command line. telnet servername 143 a1 login username pass a2 list * Check if you could see anything. - Sherling Sons Ltd, Jamestown Road, Inchicore, Dublin 8, Ireland. Company Reg No. 9294 Website: www.sherlingsteel.com
Re: [Dovecot] IMAP labeling sometimes not taken into account
Timo Sirainen a écrit : On Mon, 2009-06-01 at 12:43 +0200, Olivier Cailloux wrote: Since the change for dovecot, however, things are going strange. Sometimes the labels disappear for some reasons. Sometimes they stay there. And I can't reproduce the behavior, it just seems random. This is very annoying as it totally breaks my e-mail management. Yes, there have been some bugs related to handling them. clients agree: this e-mail has a 5 label. BUT when I open the mbox file directly on the imap server (using less), and scroll to that given e-mail, I see NO X-Keywords: line. How then can the e-mail clients know that this e-mail is labeled? The keywords are also stored in Dovecot's index files. Although they should still be written to mbox files too. 2-12h38-~#dovecot --version 1.0.15 I'd first try a recent v1.1 release. It might have already fixed this bug. Also you could try if setting mbox_lazy_writes=no helps. Done that. Upgraded to 1.1.15, and set mbox_dirty_syncs: no and mbox_lazy_writes: no and restarted. Still the same behavior: some e-mails are still seen as been labeled by thunderbird while the mbox file does not contain any label for these e-mails. How can I tell dovecot to re-generate its index files? I guess they have been wrong at some point and now it keeps using that wrong information. Or if anybody has any other idea... Olivier
Re: [Dovecot] recipient delimiter and lmtp
On 6/2/2009, Steffen Kaiser (skdove...@smail.inf.fh-brs.de) wrote: The reason I ask is, some sites don't allow the use of the '+' delimiter, so having a second optional character, and/or the ability to use a dot anywhere in the local part, would provide a workaround to these site... '+' is the separator of sendmail. The MTA must support it, too, to know that the recipient is local. Qmail uses '-', in postfix you can configure the delimiter. I know... I don't have local recipients, but you are right, I was forgetting that recipient validation is done by the MTA... So, I'd need to find a way to trick postfix into seeing one or more alternate characters as '+' (or whatever it is defined as), for recipient validation purposes... But, the LDA/Sieve would *also* need to be able to handle these same characters, for Delivery/Filtering purposes. To insert a '.' anyplace into the recipient name, you have to do something on MTA level. E.g. with sendmail you could map: 'lo.calRecpient' to 'localRecipient+lo.calRecpient' But that's not what I want. I want: lo.calrecipi...@example.com = localrecipi...@example.com for both recipient validation *and* Delivery purposes, *but*... obviously the LDA (in addition to postfix) would have to understand that they are the same, and Sieve would as well, in order to be able to filter/file into a folder based on a matching rule *if* one exists - or just Deliver to the Inbox for localrecipi...@example.com if one doesn't. I have been using this ability in gmail for a long time, and it is extremely powerful, so I'd just love to see a private implementation. -- Best regards, Charles
Re: [Dovecot] recipient delimiter and lmtp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 2 Jun 2009, Charles Marcus wrote: To insert a '.' anyplace into the recipient name, you have to do something on MTA level. E.g. with sendmail you could map: 'lo.calRecpient' to 'localRecipient+lo.calRecpient' But that's not what I want. I want: lo.calrecipi...@example.com = localrecipi...@example.com for both recipient validation *and* Delivery purposes, *but*... obviously the LDA (in addition to postfix) would have to understand that they are the same, and Sieve would as well, in order to be able to filter/file into a folder based on a matching rule *if* one exists - or just Deliver to the Inbox for localrecipi...@example.com if one doesn't. Therefore my suggestions to map us.er to user+us.er. This is done with envelope information during SMTP not in headers, hence, should not effect delivery phase. After mapping, postfix delivers to user (local recipient), you configure Postfix to call Dovecot deliver with -d user -m detail -n. -m detail is the default mailbox, -n does not create a missing mailbox. Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSiUBG3WSIuGy1ktrAQJaEAgAtVS2ZJoWmRsJhABKf2SMfwIAKk6D+S0H OYs3vUkFbsqcQTd+9Xg32R2lpPcuHhHkij5lQM33q+q9lNuBYSf3b2qT4UTcLwcz 4nTCprCySD4UGxa2i1KOs7LKxoXeMO8jRuG5s3uOqEeTqs2fb+6sctSWSnvgInnH t/fClJ7YvO8KTP17b8ecn3NKRBQ2I9295oFhuzQe4P755bdmBoS5PsU4HXL4db0h TFUX4RqDqlBDg3KKWOkmbPczhIRCB71AJmpzetWHyma9ovJH7G8mJ3YXoAMYjDCL 4thGygxjiOnwUXqeQs5nD5G9aiU1cQPcgz/J/L6Ks0P3DiGh0nj3MQ== =UNsH -END PGP SIGNATURE-
Re: [Dovecot] recipient delimiter and lmtp
On 6/2/2009, Steffen Kaiser (skdove...@smail.inf.fh-brs.de) wrote: obviously the LDA (in addition to postfix) would have to understand that they are the same, and Sieve would as well, in order to be able to filter/file into a folder based on a matching rule *if* one exists - or just Deliver to the Inbox for localrecipi...@example.com if one doesn't. Therefore my suggestions to map us.er to user+us.er. This is done with envelope information during SMTP not in headers, hence, should not effect delivery phase. After mapping, postfix delivers to user (local recipient), you configure Postfix to call Dovecot deliver with -d user -m detail -n. -m detail is the default mailbox, -n does not create a missing mailbox. Hmmm... ok, I think (hope) I see... Thanks for applying the clue-stick so gently Steffen... :) Now I'm off to the postfixadmin list to see if this capability could be added (to have some kind of regex based aliasing that can be toggled on/off, that controls the whole thing, allowing me to simply specify the optional 'plus' character(s) I want to use. -- Best regards, Charles
[Dovecot] v1.2, v1.3, v2.0 ....
Hi all, On the Mercurial repository, I see many upcoming releases (1.2 (which works almost very fine), 1.3 (what is it ?), 2.0 (how stable is it ?)) What is the rational behind all those versions ? Thanks Joan
[Dovecot] User with multiple domains
Hi, I am running Dovecot on Linux Debian with Exim4 with a number multiple domains. I have a new user who want to use a single username with more than one domain eg: t...@domainone.com t...@domaintwo.com t...@domainthree.com Exim is working fine with mail correctly with mail going to /home/domainone.com/test/Maildir/new/ /home/domaintwo.com/test/Maildir/new/ /home/domainthree.com/test/Maildir/new/ The Dovecot password files are in /home/domainone.com/etc/passwd.dovecot /home/domaintwo.com/etc/passwd.dovecot /home/domainthree.com/etc/passwd.dovecot When trying to retrieve email using Dovecot for t...@domaintwo.com the password is not recognised although it is for t...@domainone.com. Help Please Peter
[Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
I use mbox with mbox-snarf plugin. I get errors like: dovecot: IMAP(testuser): Corrupted index cache file /full/path/ dovecot.index.cache: record points outside file The errors can be in either folders or INBOX. I put some syslog statements in src/lib-index/mail-cache-lookup.c to help understand this. if (offset + sizeof(*rec) cache-mmap_length) { mail_cache_set_corrupted(cache, record points outside file); syslog(LOG_DEBUG,mail_cache_get_record rec-size is %d , rec-size); syslog(LOG_DEBUG,cache-mmap_length is %d , cache- mmap_length); syslog(LOG_DEBUG,offset is %d , offset); return -1; } syslog: mail_cache_get_record rec-size is 268595472 syslog: cache-mmap_length is 4096 syslog: offset is 1630760037 Oh I forgot to print off sizeof(*rec). Would that help? Thanks, Jonathan smime.p7s Description: S/MIME cryptographic signature
[Dovecot] Panic with signal 6 core dump with revision 9116:9ae55b68cf61
Jun 2 10:05:14 hostname dovecot: IMAP(testuser): Panic: file istream- raw-mbox.c: line 380: assertion failed: (new_pos 0) Jun 2 10:05:14 hostname dovecot: dovecot: child 544822 (imap) killed with signal 6 (dbx) where raise(??) at 0x905a68c abort() at 0x9085c2c default_fatal_finish(type = LOG_TYPE_PANIC, status = 0), line 160 in failures.c i_internal_fatal_handler(type = LOG_TYPE_PANIC, status = 0, fmt = file %s: line %d: assertion failed: (%s), args = ), line 440 in failures.c i_panic(format = file %s: line %d: assertion failed: (%s), ... = 0x1001731b4, 0x17c, 0x100173328, 0x0, 0x15b5, 0x0, 0x0), line 207 in failures.c i_stream_raw_mbox_read(stream = 0x0001100ca6b0), line 380 in istream-raw-mbox.c i_stream_raw_mbox_read(stream = 0x0001100ca6b0), line 379 in istream-raw-mbox.c i_stream_read(stream = 0x0001100ca700), line 80 in istream.c i_stream_limit_read(stream = 0x0001100cb930), line 64 in istream- limit.c i_stream_read(stream = 0x0001100cb980), line 80 in istream.c i_stream_read_copy_from_parent(istream = 0x0001100cbb20), line 118 in istream.c i_stream_header_filter_read(stream = 0x0001100cbad0), line 315 in istream-header-filter.c i_stream_read(stream = 0x0001100cbb20), line 80 in istream.c i_stream_read_copy_from_parent(istream = 0x0001100cbd20), line 118 in istream.c i_stream_mail_stats_read_mail_stats(stream = 0x0001100cbcd0), line 47 in istream-mail-stats.c i_stream_read(stream = 0x0001100cbd20), line 80 in istream.c i_stream_read_data(stream = 0x0001100cbd20, data_r = 0x0fffecc0, size_r = 0x0fffecc8, threshold = 1), line 361 in istream.c message_parser_read_more(ctx = 0x0001100cc118, block_r = 0x0fffecb0, full_r = 0x0fffeb84), line 118 in message- parser.c parse_next_body_to_boundary(ctx = 0x0001100cc118, block_r = 0x0fffecb0), line 330 in message-parser.c message_parser_parse_next_block(ctx = 0x0001100cc118, block_r = 0x0fffecb0), line 768 in message-parser.c message_parser_parse_body(ctx = 0x0001100cc118, hdr_callback = (nil), context = (nil)), line 831 in message-parser.c index_mail_parse_body(mail = 0x0001100c9878, field = MAIL_CACHE_FLAGS), line 792 in index-mail.c index_mail_get_parts(_mail = 0x0001100c9878, parts_r = 0x0fffef28), line 224 in index-mail.c mail_get_parts(mail = 0x0001100c9878, parts_r = 0x0fffef28), line 71 in mail.c unnamed block in search_arg_match_text(args = 0x0001100c7e70, ctx = 0x0001100c95f0, ret = -1), line 647 in index-search.c search_arg_match_text(args = 0x0001100c7e70, ctx = 0x0001100c95f0, ret = -1), line 647 in index-search.c search_match_next(ctx = 0x0001100c95f0), line 1101 in index- search.c unnamed block in index_storage_search_next_nonblock(_ctx = 0x0001100c95f0, mail = 0x0001100c9878, tryagain_r = 0x01e0), line 1301 in index-search.c index_storage_search_next_nonblock(_ctx = 0x0001100c95f0, mail = 0x0001100c9878, tryagain_r = 0x01e0), line 1301 in index-search.c mailbox_search_next_nonblock(ctx = 0x0001100c95f0, mail = 0x0001100c9878, tryagain_r = 0x01e0), line 754 in mail-storage.c cmd_search_more(cmd = 0x000110022058), line 347 in imap-search.c cmd_search_more_callback(cmd = 0x000110022058), line 434 in imap- search.c unnamed block in io_loop_handle_timeouts_real(ioloop = 0x00011001f310), line 316 in ioloop.c io_loop_handle_timeouts_real(ioloop = 0x00011001f310), line 316 in ioloop.c unnamed block in io_loop_handle_timeouts(ioloop = 0x00011001f310), line 327 in ioloop.c io_loop_handle_timeouts(ioloop = 0x00011001f310), line 327 in ioloop.c io_loop_handler_run(ioloop = 0x00011001f310), line 162 in ioloop- poll.c io_loop_run(ioloop = 0x00011001f310), line 338 in ioloop.c main(argc = 1, argv = 0x0630, envp = 0x0640), line 323 in main.c smime.p7s Description: S/MIME cryptographic signature
Re: [Dovecot] v1.2, v1.3, v2.0 ....
On 6/2/2009 8:36 AM, Joan wrote: Hi all, On the Mercurial repository, I see many upcoming releases (1.2 (which works almost very fine), 1.3 (what is it ?), 2.0 (how stable is it ?)) What is the rational behind all those versions ? http://wiki.dovecot.org/Roadmap My understanding is, Timo had originally been planning a 1.3 release, but decided that 2.0 will come after 1.2, which is very close to release ready - but I'm not sure, maybe he is still planning a 1.3... 2.0 will contain major changes (see page above)... -- Best regards, Charles
[Dovecot] 1.2.rc3 crash of deliver for one out of 4 recipients
Please find below details of a crash of deliver. The dovecot version is still at 1.2.rc3 as we use Stephan Bosch's sieve, for which there is no patch for rc4. Sieve is at 0.1.4 and managesieve at 0.11.3 if that matters. The mail had 4 recipients at the local mail server, the first seems to have triggered the crash, the other three mails were delivered: May 31 02:07:25 apollo postfix/qmgr[6437]: AF24F3F81D7: from=r...@triton.ifh.de, size=765407, nrcpt=4 (queue active) This is the first and only crash I could find in the logs (approx 500k Lines of postfix/dovecot logs) The following information could be extracted from the logfile (no core dump unfortunately) May 31 02:07:25 apollo dovecot: deliver(user1): Panic: file istream.c: line 99 (i_stream_read): assertion failed: ((size_t)ret+old_size == _stream-pos - _stream-skip) May 31 02:07:25 apollo dovecot: deliver(user1): Raw backtrace: /usr/libexec/dovecot/deliver [0x48e920] - /usr/libexec/dovecot/deliver(i_syslog_fatal_handler+0x2b) [0x48e9bb] - /usr/libexec/dovecot/deliver [0x48e006] - /usr/libexec/dovecot/deliver [0x49305e] - /usr/libexec/dovecot/deliver [0x4959f1] - /usr/libexec/dovecot/deliver(i_stream_read+0x48) [0x492f28] - /usr/libexec/dovecot/deliver(i_stream_read_data+0x28) [0x493088] - /usr/libexec/dovecot/deliver [0x48764e] - /usr/libexec/dovecot/deliver [0x487afe] - /usr/libexec/dovecot/deliver(message_parser_parse_next_block+0x29) [0x487769] - /usr/libexec/dovecot/deliver(index_mail_cache_parse_continue+0x1f) [0x446cff] - /usr/libexec/dovecot/deliver(maildir_save_continue+0x48) [0x42c9c8] - /usr/libexec/dovecot/deliver(mail_storage_copy+0x6a) [0x454c7a] - /usr/libexec/dovecot/deliver(maildir_copy+0x5e) [0x4295fe] - /usr/lib64/dovecot/lda/lib10_quota_plugin.so [0x2b5bf2754e4c] - /usr/lib64/dovecot/lda/lib90_sieve_plugin.so [0x2b5bf2983b25] - /usr/lib6 The output of dovecot -n: = # 1.2.rc3: /etc/dovecot.conf # OS: Linux 2.6.18-128.1.6.el5 x86_64 Scientific Linux SL release 5.3 (Boron) protocols: imap imaps managesieve listen(default): * listen(imap): * listen(managesieve): *:2009 disable_plaintext_auth: yes shutdown_clients: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(managesieve): /usr/libexec/dovecot/managesieve-login login_processes_count: 1 login_max_processes_count: 256 verbose_proctitle: yes mmap_disable: yes fsync_disable: yes lock_method: dotlock maildir_copy_with_hardlinks: no mbox_read_locks: dotlock flock mbox_write_locks: dotlock flock mail_drop_priv_before_exec: yes mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(managesieve): /usr/libexec/dovecot/managesieve mail_plugins(default): quota imap_quota zlib acl imap_acl mail_plugins(imap): quota imap_quota zlib acl imap_acl mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve imap_client_workarounds(default): delay-newmail netscape-eoh tb-extra-mailbox-sep outlook-idle imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep outlook-idle imap_client_workarounds(managesieve): namespace: type: private separator: / location: maildir:~/Maildir inbox: yes list: yes subscriptions: yes namespace: type: private separator: / prefix: #mbox/ location: mbox:~/mail hidden: yes list: yes subscriptions: yes auth default: mechanisms: gssapi gss-spnego login plain realms: IFH.DE DESY.DE passdb: driver: pam args: max_requests=1 userdb: driver: passwd-file args: /etc/userdb socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 master: path: /var/run/dovecot/auth-master mode: 438 plugin: quota: maildir:User Quota quota_rule: *:storage=1000MB quota_rule2: INBOX:storage=1000MB quota_rule3: Trash:ignore acl: vfile:/etc/dovecot-acls:cache_secs=300 sieve_storage: /var/spool/sieve/%u sieve: /var/spool/sieve/%u.sieve quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95 quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80 quota_warning3: storage=60%% /usr/local/bin/quota-warning.sh 60 -- Wolfgang Friebel Deutsches Elektronen-Synchrotron DESY Phone/Fax: +49 33762 77372/216Platanenallee 6 Mail: Wolfgang.Friebel AT desy.de D-15738 Zeuthen Germany
[Dovecot] Log filenames of saved files to inbox by dovecot-deliver
Hello, Is it possible to log the filenames into deliver.log where dovecot- deliver saved incoming emails? If not so, please add this as a feature request. Thanks in advance! Regards, Sven
Re: [Dovecot] v3.0 architecture
Timo Sirainen t...@iki.fi writes: The big problem is what the protocol should be. Use some existing RPC protocol? It should be something extensible so that a plugin in imap process can talk to a plugin in storage process, without the base processes knowing anything about the details (e.g. imap-quota plugin asking quota usage from storage's quota plugin). In any case the client side API should be asynchronous. That can make it annoyingly difficult to use though. Wonder if I could switch to erlang or something for the imap/pop3 processes :) I realise I'm coming a little late to this conversation. Various people have suggested various RPC mechanisms. Might I humbly suggest also looking at 9P (or 9P2000) the Plan9 filesystem protocol. [1] The general design philosophy in Plan9 is not to use an increasing number of application specific RPC mechanisms but instead to implement everything in a synthetic filesystem tree. The 9P protocol handles the basic operations required to navigate the filesystem tree and read/write to the files within. The semantics of RPC are then relegated to the specification for the layout of the filesystem and meaning assigned to reading or writing to files within that tree. This allows for extensibility (and incidently discoverability) - new features or plugins appear as a new file or directory hierarchy in the presented filesystem layout. As a concrete example the so called upas/fs [2] presents a view of a mailbox independent of the actual storage mechanism used for the data contained in the mailbox. From the manpage The mailbox itself becomes a directory under /mail/fs. Each message in the mailbox becomes a numbered directory in the mailbox directory, and each attachment becomes a numbered directory in the message directory. Since an attachment may itself be a mail message, this structure can recurse ad nauseam. See [2] for more details. I'm not suggesting this layout would be exactly right for the Dovecot storage protocol but it may provide a starting point. It's probably worth noting the irony, given this is a maillist about Dovecot, in that this approach almost obsoletes the need for an IMAP protocol in the first place (the upas/fs style layout as documented doesn't really provide sufficient support for server side search for example). Footnotes: [1] http://plan9.bell-labs.com/magic/man2html/5/0intro [2] http://plan9.bell-labs.com/magic/man2html/4/upasfs
Re: [Dovecot] Log filenames of saved files to inbox by dovecot-deliver
On 6/2/2009, Sven Eulberg (m...@eulberg.name) wrote: Is it possible to log the filenames into deliver.log where dovecot-deliver saved incoming emails? If not so, please add this as a feature request. Maybe Maillog plugin does what you want? http://wiki.dovecot.org/Plugins/MailLog -- Best regards, Charles
Re: [Dovecot] User with multiple domains
On 6/2/2009 9:44 AM, Peter Sparkes wrote: The Dovecot password files are in /home/domainone.com/etc/passwd.dovecot /home/domaintwo.com/etc/passwd.dovecot /home/domainthree.com/etc/passwd.dovecot When trying to retrieve email using Dovecot for t...@domaintwo.com the password is not recognised although it is for t...@domainone.com. Help Please dovecot -n output? -- Best regards, Charles
Re: [Dovecot] v1.1.16 released (managesieve updated)
Timo Sirainen wrote: http://dovecot.org/releases/1.1/dovecot-1.1.16.tar.gz http://dovecot.org/releases/1.1/dovecot-1.1.16.tar.gz.sig I refreshed the ManageSieve patch: http://www.rename-it.nl/dovecot/1.1/dovecot-1.1.16-managesieve-0.10.6.diff.gz http://www.rename-it.nl/dovecot/1.1/dovecot-1.1.16-managesieve-0.10.6.diff.gz.sig Regards, Stephan
Re: [Dovecot] User with multiple domains
Charles Marcus wrote: On 6/2/2009 9:44 AM, Peter Sparkes wrote: The Dovecot password files are in /home/domainone.com/etc/passwd.dovecot /home/domaintwo.com/etc/passwd.dovecot /home/domainthree.com/etc/passwd.dovecot When trying to retrieve email using Dovecot for t...@domaintwo.com the password is not recognised although it is for t...@domainone.com. Help Please dovecot -n output? # /etc/dovecot/dovecot.conf 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_extra_groups: mail mail_location: maildir:/home/%d/%n/Maildir mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/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 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: /home/%d/etc/passwd.dovecot userdb: driver: passwd userdb: driver: passwd-file args: /home/%d/etc/passwd.dovecot Peter
Re: [Dovecot] Missing IMAP folders after Server reboot
First find where the mailboxes exist on your filesystem. Then make sure mail_location points to that place. On Tue, 2009-06-02 at 09:40 +0100, Eoin Kennedy wrote: Hi, I see INOBX, Trash, Drafts. All but INBOX have no items, after doing list command. Thanks, Eoin -Original Message- From: dovecot-bounces+ekennedy=sherlings@dovecot.org [mailto:dovecot-bounces+ekennedy=sherlings@dovecot.org] On Behalf Of punit_j Sent: 31 May 2009 19:45 To: ekenn...@sherlings.com Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Missing IMAP folders after Server reboot Did you try looking for the folders by connecting to IMAP using command line. telnet servername 143 a1 login username pass a2 list * Check if you could see anything. - Sherling Sons Ltd, Jamestown Road, Inchicore, Dublin 8, Ireland. Company Reg No. 9294 Website: www.sherlingsteel.com signature.asc Description: This is a digitally signed message part
Re: [Dovecot] User with multiple domains
On Tue, 2009-06-02 at 17:06 +0100, Peter Sparkes wrote: When trying to retrieve email using Dovecot for t...@domaintwo.com the password is not recognised although it is for t...@domainone.com. .. auth default: verbose: yes debug: yes debug_passwords: yes So, what does it log with these? signature.asc Description: This is a digitally signed message part
Re: [Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
On Tue, 2009-06-02 at 09:51 -0400, Jonathan Siegle wrote: I use mbox with mbox-snarf plugin. I get errors like: dovecot: IMAP(testuser): Corrupted index cache file /full/path/ dovecot.index.cache: record points outside file So you're using AIX? Do you also happen to use NFS? Can you reproduce this error by running imaptest for a while? http://imapwiki.org/ImapTest signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Panic with signal 6 core dump with revision 9116:9ae55b68cf61
On Tue, 2009-06-02 at 10:17 -0400, Jonathan Siegle wrote: Jun 2 10:05:14 hostname dovecot: IMAP(testuser): Panic: file istream- raw-mbox.c: line 380: assertion failed: (new_pos 0) Any chance this is also reproducible? unnamed block in search_arg_match_text(args = 0x0001100c7e70, ctx = 0x0001100c95f0, ret = -1), line 647 in index-search.c search_arg_match_text(args = 0x0001100c7e70, ctx = 0x0001100c95f0, ret = -1), line 647 in index-search.c Apparently using something like: 1 search text hello If it's reproducible, I'd like to get the mbox, or if it contains sensitive data put it through http://dovecot.org/tools/mbox-anonymize.pl signature.asc Description: This is a digitally signed message part
[Dovecot] Running imaptest revision 209:939fa886391a built against dovecot revision 9116:9ae55b68cf61 on AIX 5.3 core dumps
# ./imaptest host=127.0.0.1 port=143 user=tstem38 pass=pass4you mbox=/ gpfs/users/t/s/tstem38/IMAP/foo4 Panic: file client.c: line 620: assertion failed: (idx = array_count(clients) == NULL) IOT/Abort trap(coredump) smime.p7s Description: S/MIME cryptographic signature
Re: [Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
On Tue, 2 Jun 2009, Timo Sirainen wrote: On Tue, 2009-06-02 at 09:51 -0400, Jonathan Siegle wrote: I use mbox with mbox-snarf plugin. I get errors like: dovecot: IMAP(testuser): Corrupted index cache file /full/path/ dovecot.index.cache: record points outside file So you're using AIX? Do you also happen to use NFS? Can you reproduce this error by running imaptest for a while? http://imapwiki.org/ImapTest No NFS here. The filesystem is called GPFS. It is a clustered FS. I'll work on reproducing with imaptest. Once I reproduce, I'll give more details about how I run dovecot. thanks, Jonathan
Re: [Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
On Tue, 2009-06-02 at 13:24 -0400, jsie...@psu.edu wrote: dovecot: IMAP(testuser): Corrupted index cache file /full/path/ dovecot.index.cache: record points outside file So you're using AIX? Do you also happen to use NFS? Can you reproduce this error by running imaptest for a while? http://imapwiki.org/ImapTest No NFS here. The filesystem is called GPFS. It is a clustered FS. Ah, that probably explains it. Can multiple different servers modify the same mailbox? Cache file is the part of Dovecot that demands the most from the OS/filesystem. The most difficult part is probably that it writes to the file without locking. It first reserves a space and then starts writing there. Multiple processes can write to the same file at the same time. This should probably be changed at some point, since it could just buffer more data to memory and then lock, write, unlock. That would also make the code simpler, since it can currently leave holes to the file because it has to guess initially how much space to reserve.. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Running imaptest revision 209:939fa886391a built against dovecot revision 9116:9ae55b68cf61 on AIX 5.3 core dumps
On Tue, 2009-06-02 at 13:21 -0400, Jonathan Siegle wrote: # ./imaptest host=127.0.0.1 port=143 user=tstem38 pass=pass4you mbox=/ gpfs/users/t/s/tstem38/IMAP/foo4 Panic: file client.c: line 620: assertion failed: (idx = array_count(clients) == NULL) IOT/Abort trap(coredump) That's because you're not using gcc.. Hmm. Well, for now you could just delete that assert from the code. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Running imaptest revision 209:939fa886391a built against dovecot revision 9116:9ae55b68cf61 on AIX 5.3 core dumps
On Tue, 2 Jun 2009, Timo Sirainen wrote: On Tue, 2009-06-02 at 13:21 -0400, Jonathan Siegle wrote: # ./imaptest host=127.0.0.1 port=143 user=tstem38 pass=pass4you mbox=/ gpfs/users/t/s/tstem38/IMAP/foo4 Panic: file client.c: line 620: assertion failed: (idx = array_count(clients) == NULL) IOT/Abort trap(coredump) That's because you're not using gcc.. Hmm. Well, for now you could just delete that assert from the code. Do you have a preferred version of gcc for this? thanks, Jonathan
Re: [Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
On Tue, 2 Jun 2009, Timo Sirainen wrote: On Tue, 2009-06-02 at 13:24 -0400, jsie...@psu.edu wrote: dovecot: IMAP(testuser): Corrupted index cache file /full/path/ dovecot.index.cache: record points outside file So you're using AIX? Do you also happen to use NFS? Can you reproduce this error by running imaptest for a while? http://imapwiki.org/ImapTest No NFS here. The filesystem is called GPFS. It is a clustered FS. Ah, that probably explains it. Can multiple different servers modify the same mailbox? Yes. I have N+1 machines that access the same filesystem and it looks local to both machines. Cache file is the part of Dovecot that demands the most from the OS/filesystem. The most difficult part is probably that it writes to the file without locking. It first reserves a space and then starts writing there. Multiple processes can write to the same file at the same time. This should probably be changed at some point, since it could just buffer more data to memory and then lock, write, unlock. That would also make the code simpler, since it can currently leave holes to the file because it has to guess initially how much space to reserve.. Ok. Should I disable Cache file or what would be the best fix? Thanks, Jonathan
Re: [Dovecot] Running imaptest revision 209:939fa886391a built against dovecot revision 9116:9ae55b68cf61 on AIX 5.3 core dumps
On Tue, 2009-06-02 at 13:36 -0400, jsie...@psu.edu wrote: On Tue, 2 Jun 2009, Timo Sirainen wrote: On Tue, 2009-06-02 at 13:21 -0400, Jonathan Siegle wrote: # ./imaptest host=127.0.0.1 port=143 user=tstem38 pass=pass4you mbox=/ gpfs/users/t/s/tstem38/IMAP/foo4 Panic: file client.c: line 620: assertion failed: (idx = array_count(clients) == NULL) IOT/Abort trap(coredump) That's because you're not using gcc.. Hmm. Well, for now you could just delete that assert from the code. Do you have a preferred version of gcc for this? No, anything above 3 should be fine. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
On Tue, 2009-06-02 at 13:40 -0400, jsie...@psu.edu wrote: Cache file is the part of Dovecot that demands the most from the OS/filesystem. The most difficult part is probably that it writes to the file without locking. It first reserves a space and then starts writing there. Multiple processes can write to the same file at the same time. This should probably be changed at some point, since it could just buffer more data to memory and then lock, write, unlock. That would also make the code simpler, since it can currently leave holes to the file because it has to guess initially how much space to reserve.. Ok. Should I disable Cache file or what would be the best fix? If you do that, you'll lose all the performance advantages of Dovecot. Do you already have mmap_disable=yes? You could also try if setting mail_nfs_index=yes happens to help. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] expire tool - individual user/folder?
This is what I meant actually, the name just changed in v1.2. What do you get with the attached patch? patch fixes the problem in both cases. it does not care if --enable-debug is enabled or disabled. in 1.1.16 it works without the patch. Thanks, Andre
[Dovecot] Help please- Post - Login Script--- Migration
Hi all I am in the process of migrating Courier to Dovecot, am using courier-dovecot-migrate.plhttp://www.dovecot.org/tools/courier-dovecot-migrate.plit works fine. I want to migrate each user as they login using post-login script (As i have huge no of users). We are using NFS storage, users are authenticated using mysql, User home directories as passed using variable mail ( usign mysql query). I am trying to execute postlogin script which does the conversion but unable to pass the user home directories . --*/etc/dovecot.conf mail_executable = /usr/libexec/dovecot/postloginscript.sh %h ---* %h for home directory. ---*postloginscript.sh #!/bin/sh /usr/libexec/dovecot/courier-dovecot-migrate.pl --quiet --to-dovecot --recursive --convert $1 # This is for pop3 exec /usr/libexec/dovecot/pop3 * When i pass %h as argument its creating %h directory and writing dovecot-uidlist and rest the files in %h directory. Its not interpreting the %h and not passing the home directory. Its just passing as it is. Hope i am clear in articulating my problem. Please help. -- Regards Ash
Re: [Dovecot] expire tool - individual user/folder?
On Tue, 2009-06-02 at 20:21 +0200, Andre Hübner wrote: This is what I meant actually, the name just changed in v1.2. What do you get with the attached patch? patch fixes the problem in both cases. it does not care if --enable-debug is enabled or disabled. The patch shouldn't really have changed anything. in 1.1.16 it works without the patch. And I didn't fix anything in 1.1.16 either. Maybe it was some weird compiling issue or something.. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Help please- Post - Login Script--- Migration
Ashraf wrote: Hi all I am in the process of migrating Courier to Dovecot, am using courier-dovecot-migrate.plhttp://www.dovecot.org/tools/courier-dovecot-migrate.plit works fine. I want to migrate each user as they login using post-login script (As i have huge no of users). We are using NFS storage, users are authenticated using mysql, User home directories as passed using variable mail ( usign mysql query). I am trying to execute postlogin script which does the conversion but unable to pass the user home directories . --*/etc/dovecot.conf mail_executable = /usr/libexec/dovecot/postloginscript.sh %h ---* %h for home directory. ---*postloginscript.sh #!/bin/sh /usr/libexec/dovecot/courier-dovecot-migrate.pl --quiet --to-dovecot --recursive --convert $1 # This is for pop3 exec /usr/libexec/dovecot/pop3 * When i pass %h as argument its creating %h directory and writing dovecot-uidlist and rest the files in %h directory. Its not interpreting the %h and not passing the home directory. Its just passing as it is. I could be wrong, but I don't think you can do that. The mail_executable setting is for the location of the binary. ~Seth
Re: [Dovecot] 1.2.beta1: expire-tool and 'mail_location' setting
Then put mail_plugins setting outside protocol {}. It looks like the mail_plugins setting outside protocol has no effect. .. These are the settings from the protocol imap section. Oh, right. That's because of how it's implemented in v1.2. Kind of ugly, but I don't know if I'll bother fixing it until it becomes a real problem for someone. :) v2.0 implements this properly. Sure, the current implementation works for me. Thanks again Timo! Spoke too soon ;-) Adding imap_quota plugin to the mail_plugins for protocol imap breaks it: $ sudo /usr/sbin/dovecot --exec-mail ext /opt/bin/expire-tool.sh --test Info: Loading modules from directory: /usr/lib/dovecot/modules/imap Info: Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so 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
Re: [Dovecot] Help please- Post - Login Script--- Migration
Once the script is executed its executing the binary as a last step. Reference http://wiki.dovecot.org/Migration/Courier You can also convert each user as they log in for the first time, using PostLoginScripting http://wiki.dovecot.org/PostLoginScripting with a script something like: #!/bin/sh # WARNING: Be sure to use mail_drop_priv_before_exec=yes, # otherwise the files are created as root! courier-dovecot-migrate.pl --quiet --to-dovecot --convert ~/Maildir # This is for imap, create a similar script for pop3 too exec /usr/local/libexec/dovecot/imap in place of ~/Maildir i want to pass the home directory of users which is passed as mail variable (Query from MySql). Appreciate your response. 2009/6/2 Seth Mattinen se...@rollernet.us Ashraf wrote: Hi all I am in the process of migrating Courier to Dovecot, am using courier-dovecot-migrate.pl http://www.dovecot.org/tools/courier-dovecot-migrate.plit works fine. I want to migrate each user as they login using post-login script (As i have huge no of users). We are using NFS storage, users are authenticated using mysql, User home directories as passed using variable mail ( usign mysql query). I am trying to execute postlogin script which does the conversion but unable to pass the user home directories . --*/etc/dovecot.conf mail_executable = /usr/libexec/dovecot/postloginscript.sh %h ---* %h for home directory. ---*postloginscript.sh #!/bin/sh /usr/libexec/dovecot/courier-dovecot-migrate.pl --quiet --to-dovecot --recursive --convert $1 # This is for pop3 exec /usr/libexec/dovecot/pop3 * When i pass %h as argument its creating %h directory and writing dovecot-uidlist and rest the files in %h directory. Its not interpreting the %h and not passing the home directory. Its just passing as it is. I could be wrong, but I don't think you can do that. The mail_executable setting is for the location of the binary. ~Seth -- Regards Ashraf
Re: [Dovecot] Help please- Post - Login Script--- Migration
Ashraf wrote: Once the script is executed its executing the binary as a last step. Reference http://wiki.dovecot.org/Migration/Courier You can also convert each user as they log in for the first time, using PostLoginScripting http://wiki.dovecot.org/PostLoginScripting with a script something like: #!/bin/sh # WARNING: Be sure to use mail_drop_priv_before_exec=yes, # otherwise the files are created as root! courier-dovecot-migrate.pl --quiet --to-dovecot --convert ~/Maildir # This is for imap, create a similar script for pop3 too exec /usr/local/libexec/dovecot/imap in place of ~/Maildir i want to pass the home directory of users which is passed as mail variable (Query from MySql). Appreciate your response. According to those links you need to use the various environment variables. Why have you chosen not to do that? ~Seth
Re: [Dovecot] 1.2.beta1: expire-tool and 'mail_location' setting
On Tue, 2009-06-02 at 21:29 +0200, e-frog wrote: Adding imap_quota plugin to the mail_plugins for protocol imap breaks it: $ sudo /usr/sbin/dovecot --exec-mail ext /opt/bin/expire-tool.sh --test Well, if you're using a script anyway, just modify MAIL_PLUGINS environment there. :) signature.asc Description: This is a digitally signed message part
Re: [Dovecot] v3.0 architecture
pod skrev: It's probably worth noting the irony, given this is a maillist about Dovecot, in that this approach almost obsoletes the need for an IMAP protocol in the first place (the upas/fs style layout as documented doesn't really provide sufficient support for server side search for example). H, there are more things in IMAP than just this. Mail clients (user agents) that are independent of the server platform, for instance. /Peter -- Peter Lindgren
Re: [Dovecot] Help please- Post - Login Script--- Migration
Seth, I have tried to use most of them but whichever i use its creating a folder and then its creating the dovecot-uidlist and rest of the files. please advice. 2009/6/2 Seth Mattinen se...@rollernet.us Ashraf wrote: Once the script is executed its executing the binary as a last step. Reference http://wiki.dovecot.org/Migration/Courier You can also convert each user as they log in for the first time, using PostLoginScripting http://wiki.dovecot.org/PostLoginScripting with a script something like: #!/bin/sh # WARNING: Be sure to use mail_drop_priv_before_exec=yes, # otherwise the files are created as root! courier-dovecot-migrate.pl --quiet --to-dovecot --convert ~/Maildir # This is for imap, create a similar script for pop3 too exec /usr/local/libexec/dovecot/imap in place of ~/Maildir i want to pass the home directory of users which is passed as mail variable (Query from MySql). Appreciate your response. According to those links you need to use the various environment variables. Why have you chosen not to do that? ~Seth -- Regards Ashraf
Re: [Dovecot] Help please- Post - Login Script--- Migration
Ashraf wrote: Seth, I have tried to use most of them but whichever i use its creating a folder and then its creating the dovecot-uidlist and rest of the files. please advice. The variable ${HOME} - in your script, not in the mail_executable setting - should give you what you want. ~Seth
Re: [Dovecot] User with multiple domains
Timo Sirainen wrote: On Tue, 2009-06-02 at 17:06 +0100, Peter Sparkes wrote: When trying to retrieve email using Dovecot for t...@domaintwo.com the password is not recognised although it is for t...@domainone.com. .. auth default: verbose: yes debug: yes debug_passwords: yes So, what does it log with these? Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): Effective uid=1206, gid=1109 Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): maildir: data=/home/aandt.co.uk/sales/Maildir Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): maildir: root=/home/aandt.co.uk/sales/Maildir, index=/home/aandt.co.uk/sales/Maildir, control=, inbox= Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.3456.66ecc191bc79f78f) failed: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.3456.08d076a7e7a61ba4) failed: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2009-06-02 23:23:23] Jun 2 23:23:23 silkliving dovecot: POP3(sa...@aandt.co.uk): No INBOX for user top=0/0, retr=0/0, del=0/0, size=0 Jun 2 23:23:23 silkliving dovecot: pop3-login: Login: user=sa...@aandt.co.uk, method=PLAIN, rip=91.85.130.224, lip=89.16.164.21
Re: [Dovecot] 1.2.beta1: expire-tool and 'mail_location' setting
Original Message Subject: Re: [Dovecot] 1.2.beta1: expire-tool and 'mail_location' setting From: Timo Sirainen t...@iki.fi To: e-frog e-f...@gmx.de Date: 02.06.2009 23:21 On Tue, 2009-06-02 at 21:29 +0200, e-frog wrote: Adding imap_quota plugin to the mail_plugins for protocol imap breaks it: $ sudo /usr/sbin/dovecot --exec-mail ext /opt/bin/expire-tool.sh --test Well, if you're using a script anyway, just modify MAIL_PLUGINS environment there. :) Well, I just used the script for debugging :) But OK why not using it always? The following deletes imap_quota from the MAIL_PLUGINS variable. expire-tool.sh: #!/bin/bash MAIL_PLUGINS=${MAIL_PLUGINS//imap_quota/} #set /tmp/dovecot-environment /usr/lib/dovecot/expire-tool $1