[Dovecot] 2.0: deliver run from multiple uids and configuration files
I'm trying to run deliver from exim transport in a way that it doesn't need to query userdb AND doesn't need to read configuration files. The problem is that config files are readable for root only and if I run deliver with multiple UIDs then I would have to allow reading config files for everyone. Of course that's not a option because configs contain database passwords and such stuff. I wonder if it is possible to avoid reading config files by deliver? The only solution I see it to run deliver via sudo which doesn't look nice. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] permission recomendation for dovecot configuration files and binaries
I'm trying to figure out which permissions will be the best to handle most of tasks (for use in rpm package) for configuration files. Basically /etc/dovecot/ dir /etc/dovecot/* files /etc/dovecot/conf.d/ dir /etc/dovecot/conf.d/files dovecot binaries, deliver mainly For example deliver needs to read configuration files and needs to write into destination. Doesn't seem to be sane to allow MTA user read dovecot configs but that is requires for deliver to work etc. Are there any sane/tested recommendations that would fit most situations (remember, that's going to be rpm package default config) ? -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] v2.0.2 released
On Wednesday 08 of September 2010, Timo Sirainen wrote: http://dovecot.org/releases/2.0/dovecot-2.0.2.tar.gz http://dovecot.org/releases/2.0/dovecot-2.0.2.tar.gz.sig Hm, why libraries (not plugins) are installed in /usr/lib{,64}/doveoct instead of proper place - /usr/lib{,64} (aka @libdir@) ? -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] 1.2.10 and questions
Hi, 1) Why dovecot -n doesn't display default values? At least it didn't display mail_max_userip_connections(default): 20 mail_max_userip_connections(imap): 20 mail_max_userip_connections(pop3): 10 if I had set ONLY mail_max_userip_connections (to be =10) 2) Maximum number of connections from user+IP exceeded (mail_max_userip_connections): Could it be enhanced to actually log what the limit was at that time? -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] Binary locations
On Tuesday 06 of October 2009, Pascal Volk wrote: On 10/06/2009 05:32 PM Timo Sirainen wrote: Where do you think the following binaries should be installed to? The possible locations are: - bin/ - sbin/ - libexec/dovecot/ (or lib/dovecot/ in most Linux distros) So the binaries are: 1) These probably belong to bin/ or sbin/ or both: - authtest - dovecotpw - doveadm 2) Binaries that you might want to call from mail_executable setting: - rawlog - gdbhelper 3) Index file dumping programs, mostly meant for debugging problems: - idxview - listview - logview - mailboxlogview - threadview 4) Some extra tools that might be useful sometimes: - imap-utf7 : Encode/decode IMAP mailbox names (mUTF-7 - UTF-8) - maildirlock : Lock a Maildir, primarily intended for compressing files in maildir And perhaps some of the binaries should be renamed? The authtest actually now looks like a bad name. Maybe it should have been doveauthtest or dovecot-authtest or ..? under $PREFIX/bin: authtest (or doveauthtest) dovecotpw imap-utf7 maildirlock Nooo, these are too generic names to be in bin (also not $PREFIX/bin but @bindir@ as in autoconf convention). Everything that's not meant to be run by hand should be in @libdir@/dovecot (or @libexecdir@/dovecot). Proposition of doveadm subcommand was much nicer than splitting into tons of bin/sbin utils. doveadm subcommand can actually simply call @libdir@/dovecot/subcommand if someone want's separate binaries instead of single one. Regards, Pascal -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] E-Mail Encryption
On Wednesday 15 of July 2009, Patrick Domack wrote: The only benefit this would being, is email being saved on the server would be encrypted. Otherwise it offers no protection. I guess if you paranoid that the system admin might read your emails, but then, he can just as easily read them as they come in or out of the system. Actually such encryption is interesting as a protection in case when someone steals server hardware/disks. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] crypt() failure is possible
dovecot 1.1.15 in src/auth/password-scheme.c contains: static bool crypt_verify(const char *plaintext, const char *user ATTR_UNUSED, const unsigned char *raw_password, size_t size) { const char *password; if (size == 0) { /* the default mycrypt() handler would return match */ return FALSE; } password = t_strndup(raw_password, size); return strcmp(mycrypt(plaintext, password), password) == 0; } but according to man page crypt() can fail and NULL is returned then. On other hand glibc info page is silent about such failure. The thing is that I'm seeing crypt() failure here with new glibc 2.10.1 built with nss backend for crypt(), so it would be good to handle such case. (crypt failure was due to improper nss packaging but it could also happen if somehow nss file becomes corrupted) -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] multiple sql servers - loadbalancing and failover
Hi, Is there a way for dovecot to use a pool of sql (mysql) servers and load balance queries between these? Also fallback to next available sql server if connection to previous one fails. Can dovecot do such things currently? (If not this is feature request). -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] multiple sql servers - loadbalancing and failover
On Friday 27 of March 2009, Xueron Nee wrote: You can try mysql-proxy: http://dev.mysql.com/downloads/mysql-proxy/index.html This introduces single point of failure. Support for switching to next mysql server in list if previous fails would be enough. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] multiple sql servers - loadbalancing and failover
On Friday 27 of March 2009, Seth Mattinen wrote: Arkadiusz Miskiewicz wrote: On Friday 27 of March 2009, Xueron Nee wrote: You can try mysql-proxy: http://dev.mysql.com/downloads/mysql-proxy/index.html This introduces single point of failure. http://forge.mysql.com/wiki/MySQL_Proxy#Load_Balancing_.26_Failover If I get this right if mysql proxy fails I still get nothing. Hm, I would have to run mysql proxy on every machine that has dovecot installed. Then it would make some sense. Ok, that should work. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] multiple sql servers - loadbalancing and failover
On Friday 27 of March 2009, Seth Mattinen wrote: Arkadiusz Miskiewicz wrote: On Friday 27 of March 2009, Xueron Nee wrote: You can try mysql-proxy: http://dev.mysql.com/downloads/mysql-proxy/index.html This introduces single point of failure. Plus use of heartbeat, HA, etc. This makes thing much more complicated than it can be especially in setup like mine where servers are not only doing mysql serving but another thasks and the failure can be so simple like service mysql stop. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] multiple sql servers - loadbalancing and failover
On Friday 27 of March 2009, Timo Sirainen wrote: On Mar 27, 2009, at 3:20 AM, Arkadiusz Miskiewicz wrote: Is there a way for dovecot to use a pool of sql (mysql) servers and load balance queries between these? Also fallback to next available sql server if connection to previous one fails. Can dovecot do such things currently? (If not this is feature request). Yes, it can! Just add more multiple host= parameters to connect string. It's actually even documented in the dovecot-sql-example.conf: # MySQL supports multiple host parameters for load balancing / HA. Cool! Can load balancing be disabled and HA left, too? :-) I guess it's not mentioned in the wiki though. It's not. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] imap flags - \* - dovecot 1.1.{8,9}
On Monday 26 of January 2009, Arkadiusz Miskiewicz wrote: Isn't \* supposed to be (almost always) in flags after SELECT command in dovecot imap? According to source code it should be there if mailbox is writtable and mine is (20 OK [READ-WRITE] Select completed.). Something broken there? # dovecot -n # 1.1.10: /etc/dovecot/dovecot.conf Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 2304). Either grow the limit or change login_max_processes_count and max_mail_processes settings # OS: Linux 2.6.25.12-1 x86_64 xfs protocols: imap imaps pop3 pop3s listen(default): *:143 listen(imap): *:143 listen(pop3): *:10110 ssl_listen(default): *:993 ssl_listen(imap): *:993 ssl_listen(pop3): *:10995 ssl_cert_file: /etc/openssl/certs/cert.pem ssl_key_file: /etc/openssl/certs/key.pem disable_plaintext_auth: no shutdown_clients: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib64/dovecot/imap-login login_executable(imap): /usr/lib64/dovecot/imap-login login_executable(pop3): /usr/lib64/dovecot/pop3-login login_greeting: Mail server ready. max_mail_processes: 2048 verbose_proctitle: yes first_valid_uid: 1500 first_valid_gid: 1500 mail_location: maildir:/var/mail/%Lu:CONTROL=/var/lib/dovecot/control/%Lu fsync_disable: yes mail_executable(default): /usr/lib64/dovecot/imap mail_executable(imap): /usr/lib64/dovecot/imap mail_executable(pop3): /usr/lib64/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): zlib mail_plugin_dir(default): /usr/lib64/dovecot/plugins/imap mail_plugin_dir(imap): /usr/lib64/dovecot/plugins/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/plugins/pop3 imap_client_workarounds(default): outlook-idle imap_client_workarounds(imap): outlook-idle imap_client_workarounds(pop3): pop3_lock_session(default): no pop3_lock_session(imap): no pop3_lock_session(pop3): yes pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %Mf pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: . prefix: INBOX. inbox: yes list: yes subscriptions: yes auth default: mechanisms: plain login digest-md5 cram-md5 ntlm rpa apop user: nobody username_chars: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz01234567890...@= username_translation: @= passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 432 user: mail group: mail plugin: quota: fs:User quota:user quota2: fs:Group quota:group -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] imap flags - \* - dovecot 1.1.{8,9}
Isn't \* supposed to be (almost always) in flags after SELECT command in dovecot imap? Isn't \* meaning is you can store any new flag ? 20 select INBOX * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] Flags permitted. so no \* ... [..] 50 store 1 +flags $MDNSent * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent)] Flags permitted. * 1 FETCH (FLAGS ($MDNSent)) 50 OK Store completed. 60 logout * BYE Logging out 60 OK Logout completed. [ new session ...] 20 select INBOX * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent)] Flags permitted. * 4 EXISTS * 2 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 118154] UIDs valid * OK [UIDNEXT 864597] Predicted next UID 20 OK [READ-WRITE] Select completed. ... but it saved $MDNSent flag, huh -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] 1.1.7: quota problem, unable to delete mails when quota exceeded
On Monday 15 of December 2008, Timo Sirainen wrote: On Mon, 2008-12-15 at 08:44 +0100, Arkadiusz Miskiewicz wrote: Hi, When user exceeds it's quota then dovecot can't create it's files and it's showing zero mails :( This also means that user is unable to delete it's own mails. Sounds like kind-of bug, right? Dec 15 08:28:37 mbox1 dovecot: IMAP(xxx): open(/var/mail/xxx/dovecot-uidlist.lock) failed: Disk quota exceeded Dec 15 08:28:37 mbox1 dovecot: IMAP(kdudus): file_dotlock_create(/var/mail/xxx/dovecot-uidlist) failed: Disk quota exceeded I don't think the mbox file should be modified if it's not locked. I suppose it's not very ideal either if user can't delete mails then, but at least the mailbox doesn't get corrupted. I use maildirs only. Anyway, you most likely don't really need to use dotlocks at all. Just make sure that your MDA uses fcntl locks and set mbox_write_locks=fcntl. Will look. Right now I'm trying to move CONTROL to other fs where quota doesn't apply to see what will happen. Also I think Dovecot v1.1 should be able to open the mailbox read-only even if it can't create the dotlock? Are you using v1.0? 1.1.7 as in subject but read-only won't help in deleting mails that cause quota being exceeded 8) -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] 1.1.7: quota problem, unable to delete mails when quota exceeded
On Monday 15 of December 2008, Timo Sirainen wrote: On Mon, 2008-12-15 at 09:04 +0100, Arkadiusz Miskiewicz wrote: On Monday 15 of December 2008, Timo Sirainen wrote: On Mon, 2008-12-15 at 08:44 +0100, Arkadiusz Miskiewicz wrote: Will look. Right now I'm trying to move CONTROL to other fs where quota doesn't apply to see what will happen. Yes, changing the CONTROL to non-quota partition is the only way to solve this for now. I suppose it should be possible to have the existing mails visible though, but mails not listed in dovecot-uidlist can't really be made visible. Done that and now I see a lot of Expunged message reappeared, giving a new UID (old uid=10753, file=...) ugh :-/ I guess now imap clients will see these as new messages? -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] 1.1.7: quota problem, unable to delete mails when quota exceeded
On Monday 15 of December 2008, Timo Sirainen wrote: On Mon, 2008-12-15 at 09:04 +0100, Arkadiusz Miskiewicz wrote: On Monday 15 of December 2008, Timo Sirainen wrote: On Mon, 2008-12-15 at 08:44 +0100, Arkadiusz Miskiewicz wrote: Hi, When user exceeds it's quota then dovecot can't create it's files and it's showing zero mails :( This also means that user is unable to delete it's own mails. Sounds like kind-of bug, right? Dec 15 08:28:37 mbox1 dovecot: IMAP(xxx): open(/var/mail/xxx/dovecot-uidlist.lock) failed: Disk quota exceeded Dec 15 08:28:37 mbox1 dovecot: IMAP(kdudus): file_dotlock_create(/var/mail/xxx/dovecot-uidlist) failed: Disk quota exceeded I don't think the mbox file should be modified if it's not locked. I suppose it's not very ideal either if user can't delete mails then, but at least the mailbox doesn't get corrupted. I use maildirs only. Oh, I didn't read the error message closely enough. Anyway, you most likely don't really need to use dotlocks at all. Just make sure that your MDA uses fcntl locks and set mbox_write_locks=fcntl. Will look. Right now I'm trying to move CONTROL to other fs where quota doesn't apply to see what will happen. Done that and now I see a lot of Expunged message reappeared, giving a new UID (old uid=10753, file=...) ugh :-/ I guess now imap clients will see these as new messages? Also : IMAP(bo): /var/lib/dovecot/control/xxx/.INBOX/dovecot-uidlist: Duplicate file entry at line... Weird, these are fresly created control files and now they contain duplicates. Last question, what permissions are needed for /var/lib/dovecot/control/ if it's used as CONTROL= and users use different uid/gids? Right now I have a+rwx which doesn't look nice and root:root 660 also didn't make dovecot happy. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] 1.1.7: quota problem, unable to delete mails when quota exceeded
Hi, When user exceeds it's quota then dovecot can't create it's files and it's showing zero mails :( This also means that user is unable to delete it's own mails. Sounds like kind-of bug, right? Dec 15 08:28:37 mbox1 dovecot: IMAP(xxx): open(/var/mail/xxx/dovecot-uidlist.lock) failed: Disk quota exceeded Dec 15 08:28:37 mbox1 dovecot: IMAP(kdudus): file_dotlock_create(/var/mail/xxx/dovecot-uidlist) failed: Disk quota exceeded This sometimes ends with: Dec 15 08:36:43 mbox1 dovecot: IMAP(xxx): Disconnected: Internal error occurred. Refer to server log for more information. [2008-12-15 08:36:43] bytes=409/896 -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] W= fixup feature
Hi, When there are maildir mail files without W= tag in name then dovecot opens them, read data inside to calculate W= size, cache that information etc. Would be it sensible to have option where dovecot would fix names of such files? Like if no W= then after calculating size rename file to actually contain W= ? -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] 1.1.5 abort with mal-formed address in header
On Friday 24 of October 2008, Timo Sirainen wrote: On Oct 24, 2008, at 1:49 AM, Richard Platel wrote: To:([EMAIL PROTECTED] (Starting with a comment, with no closing ')' ) causes dovecot 1.1.5 to panic and abort. This is similar to the problem fixed by: http://hg.dovecot.org/dovecot-1.1/rev/04fdaa2f831e This patch seems to resolve the problem: Thanks, committed. I guess it's time for 1.1.6 release.. I'll leave it for tomorrow. Ping? :-) -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] Backing Up
On Wednesday 29 of October 2008, Dave McGuire wrote: On Oct 29, 2008, at 3:42 PM, Scott Silva wrote: What is the best way to do a (server-side) backup of all mail in a user's mail? I usually just rsync the /home directories to another server. The inital sync can take a while, but it gets faster after there is a base to work from. ...and it's much less painful if you're using maildir instead of mbox! Not for rsyncing. Tons of small files means much slower rsync. -Dave -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] Problems with the pop3 part of dovecot
On Sunday 26 of October 2008, Heiko Schlichting wrote: Brandon, I did modify exim to add the W=size but it also required use_crlf and that seemed to break something else. You can configure Exim to write ,W=vsize even without use_crlf. Configuring {,S=$message_size,W=${eval:$message_size + $message_linecount + 3}} within maildir_tag setting of exim works especially well for me. Hm, does it count correctly? I have mails delivered via exim with this rule: new/1225046769.H367740P9241.mbox2.agnat.pl,S=1377,W=1413 cat new/1225046769.H367740P9241.mbox2.agnat.pl,S=1377,W=1413 | wc -l 37 so 1377 + 37 + 3 = 1417 which doesn't match 1413. Looking with khexview shows that lines are terminated by LF. Heiko -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] Problems with the pop3 part of dovecot
On Sunday 26 of October 2008, Timo Sirainen wrote: On Sun, 2008-10-26 at 20:56 +0200, Arkadiusz Miskiewicz wrote: On Sunday 26 of October 2008, Heiko Schlichting wrote: Brandon, I did modify exim to add the W=size but it also required use_crlf and that seemed to break something else. You can configure Exim to write ,W=vsize even without use_crlf. Configuring {,S=$message_size,W=${eval:$message_size + $message_linecount + 3}} within maildir_tag setting of exim works especially well for me. Hm, does it count correctly? I'm also wondering that. I have mails delivered via exim with this rule: new/1225046769.H367740P9241.mbox2,S=1377,W=1413 cat new/1225046769.H367740P9241.mbox2,S=1377,W=1413 | wc -l 37 so 1377 + 37 + 3 = 1417 which doesn't match 1413. But this doesn't seem correct either. File size + linecount should be the same as W. Is the file size really 1377 bytes? It is: -rw-rw 1 mail mail 1377 2008-10-26 19:46 new/1225046769.H367740P9241.mbox2,S=1377,W=1413 Also adding 3 is weird. Exim documentation says The blank line that separates the message header from the body is not counted. so it's only 1 line, not 3. For example a file that Dovecot has created: % wc -cl 1224418671.M66880P13668.hurina,W=2087 56 2031 1224418671.M66880P13668.hurina,W=2087 % echo 2031+56|bc 2087 -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] Problems with the pop3 part of dovecot
On Sunday 26 of October 2008, Arkadiusz Miskiewicz wrote: Also adding 3 is weird. Exim documentation says The blank line that separates the message header from the body is not counted. so it's only 1 line, not 3. Ok, it also says that $message_linecount can be incremented when exim adds some headers. That's probably what +3 was trying to do (1+ some 2 headers?). Unfortunately it looks that W=${eval:$message_size + $message_linecount + 3} is broken rule for exim :/ -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] imap processes eating IO
On Sunday 27 July 2008, Timo Sirainen wrote: On Sun, 2008-07-27 at 12:09 -0500, Ryan Rawdon wrote: lstat64(/home/vmail/u13.net/ryan/Maildir/cur/1203440140.P6242Q0M41485.sc arecrow:2,RSc, {st_mode=S_IFREG|0600, st_size=3079, ...}) = 0 lstat64(/home/vmail/u13.net/ryan/Maildir/cur/1203446630.P7458Q0M562949.s carecrow:2,Sc, {st_mode=S_IFREG|0600, st_size=27769, ...}) = 0 You're most likely using dirsize quota backend. http://wiki.dovecot.org/Quota/Dirsize That's why I would like to see S= everywhere. Reading dir once tells you everything and no need to stat() thousands times. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] stopping dovecot
This may be a silly question but how to correctly stop dovecot and be sure that it's possible to start it again? kill -TERM `cat /var/run/dovecot/master.pid` doesn't work well. I have imap-login processes staying arround and occupying port which leads to Fatal: listen(0.0.0.0, 993) failed: Address already in use when trying to start again 2s after stopping. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] v1.1.2 release candidate
On Monday 21 July 2008, Timo Sirainen wrote: On Mon, 2008-07-21 at 15:51 +0200, Arkadiusz Miskiewicz wrote: On Monday 21 July 2008, Timo Sirainen wrote: + Maildir: Add ,S=size to maildir filename whenever quota plugin is loaded, even when not using Maildir++ quota. Could S= be always added even when no quota plugin is loaded? Why do you want it if you don't use quota? Non dovecot tools use S= as size indicator. exim for example, tpop3d and others. Not everyone uses all dovecot components (I for example use imap only - works great btw.). Is there any point in not adding S= anyway? Wastes a bit of space.. I guess that depends on filesystem being used. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] v1.1 status and benchmarks
On Thursday 12 of July 2007, Timo Sirainen wrote: On 12.7.2007, at 10.22, Arkadiusz Miskiewicz wrote: Although I'm guessing your much more I/O means that Dovecot reads the message contents to calculate the messages' correct virtual size, while tpop3d violates POP3 spec by returning physical message sizes. Also Dovecot 1.0's deliver doesn't help with this, because it doesn't write the virtual size to cache file. Is this improved in 1.1 so virtual size is stored there? v1.1 stores the virtual size to the maildir filename (,W=1234) and for existing files it adds them to dovecot-uidlist. Great. If only POP3 is used, the cache file isn't created at all. If IMAP is used then virtual size is stored also to the cache file. Hm, http://wiki.dovecot.org/POP3Server doesn't mention anything about cache not being created. It even says that dovecot.index.cache is actually used and updated. Is it used (including updates) when and only when if it's created earlier by imap? -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] delivery and quota question
Hi, I'm considering using delivery for delivering emails. The question is about quota. Does delivery check quota for single maildir or for entire collection of user folders? Example: /var/mail/user/{new,cur,tmp} /var/mail/user/.Some_Folder/{new,cur,tmp} /var/mail/user/.Some_Other_Folder/{new,cur,tmp} Can I somehow get deliver checking size for all these folders? I need quota per user not per folder. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
[Dovecot] permissions on some dovecot directories
Hello, What smallest permissions are needed on directories: /var/run/dovecot /var/run/dovecot/login /var/lib/dovecot dovecot run as dovecot:dovecot. Currently I have 775 dovecot:dovecot /var/run/dovecot 750 root:dovecot /var/run/dovecot/login 755 root:root /var/lib/dovecot -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] ignoring some subfolders [potential wishlist]
On Wednesday 28 of March 2007, Timo Sirainen wrote: On 28.3.2007, at 11.49, Arkadiusz Miskiewicz wrote: tpop3d allows me to say: maildir-ignore-folders: Spam Trash trash Sent sent-mail POP3-Invisible (would be stupid to fetch own sent-mail via pop3 again 8-) POP3 has only one mailbox, so what does it do to non-ignored folders? Does it merge all of them into one virtual POP3 INBOX? tpop3d has a option maildir-recursion: yes that makes it merge all subfolders in one virtual inbox. Very nice and usefull thing. With additional maildir-ignore-folders: Spam Trash trash Sent sent-mail POP3-Invisible and proper MTA settings spams goes to POP3-Spam subfolder but user can change things and MTA will start deliver to Spam folder (which is invisible via pop3) so user simply chooses whether he wants or not to see spam emails etc. User can still use imap based webmail or connect to imap and see other, pop3-ignored folders. With Dovecot the POP3 shows only the one real INBOX's contents. Some day in future there will be support for virtual folders, and if you need POP3 to show more than just the real INBOX then you can create a virtual INBOX. Uh, recursive subfolders is basic functionality that I unfortunately need :-\ I'll look into sources to see how much work is needed then. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/