Re: [Dovecot] connect to IMAP
hi, @ns2 ~]# dovecot -n # 1.0.7: /etc/dovecot.conf protocols: imap imaps pop3s listen(default): 127.0.0.1:143 listen(imap): 127.0.0.1:143 listen(pop3): [::] ssl_listen(default): **.***.**.***:993 ssl_listen(imap): **.***.**.***:993 ssl_listen(pop3): login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_greeting_capability(default): yes login_greeting_capability(imap): yes login_greeting_capability(pop3): no mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: master_user_separator: * passdb: driver: passwd-file args: /etc/testfile pass: yes master: yes passdb: driver: shadow userdb: driver: passwd Dovecot IMAP/POP3 Server Version 1.0.7 i checked the /var/log/maillog but not logs when trying to log in. However i try to login via https with NOCC. So that might be the reason. cheerz jolan Date: Thu, 6 Aug 2009 06:48:55 -0400 From: cmar...@media-brokers.com To: dovecot@dovecot.org Subject: Re: [Dovecot] connect to IMAP On 8/5/2009, jolan D (jola...@hotmail.com) wrote: I have dovecot installed on Centos and installed it with yum. All (basic)settings are usually set correctly during install. After trying hard still no login. So i am hoping you guys can help me out. Well, you'll need to provide a little basic info... like maybe version, output of dovecot -n, full logs from a failed session, etc... Timo's crystal ball is pretty good, but I don't think even he could tell much from your post. -- Best regards, Charles _ What can you do with the new Windows Live? Find out http://www.microsoft.com/windows/windowslive/default.aspx
Re: [Dovecot] connect to IMAP
On Aug 7, 2009, at 2:38 AM, jolan D wrote: Dovecot IMAP/POP3 Server Version 1.0.7 Jolan, You're running a version many months behind current release. The 1 series is at 1.1.18 and the 2 series is at 1.2.2. It would be quite irrelevant for us to try to troubleshoot problems that you're having with antiquated code. Strongly suggest that you upgrade as your first step in self-troubleshooting. Respectfully, B. Bodger
[Dovecot] Listing shared mailboxes with a domainpart
Hy! I am currently configuring a new mailserver using postfix and dovecot 1.2.1. The filesystem strucutre in my spool directory is user1/ user2/ domain/info/ domain/office/ user1 and unser2 are ordinary users mailboxes, the latter two contain the virtual mailboxes for i...@domain and off...@domain as created by postfix. I want these virtual mailboxes (all of them are in maildir format) to be shared to certain real users. I configured a shared namespace: namespace shared { separator = / prefix = shared/%%d/%%n/ location = maildir:/var/spool/vmaildir/%%d/%%n/ #I tried ths as well #prefix = shared/%%u/ #location = maildir:/var/spool/vmaildir/%%u/ hidden = no subscriptions = no list = yes inbox = no } Then I configured a dictionary to list the folders, as described in the wiki: plugin { acl_shared_dict = proxy::acl } dict { acl = mysql:/etc/dovecot/dovecot-dict-sql.conf } where /etc/dovecot/dovecot-dict-sql.conf holds map { pattern = shared/shared-boxes/user/$to/$from table = virtual_user_shares value_field = dummy fields { from_user = $from to_user = $to } } The database table consists of +-++---+ | from_user | to_user| dummy | +-++---+ | i...@domain | user1 | 1 | +-++---+ But when I login as user1 I can neither see nor subscribe to the i...@domain mailbox. In the flat case (sharing the user2 mailbox to user1), this setup works. I am pretty clueless how to go on. cheers Mathias
Re: [Dovecot] All mail in mbox disappears when using Outlook
Further to this, Outlook 2000 has the same problem as Outlook 2003 - if the folder name takes the form 'inbox123456' then it will display as empty in Outlook (although other IMAP clients have no trouble). I'd have difficulty believing this if I wasn't seeing it myself.
[Dovecot] sieve vacation response
Hello, we're implementing a dovecot 1.2.1 with sieve 0.1.7 and managesieve 0.11.7. We're having problems with creating sieve scripts so that vacation works. Our script looks like this: require [fileinto, vacation]; if address :matches [To, Cc] *some...@example.com* { if not header :matches X-Spam-Status Yes* { vacation :days 1 :subject test autoresponder test.; keep; } } And when sent and delivered to some...@example.com, we get this in the log: dovecot: deliver(username): sieve: msgid=...: discarding vacation response for message implicitly delivered to usern...@fqdn.hostname.com Our final recipients are in the form of usern...@fqdn.hostname.com; it looks like this is being matched in sieve as address. But we want to match against original recipient address, not address after alias expansion. Any ideas? -- Jure Pečar http://jure.pecar.org http://f5j.eu
Re: [Dovecot] BUG: mbox_snarf causes message duplication when two IMAP connections are open
On Mon, Aug 3, 2009 at 11:48, Robert Lazzursr...@lazzurs.net wrote: On Mon, Aug 3, 2009 at 11:39, Charles Marcuscmar...@media-brokers.com wrote: On 8/3/2009, Robert Lazzurs (r...@lazzurs.net) wrote: If anyone requires any further information to confirm this bug please let me know. What are the clients? Hello, The clients are thunderbird and GNOME mail-notification. Sorry for replying to my own message, however I was wondering if there was any more help anyone needed or anything more I could do to fix this bug. The work around for us has been to stop using mail-notification but that is not a solution we can continue with. Thanks again for the fantastic IMAP server software :) Take care.
[Dovecot] Mail not begin proccessed
Good day all, [Dovecot version 1.2.1] I've set up postfix and dovecot on Centos. I have a problem with the mail, it is begin received but not processed by dovecot. I've looked in the maillog file and found two problems; the first is that private/dovecot directory (I think it should be a directory) did not exist and the second problem is mail transport unavailable. I've create a directory called /var/spool/postfix/private/dovecot but I get the following error in the log file: Connection refused (Is this an ownership issue? I've made the owner postfix) As for the second problem, I've spend the most of the past 3 days googling the error and found very little useful information. Do I need to supply more info? Best regards, Andre
Re: [Dovecot] All mail in mbox disappears when using Outlook
Frank Leonhardt wrote: Timo Sirainen wrote on 03 August 2009 20:11: On Mon, 2009-08-03 at 20:03 +0100, Frank Leonhardt wrote: Any suggestions about where I could look for a clue will be followed up immediately. I'm new to Dovecot, but not BSD. My next step will be to put a network analyser on it. Looking at the imap traffic could help, especially if you can reproduce works and doesn't work cases. You could use also http://wiki.dovecot.org/Debugging/Rawlog I saw that a few weeks back and thought I'd give it a go - the analyser looks less scarey ;-) I've had some progress. The problem was the same on 1.1.16. However, if I rename the mbox file to something completely different (rather than adding a suffix as I had done before) it all suddenly starts to work. The old file was called inbox090630. It doesn't like inbox090630-1 but it's okay about Inbox-09-06-30. Moving the file name back makes everything disappear again. Unsubscribing and subscribing alone makes no difference. It's obviously looking like an internal Outlook problem. I'll check it out with other IMAP servers and see if I can confirm it. However, I'll let Microsoft fix it themselves. Thanks for all your help! This sounds like an issue I've noticed with Outlook myself, in that whenever it sees a mail folder starting with the word inbox (whether it is inboX or iNbOX or inbox-dfsjaf), Outlook always looks for Inbox or Inbox-dfsjaf (it uppercases the I and lowercases the nbox before passing the request to the backend). Thus when I was converting my users from UW imap mboxes to Dovecot IMAP, I took care in my conversion script to rename folders on their behalf if they start with inbox so they are Inbox instead. Also, if you have a mailbox called Inbox, Thunderbird will not see it since it is hidden by the real inbox. Workarounds in perl: # If a folder is named Inbox, thunderbird will not see it. Rename. $target =~ s/^inbox$/Inbox-renamed-by-migrate/ig; # If a folder starts with inbox (any case, eg. INbOX) Outlook won't see it properly. # Outlook expects Inbox(something) or bust. $target =~ s/^inbox(.*)$/Inbox$1/ig;
[Dovecot] hoping someone has a suggestion
Hi using dovecot 1.0.10 with pop/imap, using maildir, with 2000+ users mostly using pop but many using imap. Once in a great while I have problems with dovecot pop timing out. If I telnet to port 110 it just takes forever to come up or it doesn't at all, the samething happens on the imap port although 110 is always worst. At 1st when troubleshooting I was not sure what was causing the situation and when I ran out of options I stopped postfix. When I did this dovecot immediately started working again, that is port 110/143 came up fast and all the user logins were fast again. When I restarted postfix after a minute or so dovecot became slow again. While observing this situation I notice that postfix had most of the connections about 300+ in established state, while dovecot was using around 150 connections. After adjusting some of the parameters on postfix and shutting it down multiple times, suddenly everything worked but this time postfix was reporting over 3000 connections mostly in TIME_WAIT state which is normal for us. My question is what do you guys think is happening here, what is the relationship between dovecot/postfix that would cause this to happen. I'm just looking for some suggestions in case this happens again. # 1.0.10: /usr/local/etc/dovecot.conf protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no 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 login_greeting: D-V1 NP09 ready. login_process_size: 384 login_processes_count: 55 login_max_processes_count: 450 mail_location: maildir:/home/%1u/%u/Maildir maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes 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 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: count: 4 passdb: driver: shadow userdb: driver: passwd
[Dovecot] cross compile dovecot for armv5t fails
Hi anyone. When I run make trying to compile Dovecot for a network attached storage box and it fails. I have used two variants of configuration: The first ./configure i_cv_epoll_works=no i_cv_inotify_works=no i_cv_posix_fallocate_works=no i_cv_signed_size_t=no i_cv_gmtime_max_time_t=32 i_cv_signed_time_t=yes i_cv_mmap_plays_with_write=yes i_cv_fd_passing=yes i_cv_c99_vsnprintf=yes lib_cv_va_copy=yes lib_cv___va_copy=yes lib_cv_va_val_copy=yes SSL_LIBS='/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/aes.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1_mac.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1t.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/bio.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/blowfish.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/bn.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/buffer.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/camellia.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/cast.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/comp.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/conf_api.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/conf.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/crypto.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/des.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dh.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dsa.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dso.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ebcdic.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/engine.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/e_os2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/err.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/evp.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/hmac.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/krb5_asn.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/kssl.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/lhash.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md4.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/md5.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/mdc2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/objects.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/obj_mac.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ocsp.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/opensslconf.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/opensslv.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ossl_typ.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pem2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pem.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pkcs12.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pkcs7.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/pq_compat.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/rand.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/rsa.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/safestack.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/sha.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl23.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl2.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl3.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ssl.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/stack.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/store.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/symhacks.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/tls1.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/tmdiff.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/txt_db.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ui_compat.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/ui.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509v3.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/x509_vfy.h' SSL_CFLAGS=' ' ./configure --prefix=/opt --sysconfdir=/opt/etc --sysconfdir=/opt/etc/dovecot --with-linux-quota=no --target=armv5tel-softfloat-linux-gnueabi --host=armv5tel-softfloat-linux-gnueabi --build=x86_64-pc-linux-gnu Make then fails... /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/dtls1.h:203: error: expected specifier-qualifier-list before 'SSL3_BUFFER'
Re: [Dovecot] All mail in mbox disappears when using Outlook
On Fri, 2009-08-07 at 10:01 -0400, Adam McDougall wrote: Also, if you have a mailbox called Inbox, Thunderbird will not see it since it is hidden by the real inbox. Actually Dovecot hides it. In IMAP the INBOX is case-insensitive so there can't be more than one. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] connect to IMAP
On Fri, 2009-08-07 at 09:38 +0200, jolan D wrote: i checked the /var/log/maillog but not logs when trying to log in. If you set auth_debug=yes, Dovecot logs exactly what the reason is. Also every time you try to connect, Dovecot logs something. If you can't find anything, see http://wiki.dovecot.org/Logging However i try to login via https with NOCC. So that might be the reason. Huh? imap doesn't talk http. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] expire plugin no delete 1.2.1 / 1.2.2
On Tue, 2009-08-04 at 10:22 +0200, Robert Schetterer wrote: Info: maildir: data=/usr/local/virtual//root/:CONTROL=/usr/local/virtual//root/:INDEX=/usr/local/virtual//root/:INBOX=/usr/local/virtual//root/ Oh, right, this is the problem. You can't use %variables in mail_location setting. They get expanded too early. Since you're returning home anyway, use: mail_location = maildir:~/ signature.asc Description: This is a digitally signed message part
Re: [Dovecot] GSSAPI Authentication in v1.2.1
On Tue, 2009-08-04 at 11:31 +1000, Phillip Macey wrote: In the release notes for v1.2.2, Timo said: Found and fixes several v1.2-specific bugs. Hopefully it's now stable for most people's usage. * GSSAPI: More changes to authentication. Hopefully good now. What were the GSSAPI changes? I am having problems with _some_ of my users using GSSAPI auth. I am using version 1.2.1. The client (thunderbird) reports that the server does not support 'secure authentication'. I think secure authentication usually means CRAM-MD5 in Thunderbird. But maybe they use it for GSSAPI too, no idea. Aug 3 16:45:57 fury dovecot: imap-login: Disconnected: Input buffer full (auth failed, 1 attempts): method=GSSAPI, rip=10.8.5.72, lip=10.1.0.20 Does it help if you increase #define LOGIN_MAX_INBUF_SIZE 4096 to e.g. 8192 in src/login-common/client-common.h? signature.asc Description: This is a digitally signed message part
Re: [Dovecot] cross compile dovecot for armv5t fails
On Fri, 2009-08-07 at 17:17 +0100, Stephen Feyrer wrote: SSL_LIBS='/usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/aes.h /usr/armv5tel-softfloat-linux-gnueabi/usr/include/openssl/asn1.h Why are you adding .h files to SSL_LIBS? That seems to be the problem. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] GSSAPI Authentication in v1.2.1
On Fri, Aug 07, 2009 at 12:50:25PM -0400, Timo Sirainen wrote: I think secure authentication usually means CRAM-MD5 in Thunderbird. But maybe they use it for GSSAPI too, no idea. For sure it enables NTML and GSSAPI at least. Jason
Re: [Dovecot] sieve vacation response
Jure Pečar schreef: Hello, we're implementing a dovecot 1.2.1 with sieve 0.1.7 and managesieve 0.11.7. We're having problems with creating sieve scripts so that vacation works. Our script looks like this: require [fileinto, vacation]; if address :matches [To, Cc] *some...@example.com* { if not header :matches X-Spam-Status Yes* { vacation :days 1 :subject test autoresponder test.; keep; } } And when sent and delivered to some...@example.com, we get this in the log: dovecot: deliver(username): sieve: msgid=...: discarding vacation response for message implicitly delivered to usern...@fqdn.hostname.com Our final recipients are in the form of usern...@fqdn.hostname.com; it looks like this is being matched in sieve as address. But we want to match against original recipient address, not address after alias expansion. Any ideas? Currently, you need to add all allowed aliases to the :addresses argument of the vacation command. My TODO list contains a new feature that lets you extract additional valid aliases directly from a dictionary (e.g. an SQL database). It is not at the top of my TODO list yet, but since you are not the only one needing this, I'll give it some more priority. Regards, -- Stephan Bosch step...@rename-it.nl
Re: [Dovecot] AutoCreate per Domain
On Fri, 2009-08-07 at 14:49 -0300, Darvin Denmian wrote: user_query = SELECT maildir, 1001 AS uid, 1001 AS gid , \ 'Clients2' AS autocreate , mail_plugins\ FROM mailbox WHERE username = '%u' AND active='1' Clients1 is sucessfuly created Clients2 isn't created :( Then it sounds like user_query isn't used at all. Show your dovecot -n output. Set auth_debug=yes and show what the logs say when you log in. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] ACL plugin, public namespace, erroneous \HasNoChildren
On Thu, 2009-08-06 at 05:08 +0200, Stefan Förster wrote: . list Public * LIST (\Noselect \HasNoChildren) . Public What about LIST Public*? What do you have in /export/vmailboxes/public/dovecot-acl-list? Does it work if you delete the file? I couldn't reproduce this, except by using a stale dovecot-acl-list. Wonder if it could be made to update itself automatically in more situations. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Listing shared mailboxes with a domainpart
On Fri, 2009-08-07 at 13:29 +0200, Mathias Tausig wrote: I am currently configuring a new mailserver using postfix and dovecot 1.2.1. The filesystem strucutre in my spool directory is user1/ user2/ domain/info/ domain/office/ I configured a shared namespace: namespace shared { separator = / prefix = shared/%%d/%%n/ location = maildir:/var/spool/vmaildir/%%d/%%n/ I don't think you should use a shared namespace for this. You just want everything in domain/ to be shared to users in that domain? Do you have multiple domains? Do user1 and user2 contain @domain? If you have multiple domains and user1 is really us...@domain, I'd use something like: namespace public { separator = / prefix = shared/ location = maildir:/var/spool/vmail/%d subscriptions = no } If that doesn't do what you want, explain more clearly what you need. plugin { acl_shared_dict = proxy::acl } dict { acl = mysql:/etc/dovecot/dovecot-dict-sql.conf } These aren't needed with public namespaces. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] ACL plugin, public namespace, erroneous \HasNoChildren
On Fri, 2009-08-07 at 20:17 +0200, Stefan Förster wrote: I couldn't reproduce this, except by using a stale dovecot-acl-list. Wonder if it could be made to update itself automatically in more situations. While I'm certain that this would be a good idea, because everything else in dovecot seems to repair itself as needed, I certainly can't offer any hints on how to do that ;-) Well, I added a note about it to wiki and added to todo: - when reading dovecot-acl file and seeing a +l right on a mailbox not listed in dovecot-acl-list, recreate it signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Trying to get dovecot and squirrelmail talking
On Mon, 2009-08-03 at 16:09 +0100, Neil Bird wrote: However, I've had some slight issues elsewhere which I feel would be eased or solved by making my INBOX use maildir format, and keeping mails I want to remote-access more often in the top level maildir there (instead of always having to dip into the TB mboxes). To that end, I tried setting up: # want to be able to add sibling and child folders here namespace private { separator = / prefix = location = /var/spool/mail/%u location = maildir:/var/spool/mail/%u is more robust. inbox = yes hidden = no list = yes } Now, this pretty much worked the way I wanted. However, afterwards, trying to connect from squirrelmail I had it say that there were no [IMAP] folders to subscribe to, including the INBOX. Try talking directly with IMAP: http://wiki.dovecot.org/TestInstallation The c LIST * part especially. Does it show anything? Set mail_debug=yes and it'll log the directories it's really using. Do you see your mails there? Are you using Maildirs correctly? Note that Dovecot uses Maildir++ layout by default: http://wiki.dovecot.org/MailboxFormat/Maildir#Directory_Structure signature.asc Description: This is a digitally signed message part
Re: [Dovecot] sieve vacation response
On Fri, 07 Aug 2009 14:27:29 -0400 Timo Sirainen t...@iki.fi wrote: I don't think the above really needs a dict? Rather maybe there's a way to have the script check the original unexpanded address. Is it stored in some specific header, or how would Dovecot/Sieve know about it? I agree - for example, we have X-Original-To. I'll suggest our team to match against that header. What about Delivered-To? Looks like that one is already in expanded form, usern...@hostname. -- Jure Pečar http://jure.pecar.org http://f5j.eu
Re: [Dovecot] expire plugin no delete 1.2.1 / 1.2.2
Timo Sirainen schrieb: On Tue, 2009-08-04 at 10:22 +0200, Robert Schetterer wrote: Info: maildir: data=/usr/local/virtual//root/:CONTROL=/usr/local/virtual//root/:INDEX=/usr/local/virtual//root/:INBOX=/usr/local/virtual//root/ Oh, right, this is the problem. You can't use %variables in mail_location setting. They get expanded too early. Since you're returning home anyway, use: mail_location = maildir:~/ HI Timo, ok i try this and report -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] virtual plugin and ACL
On Wed, 2009-08-05 at 11:08 +0300, Nikita Koshikov wrote: Here is namespace part of config file: namespace private { prefix = Company/ separator = / location = virtual:/var/mail/virtual:INDEX=MEMORY:LAYOUT=maildir++ subscriptions = no } .. Then I tried to setup ACL for virtual mailbox. Adding acl to mail_plugins in imap and lda section and acl=vfile to plugins config. Under /var/mail/virtual in each mailbox I create dovecot-acl file contaning: user=koshikov.n lrwstiekxa authenticated lrwstipe But this didn't work. That's because in private namespaces user owns the mails, and authenticated doesn't reduce the user's privileges. You could use owner instead. Also I don't think you should use ACLs at all here. It's easier and more secure to just make /var/mail/virtual non-writable to imap process. For example change file/dir owners to root and make them world-readable. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] BUG: mbox_snarf causes message duplication when two IMAP connections are open
Does the attached patch help? Although it makes performance slightly worse.. Probably not noticeably. If it works, I'll just commit it to the next release. # HG changeset patch # User Timo Sirainen t...@iki.fi # Date 1249672324 14400 # Branch HEAD # Node ID 96b764649cbbdcf42d90486885e94ea81c86cc94 # Parent 682e09eb1e8f24be5ae8df09113e99039dd13b16 fts: Fixed crashing with Squat. A better solution would be for Squat to use existing mailboxes' Squat indexes, but for now this isn't done. diff -r 682e09eb1e8f -r 96b764649cbb src/plugins/fts-solr/fts-backend-solr.c --- a/src/plugins/fts-solr/fts-backend-solr.c Fri Aug 07 14:57:10 2009 -0400 +++ b/src/plugins/fts-solr/fts-backend-solr.c Fri Aug 07 15:12:04 2009 -0400 @@ -796,7 +796,7 @@ struct fts_backend fts_backend_solr = { MEMBER(name) solr, - MEMBER(flags) 0, + MEMBER(flags) FTS_BACKEND_FLAG_VIRTUAL_LOOKUPS, { fts_backend_solr_init, diff -r 682e09eb1e8f -r 96b764649cbb src/plugins/fts/fts-api-private.h --- a/src/plugins/fts/fts-api-private.h Fri Aug 07 14:57:10 2009 -0400 +++ b/src/plugins/fts/fts-api-private.h Fri Aug 07 15:12:04 2009 -0400 @@ -43,7 +43,9 @@ /* If set, the backend is used for TEXT and BODY search optimizations. Otherwise only TEXT_FAST and BODY_FAST are optimized. */ - FTS_BACKEND_FLAG_SUBSTRING_LOOKUPS = 0x01 + FTS_BACKEND_FLAG_SUBSTRING_LOOKUPS = 0x01, + /* Backend supports virtual mailbox lookups. */ + FTS_BACKEND_FLAG_VIRTUAL_LOOKUPS = 0x02 }; struct fts_backend { diff -r 682e09eb1e8f -r 96b764649cbb src/plugins/fts/fts-storage.c --- a/src/plugins/fts/fts-storage.c Fri Aug 07 14:57:10 2009 -0400 +++ b/src/plugins/fts/fts-storage.c Fri Aug 07 15:12:04 2009 -0400 @@ -441,7 +441,8 @@ return 0; } - if (fctx-fbox-virtual) + if (fctx-fbox-virtual + (fctx-build_backend-flags FTS_BACKEND_FLAG_VIRTUAL_LOOKUPS) != 0) ret = fts_build_init_virtual(fctx); else ret = fts_build_init_trans(fctx, fctx-t); signature.asc Description: This is a digitally signed message part
Re: [Dovecot] BUG: mbox_snarf causes message duplication when two IMAP connections are open
On Fri, 2009-08-07 at 15:31 -0400, Timo Sirainen wrote: Does the attached patch help? Although it makes performance slightly worse.. Probably not noticeably. If it works, I'll just commit it to the next release. Sorry, I messed up the patch. Should have used hg diff, not hg export tip :) Attached a working one this time. diff -r 96b764649cbb src/plugins/mbox-snarf/mbox-snarf-plugin.c --- a/src/plugins/mbox-snarf/mbox-snarf-plugin.c Fri Aug 07 15:12:04 2009 -0400 +++ b/src/plugins/mbox-snarf/mbox-snarf-plugin.c Fri Aug 07 15:32:18 2009 -0400 @@ -23,8 +23,6 @@ struct mbox_snarf_mailbox { union mailbox_module_context module_ctx; - - struct mailbox *spool_mbox; }; const char *mbox_snarf_plugin_version = PACKAGE_VERSION; @@ -108,31 +106,26 @@ MBOX_SNARF_CONTEXT(box-storage); struct mail_storage *storage; struct mbox_snarf_mailbox *mbox = MBOX_SNARF_CONTEXT(box); + struct mailbox *spool_mbox; + static struct mailbox_sync_context *ctx; - if (mbox-spool_mbox == NULL) { - /* try to open the spool mbox */ - mstorage-open_spool_inbox = TRUE; - storage = box-storage; - mbox-spool_mbox = - mailbox_open(storage, INBOX, NULL, - MAILBOX_OPEN_KEEP_RECENT | - MAILBOX_OPEN_NO_INDEX_FILES); - mstorage-open_spool_inbox = FALSE; - } + /* try to open the spool mbox */ + mstorage-open_spool_inbox = TRUE; + storage = box-storage; + spool_mbox = mailbox_open(storage, INBOX, NULL, + MAILBOX_OPEN_KEEP_LOCKED | + MAILBOX_OPEN_KEEP_RECENT | + MAILBOX_OPEN_NO_INDEX_FILES); + mstorage-open_spool_inbox = FALSE; - if (mbox-spool_mbox != NULL) - mbox_snarf(mbox-spool_mbox, box); + if (spool_mbox != NULL) + mbox_snarf(spool_mbox, box); - return mbox-module_ctx.super.sync_init(box, flags); -} + ctx = mbox-module_ctx.super.sync_init(box, flags); -static int mbox_snarf_close(struct mailbox *box) -{ - struct mbox_snarf_mailbox *mbox = MBOX_SNARF_CONTEXT(box); - - if (mbox-spool_mbox != NULL) - mailbox_close(mbox-spool_mbox); - return mbox-module_ctx.super.close(box); + if (spool_mbox != NULL) + mailbox_close(spool_mbox); + return ctx; } static struct mailbox * @@ -178,7 +171,6 @@ mbox-module_ctx.super = box-v; box-v.sync_init = mbox_snarf_sync_init; - box-v.close = mbox_snarf_close; MODULE_CONTEXT_SET(box, mbox_snarf_storage_module, mbox); return box; } signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Mail not begin proccessed
On Fri, 2009-08-07 at 15:39 +0200, Andre Labuschagne wrote: Good day all, [Dovecot version 1.2.1] I've set up postfix and dovecot on Centos. I have a problem with the mail, it is begin received but not processed by dovecot. I've looked in the maillog file and found two problems; the first is that private/dovecot directory (I think it should be a directory) did not exist and the second problem is mail transport unavailable. private/dovecot is typically dovecot authentication socket for SMTP AUTH. deliver doesn't need it. I've create a directory called /var/spool/postfix/private/dovecot but I get the following error in the log file: Connection refused (Is this an ownership issue? I've made the owner postfix) As for the second problem, I've spend the most of the past 3 days googling the error and found very little useful information. Do I need to supply more info? Yeah. Postfix configuration, dovecot -n output and exact log messages what happens when you try to deliver a mail. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] hoping someone has a suggestion
On Fri, 2009-08-07 at 10:03 -0400, P.A wrote: My question is what do you guys think is happening here, what is the relationship between dovecot/postfix that would cause this to happen. I'm just looking for some suggestions in case this happens again. Does Postfix use Dovecot for SMTP AUTH? That's the only connection between them.. login_processes_count: 55 login_max_processes_count: 450 You could instead try: login_process_per_connection = yes login_processes_count = 2 # or the number of CPUs on your system login_max_connections = 512 # or whatever you need for your max. load http://wiki.dovecot.org/LoginProcess explains these things. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] hoping someone has a suggestion
On Fri, 2009-08-07 at 10:03 -0400, P.A wrote: # 1.0.10: /usr/local/etc/dovecot.conf Oh, and upgrading Dovecot to v1.1 or v1.2 wouldn't hurt either. Who knows, might even fix the problem for some reason. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] v1.2.2 / rev 0ec0b1f1ac6a+: imap crash
On Thu, 2009-07-30 at 17:15 +0200, Pascal Volk wrote: #0 0x0047ac5f in index_storage_lock_notify_reset (ibox=0x0) at index-storage.c:379 No locals. #1 0x0044f6b1 in maildir_uidlist_lock_timeout (uidlist=0x22ee9a0, nonblock=false, refresh=true, refresh_when_locked=false) at maildir-uidlist.c:149 This crash should be fixed in two ways now: 1) Don't crash when going this code path: http://hg.dovecot.org/dovecot-1.2/rev/22119217ab5d 2) It should have never been executing that code in the first place. It was fixed earlier by: http://hg.dovecot.org/dovecot-1.2/rev/25c9df95fda6 signature.asc Description: This is a digitally signed message part
[Dovecot] Released Sieve v0.1.11 and ManageSieve v0.11.8 for Dovecot v1.2.3
Hello Dovecot users, Apart from unfinished development of the date extension, this is a set of bug-fix releases. A few portability issues were found, a few stupidities were fixed and the ManageSieve proxy now also works with TLS. Most notably, the include extension had an issue regarding the expansion of $HOME in the personal include path. I've built a project site at: http://pigeonhole.dovecot.org Changelog Sieve v0.1.11: + Built skeleton implementation for the date extension (RFC5260). It compiles, but it does not do anything useful yet. Therefore, it is not part of the default compilation. - Fixed ARM portability issues caused by char type not being signed on that platform. Reading optional operands from a binary would fail for action side effects. Also, an accidental mixup of an int return type with bool caused the interpreter to continue on ARM even though an error occured. - Removed direct stdint.h includes to prevent portability issues. - Fixed segfault bug in the handling of script open failures. - Include: improved user error messages and system log messages. - Fixed copy-paste mixup between sieve_after and sieve_before settings in the LDA Sieve plugin. If only a sieve_after script was active, nothing would have been executed. Patch by Mike Abbott. - Include: fixed a bug in HOME substitution in the sieve_dir path. Surfaced in ManageSieve. Changelog ManageSieve v0.11.8: - Fixed TLS support for proxying ManageSieve. The protocol state machine was incorrect. Also added a check that disables ssl when 'starttls' is not enabled for the user. This produces a proper warning in the log file. There is no such thing as a managesieveS protocol which has SSL from the start. The releases are available as follows: Sieve: http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.11.tar.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.11.tar.gz.sig ManageSieve (package + patch): http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.8.tar.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.8.tar.gz.sig http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.3-managesieve-0.11.8.diff.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.3-managesieve-0.11.8.diff.gz.sig Have fun testing the new releases and don't hesitate to notify me when there are problems. Regards, -- Stephan Bosch step...@rename-it.nl