[Dovecot] dovecot-auth requires userdb, but already configured
Greetings! My ultimate goal is to have fetchmail/getmail poll from POP3/IMAP servers and deliver mail into Dovecot mailboxes. This does not work because the Dovecot LDA for some reason fails. I believe I have narrowed down the problem to dovecot-auth not finding my userdb. But, I am able to connect to dovecot via IMAP in my MUA and preform operations (read, delete mail, create folders). This leads me to believe my userdb is setup correctly. Does anyone have any idea as to why dovecot-auth would not find my userdb? (Configuration is below). [EMAIL PROTECTED]:~$ dovecot --version 1.0.10 [EMAIL PROTECTED]:~$ /usr/lib/dovecot/dovecot-auth dovecot-auth: Fatal: You'll need to add at least one userdb [EMAIL PROTECTED]:~$ dovecot -n # 1.0.10: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot.log ssl_disable: yes disable_plaintext_auth: no verbose_ssl: yes login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_location: mbox:/home/carl/mail/%u mail_debug: yes dotlock_use_excl: yes auth default: verbose: yes debug: yes passdb: driver: passwd-file args: /etc/dovecot/passwd userdb: driver: passwd-file args: username_format=%u /etc/dovecot/passwd [EMAIL PROTECTED]:~$ uname -a Linux cvondrick 2.6.24-20-generic #1 SMP Mon Jul 28 13:06:07 UTC 2008 x86_64 GNU/Linux The package is from Ubuntu Hardy, but I can build from source if you think it'll fix this. Thanks for any responses, Carl
Re: [Dovecot] mbox empty messages in Sent folder
On Mon, Aug 4, 2008 at 12:07 AM, Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 3, 2008, at 10:31 PM, Diego Liziero wrote: It seems so, I sent you privately the rawlog and the last part of a sent-mail mailbox. The interesting thing about that rawlog was that it shows the APPEND returning it saved the message with UID x, but in the mbox file there's no UID x, but there is the empty message with UID x+1. Anyone besides me is seeing this? (random empty mails in Sent folder) I'm using mboxes all the time, never seen this.. Perhaps if you put all processes through strace (-s 100) and when it again happens for some user send me the strace? Although I'd guess it shows that the message was properly written to the mbox file. The real question is then what truncates the mbox file.. Just sent to Timo the strace of the same mail sent twice, the fist time appeared empty, the second time correctly written to sent-mail folder.
Re: [Dovecot] Server power loss and Dovecot is already running with PID xxx
On Mon, 4 Aug 2008, Timo Sirainen wrote: It doesn't seem to be that the current logic is working; there is no program with the PID that's in master.pid, and dovecot (1.0.7 + RHEL patches) refuses to start. root: /root$ /sbin/service dovecot start Starting Dovecot Imap: Error: Dovecot is already running with PID 2746 (read from /var/run/dovecot/master.pid) Fatal: Invalid configuration in /etc/dovecot.conf [FAILED] root: /root$ more /var/run/dovecot/master.pid 2746 root: /root$ ps auxw | grep 2746 root 31714 0.0 0.1 4116 584 pts/1R+ 20:19 0:00 grep 2746 SELinux perhaps? It checks this by kill()ing the process and seeing if it returns ESRCH. If not, it assumes the process exists. If you've SELinux perhaps it always return EPERM to the call.. 'getenforce' says disabled, so no. This is pretty strange -- I looked at the code and basically duplicated the logic there and could not reproduce this problem with a smaller piece of code. And it doesn't seem to appear always in any case -- I killed dovecot with KILL signal (leaving the PID file behind), and after that it started up without problems. Unless you have other ideas what to look for, I guess this will remain a mystery.. -- Pekka Savola You each name yourselves king, yet the Netcore Oykingdom bleeds. Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
Re: [Dovecot] 1.1.2: imap crash with SIGSEGV
* Timo Sirainen [EMAIL PROTECTED]: On Aug 1, 2008, at 4:36 PM, Ralf Hildebrandt wrote: #1 0x080ba2fd in mail_transaction_log_lock_head (log=0x91cfd68) at mail-transaction-log.c:419 #2 0x080ba36d in mail_transaction_log_sync_lock (log=0x91cfd68, file_seq_r=0xbff348a4, file_offset_r=0xbff34880) at mail-transaction-log.c:451 #3 0x080c44bb in mail_index_fsck (index=0x91cf828) at mail-index- fsck.c:424 What were the error messages for this user? What happened here is that dovecot.index was broken (why?) and dovecot.index.log file didn't exist (why?) which caused the crash when trying to open the index. Fixed the crash itself anyway: http://hg.dovecot.org/dovecot-1.1/rev/1c010fadc9c9 From the logs: Aug 1 15:01:09 postamt dovecot: imap-login: Login: user=loginname, method=PLAIN, rip=141.42.4.251, lip=141.42.4.250 Aug 1 15:02:16 postamt dovecot: IMAP(loginname): copy: uid=118, dest=Administrator, msgid=[EMAIL PROTECTED], size=2940 Aug 1 15:02:16 postamt dovecot: IMAP(loginname): delete: uid=118, msgid=[EMAIL PROTECTED] Aug 1 15:02:16 postamt dovecot: IMAP(loginname): expunge: uid=118, msgid=[EMAIL PROTECTED], size=2940 Aug 1 15:02:27 postamt dovecot: IMAP(loginname): delete: uid=54, box=Trash, msgid=[EMAIL PROTECTED] Aug 1 15:02:27 postamt dovecot: IMAP(loginname): expunge: uid=54, box=Trash, msgid=[EMAIL PROTECTED], size=4116 Aug 1 15:02:48 postamt dovecot: IMAP(loginname): fscking index file /home/g/z/loginname/Maildir/.Drafts/dovecot.index Aug 1 15:02:51 postamt dovecot: imap-login: Login: user=loginname, method=PLAIN, rip=141.42.4.251, lip=141.42.4.250 Aug 1 15:08:52 postamt dovecot: IMAP(loginname): Disconnected: Logged out bytes=1356/18528 The core file was written: 2008-08-01 15:02 -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de A good rule of thumb to keep in mind is that any field of study which has science in its name is not a science.
Re: [Dovecot] Server power loss and Dovecot is already running with PID xxx
Pekka Savola píše v Po 04. 08. 2008 v 12:40 +0300: On Mon, 4 Aug 2008, Timo Sirainen wrote: It doesn't seem to be that the current logic is working; there is no program with the PID that's in master.pid, and dovecot (1.0.7 + RHEL patches) refuses to start. root: /root$ /sbin/service dovecot start Starting Dovecot Imap: Error: Dovecot is already running with PID 2746 (read from /var/run/dovecot/master.pid) Fatal: Invalid configuration in /etc/dovecot.conf [FAILED] root: /root$ more /var/run/dovecot/master.pid 2746 root: /root$ ps auxw | grep 2746 root 31714 0.0 0.1 4116 584 pts/1R+ 20:19 0:00 grep 2746 SELinux perhaps? It checks this by kill()ing the process and seeing if it returns ESRCH. If not, it assumes the process exists. If you've SELinux perhaps it always return EPERM to the call.. 'getenforce' says disabled, so no. This is pretty strange -- I looked at the code and basically duplicated the logic there and could not reproduce this problem with a smaller piece of code. And it doesn't seem to appear always in any case -- I killed dovecot with KILL signal (leaving the PID file behind), and after that it started up without problems. Unless you have other ideas what to look for, I guess this will remain a mystery.. There is a not-so-prefect init script installed for dovecot in RHEL, try using the one from Fedora (http://cvs.fedoraproject.org/viewcvs/rpms/dovecot/devel/dovecot.init?rev=1.6view=auto). A new init script will be added in RHEL 5.3. Dan -- Fedora and Red Hat package maintainer
Re: [Dovecot] dovecot-auth requires userdb, but already configured
Carl Vondrick wrote: Greetings! My ultimate goal is to have fetchmail/getmail poll from POP3/IMAP servers and deliver mail into Dovecot mailboxes. This does not work because the Dovecot LDA for some reason fails. I believe I have narrowed down the problem to dovecot-auth not finding my userdb. But, I am able to connect to dovecot via IMAP in my MUA and preform operations (read, delete mail, create folders). This leads me to believe my userdb is setup correctly. Does anyone have any idea as to why dovecot-auth would not find my userdb? (Configuration is below). Are you using virtual users? In this case, Dovecot's deliver needs a master socket to get user information from. See instructions at http://wiki.dovecot.org/LDA . -- FORTRAN is the language of Powerful Computers. -- Steven Feiner Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb
Re: [Dovecot] path of folder relative to mail_location??
On Mon, Aug 04, 2008 01:14:42 AM +0300, Timo Sirainen wrote: On Aug 3, 2008, at 1:52 AM, Marco Fioretti wrote: marco:{PLAIN}thepassword:500:500::/home/marco/.MAIL/home_imap/ This says your home directory is /home/marco/.MAIL/home_imap/. whoops... for some reason, I had assumed that the last field in this passwd file, which is needed only for imap management, had to be the home of the **imap folders**, instead of the home directory of their **user**. So your suggestion (I cannot check it now as must leave in a minute): So probably change the home dir in your passwd-file to be just /home/marco must be certainly right, even if I cannot check it now as must leave in a minute. I'll let you know if there are further problems, but almost certainly this is the right solution. Silly me! :-) Thanks, Marco -- There is more to life than increasing its speed. -- Mahatma Gandhi
[Dovecot] Dovecot,nfs or memory indexing
Hi, I wonder if it's normal behaviour that indexes created in memory have long creation time. Other problem is that indexes created on nfs sometimes get crushed and I need to delete indexes in case of fetching mails ( I see mails on hd but when telnet on host and make stat I don't see any). Does version 1.1.x correct this errors ? And what is better to use : nfs or memory indexing ? Can someone point me adventages and disadventages of using both solutions? Best regards, Sebastian
Re: [Dovecot] mbox empty messages in Sent folder
On Aug 4, 2008, at 5:21 AM, Diego Liziero wrote: On Mon, Aug 4, 2008 at 12:07 AM, Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 3, 2008, at 10:31 PM, Diego Liziero wrote: It seems so, I sent you privately the rawlog and the last part of a sent-mail mailbox. The interesting thing about that rawlog was that it shows the APPEND returning it saved the message with UID x, but in the mbox file there's no UID x, but there is the empty message with UID x+1. Anyone besides me is seeing this? (random empty mails in Sent folder) I'm using mboxes all the time, never seen this.. Perhaps if you put all processes through strace (-s 100) and when it again happens for some user send me the strace? Although I'd guess it shows that the message was properly written to the mbox file. The real question is then what truncates the mbox file.. Just sent to Timo the strace of the same mail sent twice, the fist time appeared empty, the second time correctly written to sent-mail folder. Maybe this helps? http://hg.dovecot.org/dovecot-1.1/rev/8ab845d3c96d PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot,nfs or memory indexing
On Aug 4, 2008, at 9:42 AM, Sebastian Tymków wrote: Hi, I wonder if it's normal behaviour that indexes created in memory have long creation time. No, but the problem has more to do with caching. If you use a client that fetches the same data often (such as message headers/sizes) then Dovecot will do the same work for each request. In that case in-memory indexes perform poorly. This is more of a problem with webmail clients and less of a problem with Outlook/Thunderbird. If you're using POP3 that also performs poorly without indexes with v1.0. v1.1 makes it better. Other problem is that indexes created on nfs sometimes get crushed and I need to delete indexes in case of fetching mails ( I see mails on hd but when telnet on host and make stat I don't see any). So Dovecot says there are no mails while there are in fact? Does version 1.1.x correct this errors ? v1.1 makes NFS work a lot better, so it's highly recommended. And what is better to use : nfs or memory indexing ? Can someone point me adventages and disadventages of using both solutions? Have you read http://wiki.dovecot.org/NFS ? PGP.sig Description: This is a digitally signed message part
[Dovecot] Help with auto vacation replies
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm testing out dovecot with postfix. I'm running postfix 2.5.2 with dovecot version 1.1.1 with dovecot sieve plugin version 1.1.5. I have everything compiled and working except for the sieve plugin. I'm now trying to test out the sieve plugin and having no luck in getting a simple auto vacation reply to work. Here is my .dovecot.sieve script: require [fileinto, vacation]; # BEGIN VACATION vacation :days 30 :subject Out of Office Reply :addresses [[EMAIL PROTECTED]] OUT OF THE OFFICE; I know the dovecot delivery program is reading my script as the .dovecot.sievec file is being created and there is no .dovecot.sieve.err file. Permissions of the files are in my ownership. The files are located in my home directory as well. The log files simply show delivery of the message and nothing else: Aug 4 09:06:28 mail2.engr.colostate.edu postfix/local[7480]: [ID 197553 mail.info] 622BB59EFA: to=[EMAIL PROTECTED], relay=local, delay=0.89, delays=0 .18/0.08/0/0.64, dsn=2.0.0, status=sent (delivered to command: /userM/mail-services/dovecot/libexec/dovecot/deliver) Aug 4 09:06:28 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] 622BB59EFA: removed Any help as to why it is not sending any replies? Dovecot -n follows: # 1.1.1: /userM/mail-services/dovecot/etc/dovecot.conf Warning: fd limit 256 is lower than what Dovecot can use under full load (more than 1500). Either grow the limit or change login_max_processes_count and max_mail_processes settings base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem ssl_parameters_regenerate: 0 ssl_cipher_list: MEDIUM:!LOW disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap-login login_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap-login login_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3-login login_greeting: Cyrus ready. login_max_processes_count: 500 max_mail_processes: 500 mail_location: mbox:~/:INBOX=/userM/mail/%u mmap_disable: yes mail_nfs_index: yes mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3 mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3 auth default: mechanisms: plain login verbose: yes debug: yes passdb: driver: pam passdb: driver: passwd args: blocking=yes userdb: driver: passwd args: blocking=yes socket: type: listen client: path: /userM/mail-services/postfix/var/private/auth mode: 432 user: postfix group: postfix - -- C. J. Keist Email: [EMAIL PROTECTED] UNIX/Network ManagerPhone: 970-491-0630 Engineering Network ServicesFax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301 All I want is a chance to prove 'Money can't buy happiness' -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIlyB8A29OFr7C6jcRAt5lAKCiP5Zh1WIMrg+QWPprcxi9Gp5Z3QCgxhbj A6ivJ6XeA8MuoA19y2xEFjI= =uT1j -END PGP SIGNATURE-
Re: [Dovecot] Dovecot 1.1.12 ignores auth_krb5_keytab settings
On Aug 2, 2008, at 1:12 PM, christop wrote: i am using here a FreeBSD 7.0 amd64 with latest dovecot from ports. It ignores the krb5_keytab settings, which looks like this in the logs: What this setting does is that it adds KRB5_KTNAME environment that the Kerberos library should pick up. Are you using MIT or Heimdal Kerberos? If Heimdal: krb5_keytab: /etc/mail2.krb5.keytab A quick google lookup showed an example with FILE: prefix. Try: krb5_keytab = FILE:/etc/mail2.krb5.keytab PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] 1.1.2 segfaults when using passdb passwd and md5 mechanism
On Aug 1, 2008, at 1:09 PM, Miguel Filho wrote: Setting passdb to passwd and enabling cram-md5 or digest-md5 makes dovecot crash. I couldn't reproduce it, but this should fix it: http://hg.dovecot.org/dovecot-1.1/rev/1dc2dd3cd902 The documentation says that I can use md5 with passwd. Where? I think you've somehow misunderstood it. Sure the passwd can use MD5crypt hashed passwords, but that doesn't mean you can use CRAM- MD5 or DIGEST-MD5 auth mechanisms. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] namespaces at v1.0.15
On Aug 1, 2008, at 8:17 AM, Evaggelos Balaskas wrote: Am i asking this because i've already read this page: Unless you're using a single UID for all the users, you'll need to have a dovecot-shared file in each shared maildir Yes, but dovecot-shared also controls whether seen flags are private or shared. So if you want them to be private, create the dovecot- shared file. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Help with auto vacation replies
On Aug 4, 2008, at 11:30 AM, CJ Keist wrote: I have everything compiled and working except for the sieve plugin. I'm now trying to test out the sieve plugin and having no luck in getting a simple auto vacation reply to work. When testing, remember to delete .dovecot.lda-dupes between the tests so Dovecot doesn't just disable it. Also have you tried if reject works? That shows if the problem is with sendmail calling. Aug 4 09:06:28 mail2.engr.colostate.edu postfix/local[7480]: [ID 197553 mail.info] 622BB59EFA: to=[EMAIL PROTECTED], relay=local, delay=0.89, delays=0 .18/0.08/0/0.64, dsn=2.0.0, status=sent (delivered to command: /userM/mail-services/dovecot/libexec/dovecot/deliver) Aug 4 09:06:28 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] 622BB59EFA: removed These are Postfix's logs. Dovecot should log something itself as well. At minimum something like: deliver(tss): Jun 12 11:01:31 Info: msgid=[EMAIL PROTECTED]: saved mail to INBOX See http://wiki.dovecot.org/LDA - logging and/or http://wiki.dovecot.org/Logging if you can't find it. Also note that errors and non-errors may be logged to different files. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] FTS/squat search indexes built when?
On Aug 1, 2008, at 1:39 AM, Patrick Nagel wrote: | mailboxes=`printf 1 list *\n | dovecot --exec-mail imap | perl magic` Ok, looks easy. But I can't find information anywhere on how to specify the user. I tried with 'USER=username' in front of the dovecot call, and dovecot then said 'Logged in as username' instead of 'Logged in as root', but a list command doesn't show the mailboxes, so I think it's not accessing the maildir of that user. I guess it's because the users are not system users, and dovecot needs to retrieve info from the LDAP directory first. But how do I tell it to do that? You can't do that with --exec-mail. It expects to be running using the correct UID, GID, $USER and $HOME. Logging in via netcat / telnet works, but then I don't know how to proceed... With v1.2 code you could use the same printf .. | nc localhost 143, but unfortunately this doesn't work with older versions since the input buffer is reset after login. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] v1.1.2 released
On Jul 24, 2008, at 3:28 PM, Kyle Wheeler wrote: On Thursday, July 24 at 03:05 AM, quoth Timo Sirainen: + Added a new maildirlock utility for write-locking Dovecot Maildir. Every time I attempt to use this (as root), it exits with a return code of 143 and my shell prints out Terminated. I'm guessing that what happens is a result of this: /* locked - send a */ if (kill(parent_pid, SIGTERM) 0) i_fatal(kill(parent, SIGTERM) failed: %m); Any idea on how I can fix it? Not really.. The parent PID should be the parent maildirlock process, which also should have caught the TERM signal. You could see what happens if you change all SIGTERMs to SIGHUPs for example. What shell do you use? Try another one? PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] dovecot 1.1.2 assertion
On Jul 24, 2008, at 9:22 PM, Nuno Lopes wrote: Timo Sirainen wrote: On Jul 25, 2008, at 2:36 AM, Nuno Lopes wrote: I've upgraded to last version of dovecot and am now getting the following assertions: Jul 25 00:00:34 bld3 dovecot: Panic: IMAP([EMAIL PROTECTED]): file index-sort-string.c: line 542 (index_sort_add_ids_range): assertion failed: (left_idx == 0 right_idx == rightmost_idx) Can you reproduce this? Could you send that mailbox's dovecot.index and dovecot.index.log files to me? They don't contain any sensitive information. Both bugs are fully reproducible by trying to order a given field. In the mailbox corresponding to the indexes I send you it happens every time I try to order by subject. Would you like me to send you files corresponding to the other bug or even more examples of this one if I can find them? Do you still have the files? You forgot to send the dovecot.index.log file. Also perhaps dovecot.index.cache could help when figuring this out (but it contains message headers so you may not want to send it to this mailing list at least). PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Recieving e-mail is not updating quota
On Jul 25, 2008, at 1:27 PM, M. Rodrigo Monteiro wrote: When I send e-mail locally from [EMAIL PROTECTED] to [EMAIL PROTECTED] the quota in [EMAIL PROTECTED] isn't updated with the new message, but the message arrives fine. It's not a userX problem, because it's equal if it's userY sending userX. When I save an message, the quota is updated. Or when the userX sends the e-mail, his quota is updated too. The problem is that the quota don't update when a new message arrives. What could it be? How do you deliver the new messages? Are you using Dovecot's deliver or your MTA's delivery agent? Sounds like the problem is with that configuration. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] optionnal arguments to ntlm_auth helper
On Jul 25, 2008, at 7:22 AM, François LEGAL wrote: I first tried (unsuccessfully) to add this parameter to the auth_winbind_helper_path token in dovecot.conf, and figured out by checking the source that this was not possible. I then decided to patch the source so that one can pass any argument to the ntlm_auth helper by specifying at new line in dovecot.conf with the token auth_winbind_helper_args (for instance, what I wanted to do is auth_winbind_helper_args = --require-membership- of=... ) There are already too many settings, so do you think it would work ok if auth_winbind_helper_path was instead modified to support arguments? (could you send a patch for that too? :) PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] tcp-wrappers.patch
On Jul 23, 2008, at 9:31 AM, Edgar Fuß wrote: I fully understand Timo's concern of people not reading documentation and then whining that librwapping doesn't work whereas they simply forgot to put hosts.{allow,deny} into the login chroot. Or they modify it in /etc and wonder why Dovecot doesn't see the changes. Would it be acceptable if either dovecot itself or the init script copies /etc/hosts.{allow,deny} into the chroot (unless it's already there)? Then it would also have to keep checking when they change and copy.. Another kind of a problem is that it just makes the master process more complex again. I'd like this to wait until v2.0's master process rewrite. Then there could be a separate non-chrooted process that does tcpwrapper checks and perhaps some other checks. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Problem: delivery with mode 600 into shared folder
On Jul 23, 2008, at 8:33 PM, Sergey Ivanov wrote: Timo Sirainen wrote: Did you create dovecot-shared file to the maildir as http://wiki.dovecot.org/SharedMailboxes specifies? But one strange thing remains: I can tag messages (lime Important, Work, Personal and so on in Thunderbird) and tags are preserved at Thunderbird restart, but after restart all messages in shared folder appear as new. Even without restart, when go to another folder and then return to one where I've marked messages as Read before, they are new! Dovecot configs are in my previous message, I think I should not post them once more. Sounds like the mailbox is read-only for the user. It doesn't have write-permissions to it the directories? PGP.sig Description: This is a digitally signed message part
[Dovecot] RFE: Disallow DELETE of non-empty MBOX
It looks like this is already the rule for maildir, where one can't remove the folder if any files or subdirectories are present. I'd like to get this option for mbox folders, as I'd like to prevent accidents where users accidentally delete large folders by clicking the wrong thing and then too-quickly approving the confirmation dialog that pops up. (Impatient upper level management tends to do this. ;)) BTW, I'm using Mulberry for my client, and it unfortunately puts Mark contents seen right next to Delete folder on the context menu. I'm aware of the issue so I tend to be extra careful when I finish with the folder associated with a busy mailing list and mark all the uninteresting messages seen.
Re: [Dovecot] Dovecot 1.1.1 + zlib plugin + mbox crash
On Jul 24, 2008, at 1:11 PM, Dean Brooks wrote: I cannot get Dovecot 1.1.2 to compile at all on Solaris8 with gcc 3.3.4 and newly recompiled versions of bzip2 and zlib libraries. This is the first time I've ever had a problem getting Dovecot to compile under Solaris 8. .. unknown 0x3ab8 /usr/local/lib/ libbz2.a(decompress.o) I think the problem is you're trying to link libbz2.a instead of libbz2.so (you didn't build the .so at all?). PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] nfs_flush errors
On Jul 22, 2008, at 1:33 PM, Hans Wunsch wrote: Jul 8 10:47:08 servername dovecot: [ID 107833 mail.error] IMAP(username): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) failed: Device busy I guess the problem is dotlocking. They probably go away with the attached patch? But that also could make the locking slower if the cache doesn't get flushed and the cached stat values keep getting returned. Sorry for taking so long to get back on this one. But it seems the errors persist with the patch: Jul 21 11:10:44 barrelv1 dovecot: [ID 107833 mail.error] IMAP(hans): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) failed: Device busy Attached patch changes the only other place that I can think of. nfs-noflush.diff Description: Binary data PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.1 + zlib plugin + mbox crash
On Mon, Aug 04, 2008 at 02:26:50PM -0400, Timo Sirainen wrote: On Jul 24, 2008, at 1:11 PM, Dean Brooks wrote: I cannot get Dovecot 1.1.2 to compile at all on Solaris8 with gcc 3.3.4 and newly recompiled versions of bzip2 and zlib libraries. This is the first time I've ever had a problem getting Dovecot to compile under Solaris 8. .. unknown 0x3ab8 /usr/local/lib/ libbz2.a(decompress.o) I think the problem is you're trying to link libbz2.a instead of libbz2.so (you didn't build the .so at all?). When building the bz2 library from source, the .so shared library is not built by default. It also appears that when forcing the shared library of libbz2 to be built, the compile process fails under Solaris8 without some sort of modifications. Ugh. Does dovecot require a shared version of the libbz2 library to compile correctly? Is there no way to statically link this? Or, alternatively, is there a way to shut off this libbz2 plugin completely in the configure script? -- Dean Brooks [EMAIL PROTECTED]
Re: [Dovecot] RFE: Disallow DELETE of non-empty MBOX
On Aug 4, 2008, at 2:23 PM, Kenneth Porter wrote: It looks like this is already the rule for maildir, where one can't remove the folder if any files or subdirectories are present. Oh? I don't remember this kind of a feature.. I'd like to get this option for mbox folders, as I'd like to prevent accidents where users accidentally delete large folders by clicking the wrong thing and then too-quickly approving the confirmation dialog that pops up. (Impatient upper level management tends to do this. ;)) The problem is that I think this should be more of a per-client setting rather than a global setting. For example with Thunderbird (well, and non-mboxes) deleting the mailbox just renames it under Trash. Disallowing that would be annoying. And I suppose this issue really should be handled by the client UI instead of the server.. Anyway, I guess it would be nice to have this, but I also really hate adding more settings to Dovecot right now. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.2? plus addressing bug in dovecot 1.1.x?
On Jul 25, 2008, at 6:01 PM, Jon Fullmer wrote: I saw the release notes to Dovecot-1.1.2. Some of the fixes imply that this plus addressing anomaly that I experienced with 1.1.0 (and 1.1.1) might have been resolved with 1.1.2. Has it been? v1.1.2 supports this: b) Call deliver with -m INBOX/$mailbox from your MTA. I don't know/remember if this solves your problem though. PGP.sig Description: This is a digitally signed message part
[Dovecot] Quota does not apply.
Hello list: I am try to run quota plugin but only works a part. The users are virtual and his homedir and mbox are in NFS server, INDEX files are in local disk. Quota only is applied to global home, if I configure a low global quota and sent an mail to my e-mail, quota works fine, mail is temporally deferred. But, if I configure a high global quota and a small quota for INBOX, sent a mail that is more big that quota for INBOX, then quota is not applied and the mail is delivered to INBOX. IMAP log and LDA log are equals, why I only pasted IMAP log: ... dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Loading modules from directory: /usr/lib/dovecot/imap dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Module loaded: /usr/lib/dovecot/imap/lib10_quota_plugin.so dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Module loaded: /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Effective uid=1002, gid=1002, home=/vmail/telpin.com.ar/d/dario.a/ dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Quota root: name= backend=dict args=:proxy::quotadict dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): dict quota: user=dario.a, uri=proxy::quotadict, enforcing=0 dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Quota rule: root= mailbox=* bytes=209715200 (0%) messages=0 (0%) dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Quota rule: root= mailbox=.mbox bytes=10485760 (0%) messages=0 (0%) dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Quota warning: bytes=199229440 (95%) messages=0 (0%) command=/usr/local/bin/quota-warning.sh 95 dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): Quota warning: bytes=167772160 (80%) messages=0 (0%) command=/usr/local/bin/quota-warning.sh 80 dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): mbox: data=/vmail/telpin.com.ar/d/dario.a/:INDEX=/etc/dovecot/dovecot-indexes/vmail/telpin.com.ar/d/dario.a/:INBOX=/vmail/telpin.com.ar/d/dario.a/.mbox dovecot: Aug 04 15:47:03 Info: IMAP(dario.a): fs: root=/vmail/telpin.com.ar/d/dario.a, index=/etc/dovecot/dovecot-indexes/vmail/telpin.com.ar/d/dario.a, control=, inbox=/vmail/telpin.com.ar/d/dario.a/.mbox ... But in my home I have 175M (included 13M of INBOX). In quota table, my relared rows are: | dario.a | quota/storage | 183393060 | | dario.a | quota/messages | 335 | My Dovecot configuration is: # 1.1.2: /etc/dovecot.conf protocols: pop3 pop3s imap imaps valid_chroot_dirs: %h mail_location: mbox:%h:INDEX=/etc/dovecot/dovecot-indexes%h:INBOX=%h.mbox mail_nfs_storage: yes mail_plugins(imap): quota imap_quota mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap auth default: passdb: driver: sql args: /etc/dovecot-mysql.conf userdb: driver: sql args: /etc/dovecot-mysql.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 0600 user: vmail group: vmail plugin: quota: dict:::proxy::quotadict quota_rule: *:storage=200M quota_rule2: .mbox:storage=10M quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95 quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80 dict: quotadict: mysql:/etc/dovecot-dict-quota.conf Others configurations are: /etc/dovecot-dict-quota.conf connect = host=HOST dbname=BD user=USER password=PASSWD table = quota select_field = current where_field = path username_field = email Thanks for the time and sorry for my bad english. -- Dario Ale (dario.a en telpin.com.ar)
Re: [Dovecot] how to store flags \Seen into read-only mailbox?
On Jul 24, 2008, at 1:27 PM, [EMAIL PROTECTED] wrote: This problem is apparently about changeset http://hg.dovecot.org/dovecot-1.1/rev/eec74a6ad62e . OK, changed, see if this helps: http://hg.dovecot.org/dovecot-1.1/rev/b5388b21c4c2 PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] bugzilla or other similar bug tracking systems
Timo Sirainen skrev: I don't really want to have a separate bug tracking system where I'd be the only one handling the bug reports. I know this is personal, but when I had my own company developing software, I was the only one handling bug requests. But nevertheless, I felt it was a good thing just to keep track of things, and to respond to vendors and customers yes this is already being tracked in [the term actually was 'trouble report'] #1234. Sounded more professional and also made me ease a little on my personal memory load. This was before Bugzilla was developed. Now, in my current job, we use Bugzilla. I can really recommend Bugzilla, using priorities you always know what to do and when you're finished for release. In your case, paid development could always get prio 1 (highest). Whether you want to make it publicly available is up to you. /Peter
Re: [Dovecot] v1.1.2 released
On Monday, August 4 at 01:54 PM, quoth Timo Sirainen: On Thursday, July 24 at 03:05 AM, quoth Timo Sirainen: + Added a new maildirlock utility for write-locking Dovecot Maildir. Every time I attempt to use this (as root), it exits with a return code of 143 and my shell prints out Terminated. I'm guessing that what happens is a result of this: /* locked - send a */ if (kill(parent_pid, SIGTERM) 0) i_fatal(kill(parent, SIGTERM) failed: %m); Any idea on how I can fix it? Not really.. The parent PID should be the parent maildirlock process, which also should have caught the TERM signal. You could see what happens if you change all SIGTERMs to SIGHUPs for example. What shell do you use? Try another one? I use bash. I tried using CSH and it does the same thing. I tried recompiling it after replacing all instances of SIGTERM with SIGHUP, and instead of printing out Terminated, it prints out Hangup (i.e. the same problem). The issue, I think, is that maildirlock has a race condition. There is no guarantee that the parent has set up its signal handlers before the child gets around to killing it. To demonstrate it, I modified the source to force the child to give the parent some time, like this: if (pid != 0) { io_loop_run(ioloop); if (!success) return 1; printf(%s, dec2str(pid)); return 0; } else { sleep(1); } And that fixed the problem. Now, telling the child to sleep is obviously an unacceptable solution. I think signals are probably a bad way of handling this inter-process communication. How about using a pipe? I've attached a patch that seems to work. ~Kyle -- Time is an illusion. Lunchtime doubly so. -- Douglas Adams --- maildirlock.c 2008-08-04 14:03:11.0 -0500 +++ maildirlock-new.c 2008-08-04 14:02:55.0 -0500 @@ -46,6 +46,7 @@ int main(int argc, const char *argv[]) struct dotlock *dotlock; unsigned int timeout; pid_t pid, parent_pid; + int trigger[2]; if (argc != 3) { fprintf(stderr, Usage: maildirlock path timeout\n @@ -53,6 +54,10 @@ int main(int argc, const char *argv[]) return 1; } parent_pid = getpid(); + if (pipe(trigger) != 0) { + fprintf(stderr, pipe() failed: %m); + return 1; + } pid = fork(); if (pid == (pid_t)-1) { @@ -69,10 +74,11 @@ int main(int argc, const char *argv[]) lib_signals_set_handler(SIGCHLD, TRUE, sig_die, NULL); if (pid != 0) { - /* master - wait for the child process to finish locking */ - io_loop_run(ioloop); - if (!success) + char junk; + if (read(trigger[0], junk, 1) != 1) { + fprintf(stderr, read() failed: %m); return 1; + } printf(%s, dec2str(pid)); return 0; } @@ -85,9 +91,9 @@ int main(int argc, const char *argv[]) if (maildir_lock(argv[1], timeout, dotlock) = 0) return 1; - /* locked - send a */ - if (kill(parent_pid, SIGTERM) 0) - i_fatal(kill(parent, SIGTERM) failed: %m); + /* locked - send a byte */ + write(trigger[1], , 1); + io_loop_run(ioloop); file_dotlock_delete(dotlock); pgpmui2ePV1oN.pgp Description: PGP signature
Re: [Dovecot] Help with auto vacation replies
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo, Thank you for your reply. The .dovecot.lda-dupes file has not been created yet. Only the .dovecot.sievec file so far. I just tried reject filter: require [fileinto, vacation, reject]; if address :is from [EMAIL PROTECTED] { reject I don't like your email message; } I'm sending from test account [EMAIL PROTECTED] to [EMAIL PROTECTED] my test server and account on that server. Also, I just upgraded to dovecot 1.1.2 and also recompiled sieve 1.1.5 with the new 1.1.2 dovecot and installed both. The reject looks to send a message but it's going to my local test account cjay instead of back to joeblow. Here are the logs when I send from the joeblow account: Aug 4 13:23:59 mail2.engr.colostate.edu dovecot: [ID 762023 mail.info] Dovecot v1.1.2 starting up Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10788 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10789 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10787 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10786 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10785 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10784 Aug 4 13:24:43 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10894 Aug 4 13:24:43 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] connect from pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:43 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] setting up TLS connection from pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:43 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] Anonymous TLS connection established from pace.acns.colostate.edu[129.82.100.168]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Aug 4 13:24:45 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] 0A47759EFA: client=pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:45 mail2.engr.colostate.edu postfix/cleanup[10917]: [ID 197553 mail.info] 0A47759EFA: message-id=[EMAIL PROTECTED] Aug 4 13:24:45 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] disconnect from pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:45 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] 0A47759EFA: from=[EMAIL PROTECTED], size=1899, nrcpt=1 (queue active) Aug 4 13:24:47 mail2.engr.colostate.edu deliver(cjay): [ID 315030 mail.info] Loading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda Aug 4 13:24:48 mail2.engr.colostate.edu deliver(cjay): [ID 619685 mail.info] Module loaded: /userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so Aug 4 13:24:48 mail2.engr.colostate.edu deliver(cjay): [ID 848615 mail.info] mbox: data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay Aug 4 13:24:48 mail2.engr.colostate.edu deliver(cjay): [ID 885103 mail.info] fs: root=/top/admin/ENS/people/cjay/home, index=, control=, inbox=/userM/mail/cjay Aug 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 223526 mail.info] cmusieve: Using sieve path: /top/admin/ENS/people/cjay/home/.dovecot.sieve Aug 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 507699 mail.info] cmusieve: Executing script /top/admin/ENS/people/cjay/home/.dovecot.sievec Aug 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 122265 mail.info] Sending a rejection to cjay: I don't like your email message Aug 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 351585 mail.info] msgid=[EMAIL PROTECTED]: rejected Aug 4 13:24:49 mail2.engr.colostate.edu postfix/local[10918]: [ID 197553 mail.info] 0A47759EFA: to=[EMAIL PROTECTED], relay=local, delay=5.1, delays=0.73/0.59/0/3.8, dsn=2.0.0, status=sent (delivered to command: /userM/ma il-services/dovecot/libexec/dovecot/deliver) Aug 4 13:24:49 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] 0A47759EFA: removed Aug 4 13:24:49 mail2.engr.colostate.edu postfix/pickup[642]: [ID 197553 mail.info] BB44459EFA: uid=10946 from= Aug 4 13:24:49 mail2.engr.colostate.edu postfix/cleanup[10917]: [ID 197553 mail.info] BB44459EFA: message-id=[EMAIL PROTECTED] Aug 4 13:24:49 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] BB44459EFA: from=, size=3185, nrcpt=1 (queue active) Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 315030 mail.info] Loading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 619685 mail.info] Module loaded: /userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so Aug 4
Re: [Dovecot] RFE: Disallow DELETE of non-empty MBOX
On Monday, August 04, 2008 2:41 PM -0400 Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 2:23 PM, Kenneth Porter wrote: It looks like this is already the rule for maildir, where one can't remove the folder if any files or subdirectories are present. Oh? I don't remember this kind of a feature.. Just went looking at the 1.1.1 code again and mis-remembered what I saw. I was looking at mbox_list_delete_mailbox and it was the mbox folder that contains folders behavior I was remembering. It will only unlink a folder if it contains no subfolders. ISTM that it should either recursively delete for consistency, or not delete non-empty folder that contains messages folders. Or does the standard require different behavior here? The problem is that I think this should be more of a per-client setting rather than a global setting. For example with Thunderbird (well, and non-mboxes) deleting the mailbox just renames it under Trash. Disallowing that would be annoying. And I suppose this issue really should be handled by the client UI instead of the server.. Note that renaming under Trash won't work if Trash is mbox, because mbox can't have subfolders. (Or did this change in Dovecot in 1.1.2?) I'd be happy to get this functionality as a plugin, but I haven't been able to get my head around how to write a plugin. It looks like some variation of the ACL plugin might do the job, since it also establishes restrictions on whether a delete can go through.
Re: [Dovecot] RFE: Disallow DELETE of non-empty MBOX
It occurs to me that another possibility is to make only the Trash folder maildir, but I think Tbird only allows setting the folders can contain both messages and folders option account-wide, not per-folder.
Re: [Dovecot] v1.1.2 released
On Aug 4, 2008, at 3:04 PM, Kyle Wheeler wrote: The issue, I think, is that maildirlock has a race condition. There is no guarantee that the parent has set up its signal handlers before the child gets around to killing it. Oh, you're right. I think signals are probably a bad way of handling this inter- process communication. How about using a pipe? I've attached a patch that seems to work. It would have been possible to also set up the signal handlers before the forking, but on OS X I seem to be getting the SIGCHLD signal before the SIGTERM.. So I changed the code to use a pipe: http://hg.dovecot.org/dovecot-1.1/rev/635a988626d0 PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Problem: delivery with mode 600 into shared folder
Hi Timo, - Timo Sirainen [EMAIL PROTECTED] wrote: On Jul 23, 2008, at 8:33 PM, Sergey Ivanov wrote: [skip] at Thunderbird restart, but after restart all messages in shared folder appear as new. Even without restart, when go to another folder and then return to one where I've marked messages as Read before, they are new! Dovecot configs are in my previous message, I think I should not post them once more. Sounds like the mailbox is read-only for the user. It doesn't have write-permissions to it the directories? you are right, directories with mail are only readable by users, they have each their own dirs for storing CONTROL and INDEX. --- mail_location: maildir:/home/vmail/listuser/Maildir:CONTROL=/home/vmail/%u/Maildir/control:INDEX=/home/vmail/%u/Maildir/index --- your change b5388b21c4c2 fixed the problem, thank you! -- Sergey ivanov.
Re: [Dovecot] RFE: Disallow DELETE of non-empty MBOX
On Aug 4, 2008, at 3:42 PM, Kenneth Porter wrote: It occurs to me that another possibility is to make only the Trash folder maildir, but I think Tbird only allows setting the folders can contain both messages and folders option account-wide, not per- folder. You could switch to Maildir++ layout for mboxes to get dual-use mailboxes: mail_location = mbox:~/mail:LAYOUT=maildir++ PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] RFE: Disallow DELETE of non-empty MBOX
On Aug 4, 2008, at 3:40 PM, Kenneth Porter wrote: On Monday, August 04, 2008 2:41 PM -0400 Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 2:23 PM, Kenneth Porter wrote: It looks like this is already the rule for maildir, where one can't remove the folder if any files or subdirectories are present. Oh? I don't remember this kind of a feature.. Just went looking at the 1.1.1 code again and mis-remembered what I saw. I was looking at mbox_list_delete_mailbox and it was the mbox folder that contains folders behavior I was remembering. It will only unlink a folder if it contains no subfolders. ISTM that it should either recursively delete for consistency, or not delete non- empty folder that contains messages folders. Or does the standard require different behavior here? Standard says: The DELETE command MUST NOT remove inferior hierarchical names. For example, if a mailbox foo has an inferior foo.bar (assuming . is the hierarchy delimiter character), removing foo MUST NOT remove foo.bar. The problem is that I think this should be more of a per-client setting rather than a global setting. For example with Thunderbird (well, and non-mboxes) deleting the mailbox just renames it under Trash. Disallowing that would be annoying. And I suppose this issue really should be handled by the client UI instead of the server.. Note that renaming under Trash won't work if Trash is mbox, because mbox can't have subfolders. (Or did this change in Dovecot in 1.1.2?) That's why I said (well, and non-mboxes) :) I'd be happy to get this functionality as a plugin, but I haven't been able to get my head around how to write a plugin. It looks like some variation of the ACL plugin might do the job, since it also establishes restrictions on whether a delete can go through. As an example you could look at quota-storage.c quota_mailbox_list_delete(). So in there open, sync and call mailbox_status() to see if it's non-empty and if so call mail_storage_set_error() and don't call super.mailbox_delete(). PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.1 + zlib plugin + mbox crash
On Aug 4, 2008, at 2:38 PM, Dean Brooks wrote: Does dovecot require a shared version of the libbz2 library to compile correctly? Is there no way to statically link this? You could link the libbz2.a into the imap binary (and hope that linker doesn't optimize it away), but you can't link .a libraries to shared libraries (plugins). Or, alternatively, is there a way to shut off this libbz2 plugin completely in the configure script? You could afterwards remove HAVE_BZLIB from config.h and remove it from Makefile. Wonder if there's a way in autoconf to detect if a library is shared.. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.12 ignores auth_krb5_keytab settings
Timo Sirainen schrieb: On Aug 2, 2008, at 1:12 PM, christop wrote: i am using here a FreeBSD 7.0 amd64 with latest dovecot from ports. It ignores the krb5_keytab settings, which looks like this in the logs: What this setting does is that it adds KRB5_KTNAME environment that the Kerberos library should pick up. Are you using MIT or Heimdal Kerberos? It is Heimdal 0.6.3 out of the FreeBSD Basesystem. If Heimdal: krb5_keytab: /etc/mail2.krb5.keytab A quick google lookup showed an example with FILE: prefix. Try: krb5_keytab = FILE:/etc/mail2.krb5.keytab I tried this, but it did not help. Atleast it should be possible with the Kerberos libs, because we doing this for a different service with cyrus-sasl-2.1.22. There is a textfile in /usr/local/lib/sasl2 which reads: keytab: /etc/unp.krb5.keytab pwcheck_method: saslauthd mech_list: gssapi MfG Christoph signature.asc Description: OpenPGP digital signature
Re: [Dovecot] Dovecot 1.1.12 ignores auth_krb5_keytab settings
On Aug 4, 2008, at 4:50 PM, christop wrote: Timo Sirainen schrieb: On Aug 2, 2008, at 1:12 PM, christop wrote: i am using here a FreeBSD 7.0 amd64 with latest dovecot from ports. It ignores the krb5_keytab settings, which looks like this in the logs: What this setting does is that it adds KRB5_KTNAME environment that the Kerberos library should pick up. Are you using MIT or Heimdal Kerberos? It is Heimdal 0.6.3 out of the FreeBSD Basesystem. See if this helps: http://hg.dovecot.org/dovecot-1.1/rev/818a638fa9a3 You'll need to run autogen.sh and configure again after that. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot,nfs or memory indexing
Hi, Thanks for reply. 2008/8/4 Timo Sirainen [EMAIL PROTECTED] On Aug 4, 2008, at 9:42 AM, Sebastian Tymków wrote: Hi, I wonder if it's normal behaviour that indexes created in memory have long creation time. No, but the problem has more to do with caching. If you use a client that fetches the same data often (such as message headers/sizes) then Dovecot will do the same work for each request. In that case in-memory indexes perform poorly. This is more of a problem with webmail clients and less of a problem with Outlook/Thunderbird. And what about if I want use both solutions , memory indexing for POP3 and hd-indexing for webmail? Are there any disadventages ? If you're using POP3 that also performs poorly without indexes with v1.0. v1.1 makes it better. Other problem is that indexes created on nfs sometimes get crushed and I need to delete indexes in case of fetching mails ( I see mails on hd but when telnet on host and make stat I don't see any). So Dovecot says there are no mails while there are in fact? Yes. But when I delete indexes and they are recreated everything works fine. Is it possible that something goes wrong on NFS connection ? Does version 1.1.x correct this errors ? v1.1 makes NFS work a lot better, so it's highly recommended. Does it stable version ? Can I use it on production without any problems ? And what is better to use : nfs or memory indexing ? Can someone point me adventages and disadventages of using both solutions? Have you read http://wiki.dovecot.org/NFS ? Yes. Best regards, Sebastian
Re: [Dovecot] RFE: Disallow DELETE of non-empty MBOX
On Monday, August 4 at 04:15 PM, quoth Timo Sirainen: On Aug 4, 2008, at 3:42 PM, Kenneth Porter wrote: It occurs to me that another possibility is to make only the Trash folder maildir, but I think Tbird only allows setting the folders can contain both messages and folders option account-wide, not per-folder. You could switch to Maildir++ layout for mboxes to get dual-use mailboxes: mail_location = mbox:~/mail:LAYOUT=maildir++ If you do that, though, you have to put your INDEXES somewhere else. Otherwise you get warnings like this: dovecot: Error: IMAP([EMAIL PROTECTED]): open() failed with file /domains/example.net/user/mail/. Trash.DeleteMe/dovecot.index.log: Not a directory It's not a directory, obviously, because .Trash.DeleteMe is the mbox file. ~Kyle -- As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality. -- Albert Einstein pgpkoa4CU1ECL.pgp Description: PGP signature
Re: [Dovecot] dovecot-auth requires userdb, but already configured
On Mon, Aug 4, 2008 at 4:19 AM, Eduardo M KALINOWSKI [EMAIL PROTECTED] wrote: Carl Vondrick wrote: I believe I have narrowed down the problem to dovecot-auth not finding my userdb. But, I am able to connect to dovecot via IMAP in my MUA and preform operations (read, delete mail, create folders). This leads me to believe my userdb is setup correctly. Does anyone have any idea as to why dovecot-auth would not find my userdb? (Configuration is below). Are you using virtual users? Yes, from a simple passwd-like file that contains something like: vondrick:{SSHA}foobar:1000:1000::/home/carl/mail/vondrick In this case, Dovecot's deliver needs a master socket to get user information from. See instructions at http://wiki.dovecot.org/LDA . I have adjusted my configuration so that a master auth socket is created. I confirmed it's created, but the problem still persists. [EMAIL PROTECTED]:~$ dovecot -n # 1.0.10: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot.log ssl_disable: yes disable_plaintext_auth: no verbose_ssl: yes login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_location: mbox:/home/carl/mail/%u mail_debug: yes dotlock_use_excl: yes auth default: verbose: yes debug: yes passdb: driver: passwd-file args: /etc/dovecot/passwd userdb: driver: passwd-file args: username_format=%u /etc/dovecot/passwd socket: type: listen master: path: /var/run/dovecot/auth-master mode: 511 user: carl [EMAIL PROTECTED]:~$ ls /var/run/dovecot/ auth-master auth-worker.25156 dict-server login master.pid [EMAIL PROTECTED]:~$ /usr/lib/dovecot/dovecot-auth dovecot-auth: Fatal: You'll need to add at least one userdb Any ideas? I configured deliver to log, but nothing is written to the log when the permissions are 0666. Carl
[Dovecot] sieve multiple redirects
I got a sieve script like this: redirect [EMAIL PROTECTED]; redirect [EMAIL PROTECTED]; keep; It seems to redirect the mail to the 1st user but not the 2nd. Any idea? From what I can tell, that is a valid sieve script. I am using an earlier RC version of dovecot - 1.1.rc4, going to be upgrading soon. There are also a few errors. I assume /home/orders is not needed? Also, does Dovecot go through Global Sieve script and then per-user script? It appears that the global script is not even used if the per-user script exists - anyway to change that so both are parsed in order? Aug 4 16:36:48 the.testing.net deliver([EMAIL PROTECTED]): [ID 223526 mail.info] cmusieve: Using sieve path: /apps/mail/domain.com/orders/.dovecot.sieve Aug 4 16:36:48 the.testing.net deliver([EMAIL PROTECTED]): [ID 507699 mail.info] cmusieve: Executing script /apps/mail/domain.com/orders/.dovecot.sievec Aug 4 16:36:48 the.testing.net deliver([EMAIL PROTECTED]): [ID 698705 mail.error] file_dotlock_create(/home/orders/.dovecot.lda-dupes) failed: No such file or directory Aug 4 16:36:48 the.testing.net deliver([EMAIL PROTECTED]): [ID 104220 mail.info] Sending a forward to [EMAIL PROTECTED] with return path [EMAIL PROTECTED] Aug 4 16:36:49 the.testing.net sendmail[20139]: [ID 801593 mail.info] m74NamS4020139: from=[EMAIL PROTECTED], size=1119, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Aug 4 16:36:49 the.testing.net sendmail[20138]: [ID 801593 mail.info] m74Namh1020138: [EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30850, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m74NamS4020139 Message accepted for delivery) Aug 4 16:36:49 the.testing.net deliver([EMAIL PROTECTED]): [ID 260232 mail.error] Sendmail process terminated abnormally, exit status 70 Aug 4 16:36:49 the.testing.net deliver([EMAIL PROTECTED]): [ID 344163 mail.info] sieve runtime error: Redirect: Error sending mail Aug 4 16:36:49 the.testing.net deliver([EMAIL PROTECTED]): [ID 368532 mail.error] sieve_execute_bytecode(/apps/mail/domain.com/orders/.dovecot.sievec) failed Aug 4 16:36:49 the.testing.net deliver([EMAIL PROTECTED]): [ID 702911 mail.info] msgid=[EMAIL PROTECTED]: saved mail to INBOX
[Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes.
Hi, I am running dovecot 1.0.rc7 on a Suse Linux server. The server has approx 200+ mailboxes. Last week the filesystem (/dev/mapper/datavg/dat2lv) ran out of space - causing it to do into read-only mode. When I realised this I allocated some more space and re-booted the machine... Strangely it seems that dovecot is still having problems... It's like dovecot doesn't realise that there is enough space on the file system. Also - it only is happening to a few users at this stage - not all users are having problems sending/receiving emails... The dovecotstderr.log file contains: dovecot: Aug 05 09:47:38 Error: IMAP(rebecca): file_dotlock_open(/data/mail/rebecca/dovecot-uidlist) failed: No space left on device When I do a df -h mail:/var/log # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda4 9.0G 5.7G 3.3G 64% / tmpfs 491M 8.0K 491M 1% /dev/shm/dev/mapper/datavg-dat2lv 300G 130G 171G 44% /data When I do a df -i mail:/var/log # df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda4 0 0 0- /tmpfs 125505 5 125500 1% /dev/shm /dev/mapper/datavg-dat2lv 357753312 1030354 3567229581% /data I manually created a file in /data/mail/rebecca - which worked fine, and didn't cause any problems. HELP!!! I am stumped I can't understand why Dovecot is complaining.. I have manually stopped postfix and dovecot, and then re-started them.. But to no avail. HELP - I am desperate My previously very reliable email server seems to be sick.. _ Meet singles near you. Try ninemsn dating now! http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fdating%2Eninemsn%2Ecom%2Eau%2Fchannel%2Findex%2Easpx%3Ftrackingid%3D1046247_t=773166080_r=WL_TAGLINE_m=EXT
Re: [Dovecot] dovecot-auth requires userdb, but already configured
On Aug 4, 2008, at 6:11 PM, Carl Vondrick wrote: In this case, Dovecot's deliver needs a master socket to get user information from. See instructions at http://wiki.dovecot.org/LDA . I have adjusted my configuration so that a master auth socket is created. I confirmed it's created, but the problem still persists. How exactly do you see the problem with deliver? [EMAIL PROTECTED]:~$ /usr/lib/dovecot/dovecot-auth dovecot-auth: Fatal: You'll need to add at least one userdb You can't (and don't need to) run dovecot-auth directly. I suppose I should change this error message to be better.. So you can just forget about this error message. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes.
On Aug 4, 2008, at 8:30 PM, Tom Brownlie wrote: dovecot: Aug 05 09:47:38 Error: IMAP(rebecca): file_dotlock_open(/ data/mail/rebecca/dovecot-uidlist) failed: No space left on device Some syscall is failing here with ENOSPC. Unfortunately the log doesn't show which syscall it is.. You could check this with strace. For example change: mail_executable = /usr/bin/strace -o /tmp/dovecot.log /usr/local/ libexec/dovecot/imap Then grep for ENOSPC from the /tmp/dovecot.log and show what it says? I manually created a file in /data/mail/rebecca - which worked fine, and didn't cause any problems. Can you create hard links (ln file file2)? I have manually stopped postfix and dovecot, and then re-started them.. But to no avail. Did you try rebooting the entire machine? Maybe the kernel is still confused. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes.
Hi Timo, Thanks - but no luck #1 I changed dovecot.conf as suggested, stopped it and then restarted it. Tried this users account - and it failed again. There is no ENOSPC in the /tmp/dovecot.log file!! This file is growing rapidly, but no ENOSPC... #2 Yes I can create hard links. I created a file in /data/mail/rebecca called toms.test I then ln toms.test toms.test.2 It worked fine. #3 I haven't rebooted the server yet, because there are 200 users on it, and it is located remotely from me Any other suggestions??? From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 4 Aug 2008 20:43:47 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes. On Aug 4, 2008, at 8:30 PM, Tom Brownlie wrote: dovecot: Aug 05 09:47:38 Error: IMAP(rebecca): file_dotlock_open(/ data/mail/rebecca/dovecot-uidlist) failed: No space left on device Some syscall is failing here with ENOSPC. Unfortunately the log doesn't show which syscall it is.. You could check this with strace. For example change: mail_executable = /usr/bin/strace -o /tmp/dovecot.log /usr/local/ libexec/dovecot/imap Then grep for ENOSPC from the /tmp/dovecot.log and show what it says? I manually created a file in /data/mail/rebecca - which worked fine, and didn't cause any problems. Can you create hard links (ln file file2)? I have manually stopped postfix and dovecot, and then re-started them.. But to no avail. Did you try rebooting the entire machine? Maybe the kernel is still confused. _ Are you paid what you're worth? Find out: SEEK Salary Centre http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext_t=764565661_r=OCT07_endtext_salary_m=EXT
Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes.
On Aug 4, 2008, at 9:04 PM, Tom Brownlie wrote: #1 I changed dovecot.conf as suggested, stopped it and then restarted it. Tried this users account - and it failed again. There is no ENOSPC in the /tmp/dovecot.log file!! This file is growing rapidly, but no ENOSPC... The file is now being recreated for each user that logs in. Ideally you should find a way to get it written only for the one user that has the problem and then reproduce the error only once so that you know exactly what operations were in the log file. So perhaps something like: mail_executable = /tmp/imap.sh and imap.sh contains: #!/bin/sh if [ $USER = problemuser ]; then exec strace -o /tmp/dovecot.log.$$.`date +%s` /usr/local/libexec/ dovecot/imap else exec /usr/local/libexec/dovecot/imap fi PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes.
Hi Timo, That got better results I did as requested, tried the problem user and: * 3 log files were created mail:/tmp # ls -l /tmp/dove* -rw--- 1 root root 8601 Aug 5 11:06 /tmp/dovecot.log.24160.1217898384 -rw--- 1 root root 68107 Aug 5 11:06 /tmp/dovecot.log.24166.1217898385 -rw--- 1 root root 10067 Aug 5 11:06 /tmp/dovecot.log.24170.1217898386 mail:/tmp # grep ENOSPC dovecot* dovecot.log.24166.1217898385:open(/data/mail/rebecca/temp.mail.24168.891513683e680a10, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = -1 ENOSPC (No space left on device) dovecot.log.24170.1217898386:open(/data/mail/rebecca/temp.mail.24172.9054608ba8d51503, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = -1 ENOSPC (No space left on device) Does that help you in any way? Tom. From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 4 Aug 2008 21:10:34 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes. On Aug 4, 2008, at 9:04 PM, Tom Brownlie wrote: #1 I changed dovecot.conf as suggested, stopped it and then restarted it. Tried this users account - and it failed again. There is no ENOSPC in the /tmp/dovecot.log file!! This file is growing rapidly, but no ENOSPC... The file is now being recreated for each user that logs in. Ideally you should find a way to get it written only for the one user that has the problem and then reproduce the error only once so that you know exactly what operations were in the log file. So perhaps something like: mail_executable = /tmp/imap.sh and imap.sh contains: #!/bin/sh if [ $USER = problemuser ]; then exec strace -o /tmp/dovecot.log.$$.`date +%s` /usr/local/libexec/ dovecot/imap else exec /usr/local/libexec/dovecot/imap fi _ Win a Nokia E51 with mobile Hotmail SMS alerts http://www.livelife.ninemsn.com.au/compIntro.aspx?compId=4589
Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes.
On Tuesday of August 5 2008, Tom Brownlie wrote: Also - it only is happening to a few users at this stage - not all users are having problems sending/receiving emails... this suggests that problem could be quota-related, did you check? regards -- Marcin Gryszkalis, PGP 0x9F183FA3 jabber jid:[EMAIL PROTECTED], gg:2532994 http://the.fork.pl
Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes.
i do not believe that we have a quota system, but how do I check? From: [EMAIL PROTECTED] To: dovecot@dovecot.org Date: Tue, 5 Aug 2008 03:59:57 +0200 Subject: Re: [Dovecot] doveot reporting No space left on device - yet df show plenty of space / inodes. On Tuesday of August 5 2008, Tom Brownlie wrote: Also - it only is happening to a few users at this stage - not all users are having problems sending/receiving emails... this suggests that problem could be quota-related, did you check? regards -- Marcin Gryszkalis, PGP 0x9F183FA3 jabber jid:[EMAIL PROTECTED], gg:2532994 http://the.fork.pl _ It's simple! Sell your car for just $40 at CarPoint.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641_t=762955845_r=tig_OCT07_m=EXT
Re: [Dovecot] doveot reporting No space left on dev ice - yet df show plenty of space / inodes.
On Tuesday of August 5 2008, Tom Brownlie wrote: i do not believe that we have a quota system, but how do I check? mount would show something like /dev/hda6 on /home type ext3 (rw,nosuid,nodev,noatime,usrquota) usrquota is the one, could be also grpquota ro something like that... regards -- Marcin Gryszkalis, PGP 0x9F183FA3 jabber jid:[EMAIL PROTECTED], gg:2532994 http://the.fork.pl
Re: [Dovecot] dovecot-auth requires userdb, but already configured
On Mon, Aug 4, 2008 at 5:31 PM, Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 6:11 PM, Carl Vondrick wrote: In this case, Dovecot's deliver needs a master socket to get user information from. See instructions at http://wiki.dovecot.org/LDA . I have adjusted my configuration so that a master auth socket is created. I confirmed it's created, but the problem still persists. How exactly do you see the problem with deliver? In short, it causes fetchmail / getmail to fail. There doesn't seem to be an error message either. [EMAIL PROTECTED]:~$ fetchmail 329 messages for [EMAIL PROTECTED] at pop.gmail.com (14160305 octets). reading message [EMAIL PROTECTED]@gmail-pop.l.google.com:1 of 329 (5416 octets).fetchmail: error writing message text fetchmail: MDA error while fetching from [EMAIL PROTECTED]@pop.gmail.com fetchmail: Query status=6 (IOERR) [EMAIL PROTECTED]:~$ cat .fetchmailrc poll pop.gmail.com with proto POP3 user [EMAIL PROTECTED] there with pass foobar mda /usr/lib/dovecot/deliver -d vondrick ssl There is similar behavior with getmail: [EMAIL PROTECTED]:~$ getmail getmail version 4.7.7 Copyright (C) 1998-2007 Charles Cazabon. Licensed under the GNU GPL version 2. SimplePOP3SSLRetriever:[EMAIL PROTECTED]@pop.gmail.com:995: Delivery error (command deliver 32064 error (78, )) msg 1/329 (5416 bytes), delivery error (command deliver 32064 error (78, )) I'm following the example in this thread: http://dovecot.org/pipermail/dovecot/2007-July/024012.html Thanks for your responses so far -- this is a very helpful and active community. Carl
Re: [Dovecot] FTS/squat search indexes built when?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen wrote: | On Aug 1, 2008, at 1:39 AM, Patrick Nagel wrote: | | | mailboxes=`printf 1 list *\n | dovecot --exec-mail imap | perl | magic` | | Ok, looks easy. But I can't find information anywhere on how to | specify the | user. I tried with 'USER=username' in front of the dovecot call, and | dovecot | then said 'Logged in as username' instead of 'Logged in as root', but | a list | command doesn't show the mailboxes, so I think it's not accessing the | maildir | of that user. | I guess it's because the users are not system users, and dovecot needs to | retrieve info from the LDAP directory first. But how do I tell it to | do that? | | You can't do that with --exec-mail. It expects to be running using the | correct UID, GID, $USER and $HOME. | | Logging in via netcat / telnet works, but then I don't know how to | proceed... | | With v1.2 code you could use the same printf .. | nc localhost 143, but | unfortunately this doesn't work with older versions since the input | buffer is reset after login. | I see. So now we're back to I don't know how to react to dovecot's responses ;) To sum up: It's currently (with version 1.1) not possible to script IMAP operations with shell script when using virtual users. With perl or some other scripting language, using an IMAP module, it should be no problem though. Version 1.2 will make it easier for scripts to interface via IMAP, because you can pipe a batch of commands into dovecot, and it won't just ignore everything after the login command. Thanks for the clarification! Patrick. - -- STAR Software (Shanghai) Co., Ltd.http://www.star-group.net/ Phone:+86 (21) 3462 7688 x 826 Fax: +86 (21) 3462 7779 PGP key: https://stshacom1.star-china.net/keys/patrick_nagel.asc Fingerprint: E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFIl8Er7yMg/OiDoAURAt4aAKCmYomljxapIJ1H/jS/YoOt0ygDiQCeK+kE 4r3nLKZ/cELZZX0eIg1xbEc= =g2dM -END PGP SIGNATURE-
Re: [Dovecot] dovecot-auth requires userdb, but already configured
Everything seems to work now. I needed to configure a postmaster_address in the dovecot.conf. I guess I missed this in the docs somewhere. For the random Googler who sees this later on: protocol lda { auth_socket_path = /var/run/dovecot/auth-master log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log postmaster_address = [EMAIL PROTECTED] } Thanks for the great project! On Mon, Aug 4, 2008 at 7:57 PM, Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 10:53 PM, Carl Vondrick wrote: How exactly do you see the problem with deliver? In short, it causes fetchmail / getmail to fail. There doesn't seem to be an error message either. You should probably find deliver's error log file. See http://wiki.dovecot.org/LDA - logging and http://wiki.dovecot.org/Logging Delivery error (command deliver 32064 error (78, )) msg 1/329 (5416 bytes), delivery error (command deliver 32064 error (78, )) 78 means EX_CONFIG. If deliver got called, it should have logged the actual error.
Re: [Dovecot] Expire plugin with Mysql
Dear Timo, I tried to change back to expire: Trash 1 and it seem still not work whenever I delete email within Mail.app Thunderbird. the dict_expire table not being updated. Here is my dict.conf file connect = host=sql dbname=vmail user=xx password=xx table = dict_expire select_field = timestamp where_field = path username_field = username How can I debug the imap and check why the table didn't got updated when we delete email ? Thanks Dino On 21 Jul 2008, at 12:11 AM, Timo Sirainen wrote: On Tue, 2008-07-08 at 15:07 +0800, Dino Ming wrote: Hi Timo, I had setup the expire plugin using proxy dict method with mysql table. Whenever I run the command : dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool , I saw dovecot query the table : Query SELECT path, timestamp FROM dict_expire ORDER BY timestamp But then, nothing happened at all. No mails being expunge from the mailbox Trash folder. Also, What is the purpose for the table to store username, path timestamp ? Because the table is empty and no data populated. If there are no rows in the table, then that's the reason expire-tool doesn't do anything. IMAP should insert rows into the table when you're copying messages to Trash. expire: Trash 1 Trash/* 1 I guess by Trash/* you're thinking about mailboxes thare are renamed there by Thunderbird? That won't work currently..