[Dovecot] (v1.1.6) Fatal: userdb didn't return a home directory, but mail location used it (%h)
Hi, all. I upgrade to 1.1.6, but the same config didn't work now. Error message while start dovecot: Starting Dovecot Imap: Fatal: userdb didn't return a home directory, but mail location used it (%h): /%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/ Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot.conf Here is my dovecot.conf file and dovecot-ldap.conf: # dovecot -n # 1.1.6: /etc/dovecot.conf # OS: Linux 2.6.18-92.el5 x86_64 Red Hat Enterprise Linux Server release 5.2 (Tikanga) log_path: /var/log/dovecot.log protocols: pop3 pop3s imap imaps listen: * ssl_cert_file: /etc/pki/iRedMail/SSL_Cert.pem ssl_key_file: /etc/pki/iRedMail/SSL_Key.pem 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 mail_uid: 2000 mail_gid: 2000 mail_location: maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/ mail_debug: yes 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 zlib mail_plugins(imap): quota imap_quota zlib mail_plugins(pop3): quota zlib mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3 pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login default_realm: a.cn user: vmail passdb: driver: ldap args: /etc/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot-ldap.conf socket: type: listen client: path: /var/spool/postfix/dovecot-auth mode: 438 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 438 user: vmail group: vmail plugin: quota: maildir quota_rule: *:storage=10M expire: Trash 7 Trash/* 7 Junk 30 expire_dict: proxy::expire auth_socket_path: /var/run/dovecot/auth-master sieve: /var/www/sieve/%Ld/%Ln/.dovecot.sieve dict: expire: db:/var/lib/dovecot/expire/expire.db dovecot-ldap.conf hosts = 127.0.0.1:389 ldap_version= 3 auth_bind = yes dn = cn=vmail,dc=iredmail,dc=org dnpass = [EMAIL PROTECTED]29049*31446)15524 base= domainName=%d,o=domains,dc=iredmail,dc=org scope = subtree deref = never user_filter = ((mail=%u)(objectClass=mailUser)(accountStatus=active)) pass_filter = (mail=%u) pass_attrs = userPassword=password default_pass_scheme = CRYPT user_attrs = homeDirectory=home,=sieve_dir=/var/www/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$ -- Best regards. - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail/
Re: [Dovecot] (v1.1.6) Fatal: userdb didn't return a home directory, but mail location used it (%h)
On Thu, 2008-11-06 at 17:24 +0800, Zhang Huangbin wrote: Hi, all. I upgrade to 1.1.6, but the same config didn't work now. Error message while start dovecot: Starting Dovecot Imap: Fatal: userdb didn't return a home directory, but mail location used it (%h): /%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/ Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot.conf This error has been corrected: http://hg.dovecot.org/dovecot-1.1/rev/2fbd36039526 http://hg.dovecot.org/dovecot-1.1/rev/cbde69815b8a On Fri, 2008-10-31 at 18:07 +0200, Timo Sirainen wrote: One workaround is to use ~ instead of %h. It'll log errors, but it still works. Here is my dovecot.conf file and dovecot-ldap.conf: # dovecot -n # 1.1.6: /etc/dovecot.conf # OS: Linux 2.6.18-92.el5 x86_64 Red Hat Enterprise Linux Server release 5.2 (Tikanga) log_path: /var/log/dovecot.log protocols: pop3 pop3s imap imaps listen: * ssl_cert_file: /etc/pki/iRedMail/SSL_Cert.pem ssl_key_file: /etc/pki/iRedMail/SSL_Key.pem 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 mail_uid: 2000 mail_gid: 2000 mail_location: maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/ mail_debug: yes 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 zlib mail_plugins(imap): quota imap_quota zlib mail_plugins(pop3): quota zlib mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3 pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login default_realm: a.cn user: vmail passdb: driver: ldap args: /etc/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot-ldap.conf socket: type: listen client: path: /var/spool/postfix/dovecot-auth mode: 438 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 438 user: vmail group: vmail plugin: quota: maildir quota_rule: *:storage=10M expire: Trash 7 Trash/* 7 Junk 30 expire_dict: proxy::expire auth_socket_path: /var/run/dovecot/auth-master sieve: /var/www/sieve/%Ld/%Ln/.dovecot.sieve dict: expire: db:/var/lib/dovecot/expire/expire.db dovecot-ldap.conf hosts = 127.0.0.1:389 ldap_version= 3 auth_bind = yes dn = cn=vmail,dc=iredmail,dc=org dnpass = [EMAIL PROTECTED]29049*31446)15524 base= domainName=%d,o=domains,dc=iredmail,dc=org scope = subtree deref = never user_filter = ((mail=%u)(objectClass=mailUser)(accountStatus=active)) pass_filter = (mail=%u) pass_attrs = userPassword=password default_pass_scheme = CRYPT user_attrs = homeDirectory=home,=sieve_dir=/var/www/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$ signature.asc Description: This is a digitally signed message part
[Dovecot] (1.0.13) fsync failed: Disk quota exceeded for some accounts
Hello all, We've recently migrated the mail server used by our 5000 students, from Tru64/UW-IMAP/Procmail/Postfix/mbox to Debian Etch/Dovecot/Deliver/Postfix/Maildir E-mails are not stored directly on the server (except for index and control files), but on an NAS that exports the students' homedirs on NFS. Each student has a 100MB quota on the NAS. Here is the configuration : vega:~# dovecot -n # 1.0.13: /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap pop3 listen: [::] ssl_disable: yes disable_plaintext_auth: no verbose_ssl: yes login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting_capability(default): yes login_greeting_capability(imap): yes login_greeting_capability(pop3): no login_process_size: 32 login_max_processes_count: 1024 mail_privileged_group: mail mail_location: maildir:~/Maildir:INDEX=/var/mail/index/%u:CONTROL=/var/mail/control/%u maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv namespace: type: private separator: / inbox: yes namespace: type: private separator: / prefix: mail/ hidden: yes auth default: cache_size: 1024 passdb: driver: pam args: blocking=yes cache_key=%u dovecot userdb: driver: passwd args: blocking=yes When one mails a student that has filled his quota, one immediately receives this message : Your message to studentx was automatically rejected: Not enough disk space Reporting-UA: vega; Dovecot Mail Delivery Agent Final-Recipient: rfc822; studentx Original-Message-ID: [EMAIL PROTECTED] Disposition: automatic-action/MDN-sent-automatically; deleted And in /var/log/mail.log : (...) save failed to INBOX: Not enough disk space (...) Rejected: Not enough disk space So far, so good, except that for *some* users (and I can't seem to find anything unusual about their account), one gets this in /var/log/mail.log : Nov 6 10:42:24 vega deliver(studentx): fsync(/voletu/users/studentx/Maildir/tmp/1225964544.P25878Q0M80993.vega) failed: Disk quota exceeded Nov 6 10:42:24 vega deliver(studentx): msgid=[EMAIL PROTECTED]: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2008-11-06 10:42:24] Nov 6 10:42:24 vega postfix/local[25827]: 010F45EC18: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=0.2, delays=0.02/0/0/0.17, dsn=4.3.0, status=deferred (temporary failure) So for *some* users, it seems that Deliver doesn't detect that there isn't enough space, it tries to write the e-mail and of course fails, then reports an error, and Postfix interprets this as a temporary error and retries later. After about a week : vega:~# qshape deferred T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 500 1 4 3 9 12 6 8 17 140 300 etu.utc.fr 499 1 4 3 9 12 6 8 17 139 300 vega.utc.fr 1 0 0 0 0 0 0 0 01 0 For the students that have this problem (about 30 for now), this happens *even* if I delete ~studentx/Maildir, /var/mail/index/studentx and /var/mail/control/studentx, let Deliver recreate the necessary files (by sending the user a mail) so that everything is clean, artificially fill the quota with a big file in the homedir, then send a mail again. It gets deferred... I have looked at the changelog for Dovecot, but have not found a clear clue that is a bug (if it is !) that has already been corrected in a more recent version... Though if possible, I'd like to keep the Debian package (from etch-backports) instead of compiling it from source. Also, while I've found Dovecot's wiki to be surprisingly informative, there are still a few points that did not seem very clear : - should I use the quota:fs plugin in this case (it seems to work out well without it for most users) ? - would it work in v1.0.13 on NFS ? - if it worked, and I enabled it, what would change for me ? - what is *supposed* to happen without the quota plugin when a user has filled his quota : mail is rejected, or mail is deferred ? - and what about imap_quota ? Best regards, Eric
Re: [Dovecot] (1.0.13) fsync failed: Disk quota exceeded for some accounts
Eric Marin wrote: So for *some* users, it seems that Deliver doesn't detect that there isn't enough space, it tries to write the e-mail and of course fails, then reports an error, and Postfix interprets this as a temporary error and retries later. Without knowing anything about the problem I would guess this is a rounding issue. Probably you are off by the number of bytes in your short message saying you are over-quota. Sometimes you are just inside and sometimes just outside? Ed
Re: [Dovecot] (1.0.13) fsync failed: Disk quota exceeded for some accounts
Hi, unfortunately, for those users that cause problem, even if the user is completely over-quota (say 900MB of files for a 100MB quota) *before* adding the small mail, Deliver still reports an fsync failure. Eric Ed W a écrit : Eric Marin wrote: So for *some* users, it seems that Deliver doesn't detect that there isn't enough space, it tries to write the e-mail and of course fails, then reports an error, and Postfix interprets this as a temporary error and retries later. Without knowing anything about the problem I would guess this is a rounding issue. Probably you are off by the number of bytes in your short message saying you are over-quota. Sometimes you are just inside and sometimes just outside? Ed
Re: [Dovecot] (1.0.13) fsync failed: Disk quota exceeded for some accounts
Hi, Joseba Torre a écrit : Hi, El Jueves, 6 de Noviembre de 2008 a las 11:30, Eric Marin escribió: - should I use the quota:fs plugin in this case (it seems to work out well without it for most users) ? quota:fs is only about reporting quota status using IMAP. So, it should do no diference in this case. - would it work in v1.0.13 on NFS ? No, you have to apply a patch to get 1.0 quota over NFS - if it worked, and I enabled it, what would change for me ? You can offer that information to your imap users. I think it's good offering this info to my users, but this is another issue. Yes that would be great, i'll see about that, especially for Horde/IMP. But then, what does imap_quota do that quota itself doesn't ? Maybe the problem is with your NAS quotas. Have you tried deleting one of these users' quota, and reapplying it? HTH Unfortunately, I don't think this can be the cause because we defined quotas globally on the NAS : only one line defines the quota for all students... Eric
Re: [Dovecot] How do I use plus-addressing in Dovecot 1.1.x?
As best as I can tell, the answer seems to lie in namespaces as a feature added in Dovecot 1.1.0. The problem is that I don't understand how I could use them to resolve this situation. I've read the documentation. I've looked at as many example configurations as I could find. Instead of: deliver -m ${extension} Use: deliver -m INBOX.${extension} Hmm.. so what was the reason this changed from 1.0.x? deliver v1.1 reads namespace configuration (so the mailbox names are now identical with deliver and IMAP) instead of ignoring it and only supporting one location for mails. Oh, right... kindof obvious now that you pointed it out... ;) -- Best regards, Charles
Re: [Dovecot] (1.0.13) fsync failed: Disk quota exceeded for some accounts
On Thu, 2008-11-06 at 11:30 +0100, Eric Marin wrote: So far, so good, except that for *some* users (and I can't seem to find anything unusual about their account), one gets this in /var/log/mail.log : Nov 6 10:42:24 vega deliver(studentx): fsync(/voletu/users/studentx/Maildir/tmp/1225964544.P25878Q0M80993.vega) failed: Disk quota exceeded Strange that no-one had complained about this before. The problem is that your kernel is caching writes and it doesn't know the user is over quota. So then when fsync() finally gets called the kernel writes the data to NFS server, which replies that quota exceeded. This fixes it: http://hg.dovecot.org/dovecot-1.0/rev/9879434a6339 signature.asc Description: This is a digitally signed message part
Re: [Dovecot] (1.0.13) fsync failed: Disk quota exceeded for some accounts
Joseba Torre a écrit : HTH Unfortunately, I don't think this can be the cause because we defined quotas globally on the NAS : only one line defines the quota for all students... And it can't handle per user exceptions? Agur. Well, yes it can, of course :-) What I meant was that we had made no exception for this user, so the user itself is just using the global quota... Besides, when we migrated our server, we already disabled all quotas, then re-enabled them once everything was completed. Eric
[Dovecot] Per User Quotas
HI All Asking for a little patience and a bit of help here. I'm using dovecot-1.1.3_1 with postfix and squirrelmail. I have implemented a global quota successfully. That works fine. I want to now implement per user quotas. So far I have read the howto in the documentation and searched several threads but can't seem to get it working properly. My LDAP server is Windows 2003 Active Directory. Is there any documentation specific to AD that I could look at or any other doc that could help me? My last effort was to put this in dovecot-ldap.conf user_attrs = streetAddress=quota_rule4=*:storage=%$M ,=uid=1002,=gid=1002,=home=/home/vmail/%u and this in dovecot.conf in addition to the other quota rules. quota_rule4 = *:bytes=%$ I then put the quota in the streetAddress area of AD. I'd certainly appreciate any help. Thanks.
Re: [Dovecot] (1.0.13) fsync failed: Disk quota exceeded for some accounts
Hi, El Jueves, 6 de Noviembre de 2008 a las 11:30, Eric Marin escribió: - should I use the quota:fs plugin in this case (it seems to work out well without it for most users) ? quota:fs is only about reporting quota status using IMAP. So, it should do no diference in this case. - would it work in v1.0.13 on NFS ? No, you have to apply a patch to get 1.0 quota over NFS - if it worked, and I enabled it, what would change for me ? You can offer that information to your imap users. I think it's good offering this info to my users, but this is another issue. Maybe the problem is with your NAS quotas. Have you tried deleting one of these users' quota, and reapplying it? HTH -- Joseba Torre. CIDIR Bizkaia. signature.asc Description: This is a digitally signed message part.
Re: [Dovecot] Per User Quotas
OK thanks for replying, I am attaching both files with the information. On Thu, Nov 6, 2008 at 9:09 AM, Timo Sirainen [EMAIL PROTECTED] wrote: On Thu, 2008-11-06 at 09:02 -0500, Peter Fraser wrote: HI All Asking for a little patience and a bit of help here. I'm using dovecot-1.1.3_1 with postfix and squirrelmail. I have implemented a global quota successfully. That works fine. I want to now implement per user quotas. So far I have read the howto in the documentation and searched several threads but can't seem to get it working properly. My LDAP server is Windows 2003 Active Directory. Is there any documentation specific to AD that I could look at or any other doc that could help me? My last effort was to put this in dovecot-ldap.conf user_attrs = streetAddress=quota_rule4=*:storage=%$M ,=uid=1002,=gid=1002,=home=/home/vmail/%u You can also define the uid and gid with mail_uid and mail_gid settings in dovecot.conf. and this in dovecot.conf in addition to the other quota rules. quota_rule4 = *:bytes=%$ I then put the quota in the streetAddress area of AD. Sounds like it would work. Why doesn't it? Set auth_debug=yes and show logs. Also show dovecot -n output. mail# dovecot -n # 1.1.3: /usr/local/etc/dovecot.conf protocols: imaps pop3s lda managesieve listen(default): * listen(imap): * listen(pop3): * listen(managesieve): *:2000 ssl_cert_file: /usr/local/etc/dovecot/ssl/certs/dovecot.pem ssl_key_file: /usr/local/etc/dovecot/ssl/private/dovecot.pem disable_plaintext_auth: no login_dir: /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_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login login_greeting: Mail Server ready. login_greeting_capability(default): yes login_greeting_capability(imap): yes login_greeting_capability(pop3): no login_greeting_capability(managesieve): no verbose_proctitle: yes first_valid_uid: 1000 first_valid_gid: 1000 mail_privileged_group: mail mail_location: maildir:~/Maildir mail_debug: 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_executable(managesieve): /usr/local/libexec/dovecot/managesieve mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugins(managesieve): 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 mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugins(managesieve): 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 mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve imap_client_workarounds(default): delay-newmail netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_enable_last(default): no pop3_enable_last(imap): no pop3_enable_last(pop3): yes pop3_enable_last(managesieve): no pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): managesieve_implementation_string(default): dovecot managesieve_implementation_string(imap): dovecot managesieve_implementation_string(pop3): dovecot managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13 sieve_storage(default): sieve_storage(imap): sieve_storage(pop3): sieve_storage(managesieve): ~/sieve sieve(default): sieve(imap): sieve(pop3): sieve(managesieve): ~/.dovecot.sieve auth default: mechanisms: plain login username_format: %Ln verbose: yes debug: 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_executable(managesieve): /usr/local/libexec/dovecot/managesieve mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugins(managesieve): 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 mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve imap_client_workarounds(default): delay-newmail netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3):
[Dovecot] Compilation of 1.1.6 fails on HP-UX 11.31
Hi, $ uname -srv HP-UX B.11.31 U $ cc --version cc: HP C/aC++ B3910B A.06.20 [May 13 2008] Compilation fails, output of configure and make are given below. The cause of this is almost certainly that this version of HP-UX does define the QCMD macro in sys/quota.h (checked in the ifdef line 26 dovecot-1.1.6/src/plugins/quota/quota-fs.h) as well as the dqblk struct, but the latter with different fields than the Linux version. Older versions of HP-UX seem not to have contained this macro(? can't check this at the moment), which is probably why it was used to distinguish between HP-UX and Linux in quota-fs.h. Deleting lines 26-28 and 30 from dovecot-1.1.6/src/plugins/quota/quota-fs.h fixes the problem for HP-UX, but of course a real fix would need to add a more current method of distinguishing between Linux and HP-UX. If there's any more helfpul information you'd like let me know, cheers, Marc configure: ... Install prefix .. : /opt/dovecot-1.1.16 File offsets : 64bit I/O loop method . : poll File change notification method . : none Building with SSL support ... : yes (OpenSSL) Building with IPv6 support .. : yes Building with pop3 server ... : yes Building with mail delivery agent .. : yes Building with GSSAPI support : no Building with user database modules . : static prefetch passwd passwd-file Building with password lookup modules : passwd passwd-file pam checkpassword Building with SQL drivers : make: ... source='quota-fs.c' object='quota-fs.lo' libtool=yes \ DEPDIR=.deps depmode=hp2 /bin/sh ../../../depcomp \ /bin/sh ../../../libtool --tag=CC--mode=compile cc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict -I../../../src/lib-index -I../../../src/lib-mail -I../../../src/lib-storage -I../../../src/lib-storage/index -I../../../src/lib-storage/index/maildir -I/opt/openssl/include -g -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -c -o quota-fs.lo quota-fs.c cc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict -I../../../src/lib-index -I../../../src/lib-mail -I../../../src/lib-storage -I../../../src/lib-storage/index -I../../../src/lib-storage/index/maildir -I/opt/openssl/include -g -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -c +Maked quota-fs.c -DPIC -o .libs/quota-fs.o quota-fs.c, line 469: error #2136: struct dqblk has no field dqb_curinodes *value_r = dqblk.dqb_curinodes; ^ quota-fs.c, line 470: error #2136: struct dqblk has no field dqb_isoftlimit *limit_r = dqblk.dqb_isoftlimit; ^ 2 errors detected in the compilation of quota-fs.c. *** Error exit code 1
[Dovecot] Strange and sudden deletion of mails messages
Hello everyone, I'm having a bizarre problem (bug?) concerning deletion of messages from one of the mailboxes. The platform is set up as follows: FreeBSD 7-STABLE Postfix 2.6-20080411 Dovecot 1.0.13 Webmail using RoundCube 0.1-STABLE The trace (in Postfox logs) revealed that the message has been actually received, and saved to maildir, and then viewed once in Webmail. Hitting Reply in Webmail produced an error, and the letter (somehow) was nowhere to be found on the server! I have no clue what's the cause of this. Is there a way in Dovecot to catch all commands sent to the server, thus revealing who in effect deleted the message? Thanks in advance. Noor
Re: [Dovecot] Install Configuring and run.
Ok i summarized some things, maybe any1 can give a comment to it = when i restart dovecot i get this = /etc/init.d/dovecot restart Warning: Growing pool 'settings' with: 8192 * Stopping dovecot ... [ ok ] Warning: Growing pool 'settings' with: 8192 * Starting dovecot ... Warning: Growing pool 'settings' with: 8192 ILoading modules from directory: /usr/lib64/dovecot/imap WGrowing pool 'module loader' with: 2048 IModule loaded: /usr/lib64/dovecot/imap/lib90_antispam_plugin.so IEffective uid=65534, gid=65534, home= WGrowing pool 'antispam-pool' with: 2048 [ ok ] email-headers of SPAM tagged mails (spamassassin + pyzor + razor detect them as spam cause they are spam) dspam tags the mails like this = X-DSPAM RESULT Innocent X-DSPAM Confidence 0.8505 X-DSPAM Probability 0. so, Spamassassin detect them as spam and dspam not ? (to an old mail in list question , yes i trained ca 10.000 spam mails against some not spam). because this mail would grown in endless long text i pasted the configs on web = POSTFIX main.cf = http://rafb.net/p/PQy5FN10.html POSTFIX master.cf = http://rafb.net/p/2l02A087.html DOVECOT dovecot.conf = http://rafb.net/p/PjvV1h44.html DSPAM dspam.conf = http://rafb.net/p/7O8lEf46.html I use Postfix with virtual users domains dspam.debug shows this entries when i send a mail to the server = http://rafb.net/p/sbEqK070.html sorry, guys. but how do i get dspam working 100% , and how do i get this retraining working ? where i can move mails out spam into incoming and other way spam from incoming to spamfolder to retrain dspam. yes, maybe alot stuff, but any feel free to help or to explain ? thanks ahead from hamburg marko Marko Weber schrieb: Hello , yes it seems to work. But it tags all mails as innocent. everyone. even mails that are marked by sapmassassin , dspam marks them as innocent. my goal is to work with dspam that it scans incoming mails and that this training via moving mails works. if i understand the dovecot-antispam right, = dspam scans mails on incoming, marks them. then via maildrop i can put them all into folder SPAM at example. when dspam tagged a mail as spam that is not spam., then i can move the mail from the SPAM folder into normal incoming folder. dspam then retrain the mail. also other way. if a mail comes into the normal incoming and is spam, i can then move the mail into SPAM and dspam get retrained. sorry guys, i am not all a pro, but now, i sit since 7 days on it to get it work., i am very willing get this work. so any1 can help me maybe to get this working ? i can paste all needed info u need to help me. at moment i stuck. dspam runs and marks mails, but i am sure i did some things wrong. totally wrackey marko from hamburg :-) thx Thorsten Vollmer schrieb: On Wed, 2008-11-05 at 18:39 +0100, Thorsten Vollmer wrote: On Mon, 2008-11-03 at 15:39 +0100, Marko Weber wrote: Hello,. i installed dovecot with virtual user and domains. but i dont get thru dovecot-antispam config. is there any HOWTO, for gentoo , how to setup and configure dovecot-antispam ? with examples for the config files ? I assume that you have read antispam(7). dovecot-antispam(7) on Gentoo What other information do you need? maybe i have dspam self totally wrong configured. Did you verify that DSPAM works independently, i.e. without dovecot-antispam? Regards, Thorsten
Re: [Dovecot] Install Configuring and run.
On Wed, 2008-11-05 at 22:31 +0100, Marko Weber wrote: yes it seems to work. But it tags all mails as innocent. everyone. even mails that are marked by sapmassassin , dspam marks them as innocent. You should really solve your problem with DSPAM before using dovecot-antispam. DSPAM's mailing list is the more appropriate place for these issues, but I will give some hints: 1. Do the initial testing according to DSPAM's README. 2. Perform extensive training using dspam_train. Subsequently, the hit rate should be very high. 3. Correct further misclassifications with dspam --source=error --class=innocent|spam --signature=... [--user ...], and verify the result using dspam_stats. Unless you successfully complete these steps, the problem is not with dovecot-antispam. Regards, Thorsten signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Strange and sudden deletion of mails messages
On 11/6/2008, a`O~e` O'?O~O' ([EMAIL PROTECTED]) wrote: Webmail using RoundCube 0.1-STABLE I'd upgrade this first and foremost... Current version is 0.2-beta (many, many bug fixes since 0.1-stable) -- Best regards, Charles
Re: [Dovecot] Install Configuring and run.
On Thu, 2008-11-06 at 17:03 +0100, Marko Weber wrote: Ok i summarized some things, maybe any1 can give a comment to it = when i restart dovecot i get this = /etc/init.d/dovecot restart Warning: Growing pool 'settings' with: 8192 * Stopping dovecot ... [ ok ] Warning: Growing pool 'settings' with: 8192 * Starting dovecot ... Warning: Growing pool 'settings' with: 8192 ILoading modules from directory: /usr/lib64/dovecot/imap WGrowing pool 'module loader' with: 2048 IModule loaded: /usr/lib64/dovecot/imap/lib90_antispam_plugin.so IEffective uid=65534, gid=65534, home= WGrowing pool 'antispam-pool' with: 2048 [ ok ] email-headers of SPAM tagged mails (spamassassin + pyzor + razor detect them as spam cause they are spam) dspam tags the mails like this = X-DSPAM RESULT Innocent X-DSPAM Confidence 0.8505 X-DSPAM Probability 0. so, Spamassassin detect them as spam and dspam not ? (to an old mail in list question , yes i trained ca 10.000 spam mails against some not spam). Did you verify that the training was successful? dspam_dump, dspam_stats because this mail would grown in endless long text i pasted the configs on web = POSTFIX main.cf = http://rafb.net/p/PQy5FN10.html POSTFIX master.cf = http://rafb.net/p/2l02A087.html DOVECOT dovecot.conf = http://rafb.net/p/PjvV1h44.html DSPAM dspam.conf = http://rafb.net/p/7O8lEf46.html I use Postfix with virtual users domains dspam.debug shows this entries when i send a mail to the server = http://rafb.net/p/sbEqK070.html sorry, guys. but how do i get dspam working 100% , and how do i get this retraining working ? where i can move mails out spam into incoming and other way spam from incoming to spamfolder to retrain dspam. yes, maybe alot stuff, but any feel free to help or to explain ? thanks ahead from hamburg marko signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Install Configuring and run.
clamav TP: 1369 TN: 9765 FP: 3 FN:25 SC:10 NC: 1 dspam TP: 11092 TN: 2824 FP: 2 FN:28 SC: 9 NC: 1 root TP: 11069 TN: 2810 FP: 3 FN:40 SC:11 NC: 1 i get this on dspam_stats Thorsten marko Thorsten Vollmer schrieb: On Thu, 2008-11-06 at 17:03 +0100, Marko Weber wrote: Ok i summarized some things, maybe any1 can give a comment to it = when i restart dovecot i get this = /etc/init.d/dovecot restart Warning: Growing pool 'settings' with: 8192 * Stopping dovecot ... [ ok ] Warning: Growing pool 'settings' with: 8192 * Starting dovecot ... Warning: Growing pool 'settings' with: 8192 ILoading modules from directory: /usr/lib64/dovecot/imap WGrowing pool 'module loader' with: 2048 IModule loaded: /usr/lib64/dovecot/imap/lib90_antispam_plugin.so IEffective uid=65534, gid=65534, home= WGrowing pool 'antispam-pool' with: 2048 [ ok ] email-headers of SPAM tagged mails (spamassassin + pyzor + razor detect them as spam cause they are spam) dspam tags the mails like this = X-DSPAM RESULT Innocent X-DSPAM Confidence 0.8505 X-DSPAM Probability 0. so, Spamassassin detect them as spam and dspam not ? (to an old mail in list question , yes i trained ca 10.000 spam mails against some not spam). Did you verify that the training was successful? dspam_dump, dspam_stats because this mail would grown in endless long text i pasted the configs on web = POSTFIX main.cf = http://rafb.net/p/PQy5FN10.html POSTFIX master.cf = http://rafb.net/p/2l02A087.html DOVECOT dovecot.conf = http://rafb.net/p/PjvV1h44.html DSPAM dspam.conf = http://rafb.net/p/7O8lEf46.html I use Postfix with virtual users domains dspam.debug shows this entries when i send a mail to the server = http://rafb.net/p/sbEqK070.html sorry, guys. but how do i get dspam working 100% , and how do i get this retraining working ? where i can move mails out spam into incoming and other way spam from incoming to spamfolder to retrain dspam. yes, maybe alot stuff, but any feel free to help or to explain ? thanks ahead from hamburg marko
Re: [Dovecot] Strange and sudden deletion of mails messages
OK... I upgraded to 0.2-stable just now. I hope this fixes the sudden deletes. TIA! Noor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Marcus Sent: Thursday, November 06, 2008 6:21 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] Strange and sudden deletion of mails messages On 11/6/2008, a`O~e` O'?O~O' ([EMAIL PROTECTED]) wrote: Webmail using RoundCube 0.1-STABLE I'd upgrade this first and foremost... Current version is 0.2-beta (many, many bug fixes since 0.1-stable) -- Best regards, Charles
Re: [Dovecot] [Postfixadmin-devel] Quota not working ?
Hello Michiel, i sent 2 further mails with 4mb attachement no quota warning, mails was delivered to user. is the multiplier in the postfixadmin the wrong one ? or is there a setting that MUST be in main.cf of postfix ? marko Michiel van Baak schrieb: On 17:20, Thu 06 Nov 08, Marko Weber wrote: Hi Michiel, i tried your hints. but seems not to go with quota. i send an 11mb mp3 to user and after that an 6mb mp3 the quota is set in postfixadmin to 15mb, so it should send a mail that quota is reached or not ? I think it will send the email on the next mail. 11 mb != quota reached. 6mb = one email so I think it will go through. Can you test by sending yet another email now that the user is over quota? do i have to set any special on postfixadmin config ? maybe its the quota multiplier ? in the postfixadmin config for quota is this = // Default Domain Values // Specify your default values below. Quota in MB. $CONF['aliases'] = '15'; $CONF['mailboxes'] = '15'; $CONF['maxquota'] = '15'; // Quota // When you want to enforce quota for your mailbox users set this to 'YES'. $CONF['quota'] = 'YES'; // You can either use '1024000' or '1048576' $CONF['quota_multiplier'] = '1024000'; 1024 is also in the mysql db as quota in the quota field for the mail where i send the mp3?s any ideas ? marko Michiel van Baak schrieb: On 00:58, Wed 05 Nov 08, Marko Weber wrote: I set this in the postfixadmin config.file = // Default Domain Values // Specify your default values below. Quota in MB. $CONF['aliases'] = '15'; $CONF['mailboxes'] = '15'; $CONF['maxquota'] = '15'; // Quota // When you want to enforce quota for your mailbox users set this to 'YES'. $CONF['quota'] = 'YES'; // You can either use '1024000' or '1048576' $CONF['quota_multiplier'] = '15728640'; i gave on postfix admin backend the domain = domain settings - aliase = -1 mailbox = 12 max quota 15 i created a mailbox for this domain and set for this mailbox 15mb quota i send an 11mb mp3 to this box and get this = This is the mail system at host .de. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system [EMAIL PROTECTED]: message size 15075956 exceeds size limit 1024 of server xxx.de[xxx.xxx.243.37] Any ideas why i get size limit 1024 In the main postfix configuration you can set the maximum message size. As you can see, the default is 10MB per message. To remove all size limits and let the quota actually apply try setting this in your main.cf and reload postfix: mailbox_size_limit = 0 message_size_limit = 0 virtual_mailbox_limit = 0 Good luck. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Postfixadmin-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel
[Dovecot] index storage usage
Hello there, I failed in finding the answer in the wiki so i'm asking it here. In average, how much the dovecot's indexes increase the usage of storage, compared to a standard maildir mailbox? I believe it would be a function of the number of messages instead of the message's size. Is there a known aproximated function for that? Thank you. gpg
[Dovecot] [dovecot] INDEX variable and mbox_snarf plugin
Is there a way to tell the dovecot mbox_snarf plugin to use an alternate location for the index/cache files? It doesn't seem to want to use the INDEX variable. I'm guessing the answer is no because of all the ties in lib-storage/index/mbox/*c to the directory where the file(that is the inbox) lives. The filesystem where I keep the inbox file doesn't have a directory for the user to own. The user only owns the mbox file. Thanks, Jonathan smime.p7s Description: S/MIME Cryptographic Signature
[Dovecot] Compiling dovecot 1.1.6 with ICC
Hello list I have compiled PostgreSQL with ICC (Intel C/C++ compiler) and this forces me to compile dovecot 1.1.6 as well with ICC. Trying to compile it with GCC fails, telling me it can not build with PostgreSQL support since it can not find libpq (but libpq is there!). The funny part is that I can compile dovecot 1.1.6 with GCC 4.3.2 against MySQL which is build with ICC. But I can not build against PostgreSQL build with ICC. Why is that? Does any one know the reason why PostgreSQL is treated differently then MySQL in dovecot? Well... so no way to get around to build dovecote with ICC. I can build dovecot with ICC but as soon as I start it, I get a crash. Loading the core dump into GDB does not give me much info. Probably because I have not compiled dovecot with debug symbols. Currently I am doing that. Hopefully this will produce better core dumps. I will post more info as soon as I get them. But in the mean time maybe some one has a hint for me how to get dovecot 1.1.6 to build properly with ICC? // Steve -- GMX Download-Spiele: Preizsturz! Alle Puzzle-Spiele Deluxe über 60% billiger. http://games.entertainment.gmx.net/de/entertainment/games/download/puzzle/index.html
Re: [Dovecot] Install Configuring and run.
On Thu, 2008-11-06 at 17:03 +0100, Marko Weber wrote: Ok i summarized some things, maybe any1 can give a comment to it = when i restart dovecot i get this = /etc/init.d/dovecot restart Warning: Growing pool 'settings' with: 8192 * Stopping dovecot ... [ ok ] Warning: Growing pool 'settings' with: 8192 * Starting dovecot ... Warning: Growing pool 'settings' with: 8192 ILoading modules from directory: /usr/lib64/dovecot/imap WGrowing pool 'module loader' with: 2048 IModule loaded: /usr/lib64/dovecot/imap/lib90_antispam_plugin.so IEffective uid=65534, gid=65534, home= WGrowing pool 'antispam-pool' with: 2048 [ ok ] email-headers of SPAM tagged mails (spamassassin + pyzor + razor detect them as spam cause they are spam) dspam tags the mails like this = X-DSPAM RESULT Innocent X-DSPAM Confidence 0.8505 X-DSPAM Probability 0. so, Spamassassin detect them as spam and dspam not ? (to an old mail in list question , yes i trained ca 10.000 spam mails against some not spam). because this mail would grown in endless long text i pasted the configs on web = POSTFIX main.cf = http://rafb.net/p/PQy5FN10.html POSTFIX master.cf = http://rafb.net/p/2l02A087.html DOVECOT dovecot.conf = http://rafb.net/p/PjvV1h44.html DSPAM dspam.conf = http://rafb.net/p/7O8lEf46.html I looked only briefly at the files: You need to set signatureLocation=headers, but this is unrelated to your current problem. I use Postfix with virtual users domains dspam.debug shows this entries when i send a mail to the server = http://rafb.net/p/sbEqK070.html Sending an actual spam message would have been more useful. sorry, guys. but how do i get dspam working 100% , and how do i get this retraining working ? where i can move mails out spam into incoming and other way spam from incoming to spamfolder to retrain dspam. yes, maybe alot stuff, but any feel free to help or to explain ? thanks ahead from hamburg marko signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Install Configuring and run.
On Thu, 2008-11-06 at 17:57 +0100, Marko Weber wrote: clamav TP: 1369 TN: 9765 FP: 3 FN:25 SC:10 NC: 1 dspam TP: 11092 TN: 2824 FP: 2 FN:28 SC: 9 NC: 1 root TP: 11069 TN: 2810 FP: 3 FN:40 SC:11 NC: 1 i get this on dspam_stats Thorsten I asked for dspam_dump as well. Are there tokens with spam hits? But as I said before, your problem is with DSPAM, and you should ask for help on DSPAM's mailing list. Regards, Thorsten signature.asc Description: This is a digitally signed message part
[Dovecot] Cannot get the libwrap patch work
Hello there, I have been trying to make the patch work for libwrap(TCP Wrappers) posted on http://dovecot.org/patches http://dovecot.org/patches%20Patch%20of%201.1 Patch of 1.1 but could not get it work. Any help will be highly appreciated. After compiling and running it I get error Error: login_tcp_wrappers can't be used because Dovecot wasn't built with libwrap Dovecot Version dovecot-1.1.5 OS CENTOS 5.1 Thankyou Tahir Riaz Assistant Director (Systems) COMSATS Internet Services COMSATS Headquarters Building 9, Shahrah-e-Jamhuriat, G-5/2 Islamabad.