Re: [Dovecot] Dovecot Sieve some rules not working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 10 Dec 2009, tobi wrote: I have no clue why only part of the rules work and where I could check what the problem coud be. First, I'd check that you do not use the -n option of Dovecot deliver (http://wiki.dovecot.org/LDA) - you use it, BTW? Otherwise, I guess, you must post examples, which mails are not filed into the correct folders. Regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSyIL0HWSIuGy1ktrAQIxuwf/cNKfBPB6gL+2Ffu8vGk9u+H4kUMEnNWQ eHRe88dnlEbIknUdGzFhsxH8F0kirBXwckFzC/ZT8jBgGCTpqUkf++R2Z0DSYhw9 jyMwP7CJf2nRqAnmlmGtbkfrtjMHU1Nb8epxKSvYULKCC+n3Lclw8a16IVkZZuUF S+fq37cfGoUw8FOj3FNV+c4atMjITRjsoiw23yYiky9FxQNu9tgtUyI1b+zGaeYL QhuKNDf2BwMVgbFCgtyqr2gi6Wu/hDuqR9RNbiB7FJNl02NXkxKRE9N1cdy3EHEd 2eSyf+oN06O8fMVtSP1KneXsEvedO11Sgr044t1wtMIPP2wa5p0jBA== =X2Fa -END PGP SIGNATURE-
Re: [Dovecot] Problem using LDAP generating Userhome
Hi! I don't think there's a good way to solve this currently. I also think so, we solved the problem by putting the complete homepath in LDAP. pass_attrs = uid=user,userPassword=password,mailMessageStore=home=%$/telefonica.de/%Ln,mailFilterStore=sieve_dir=%$/telefonica.de/%Ln Do mailMessageStore and mailFilterStore return different directories? If not, maybe you could just put those settings into plugin {} section. Then the %Ln is guaranteed to be what you want. That doesn't seem to work. Dec 11 10:43:59 dovecot: Fatal: userdb didn't return a home directory, but mail location used it (%h): %h/:INDEX=/mail/index/%Lu/ The problem seems to be, that dovecot replaces values on the fly while retrieving from ldap. Not in the order it is mentioned in config file. Greetings Thorsten
Re: [Dovecot] Developer Documentation
Wow i am stupid ehehehehehe concat the input, not the filedescriptor. Tks again... Now its working ! 2009/12/10 Timo Sirainen t...@iki.fi On Thu, 2009-12-10 at 18:10 -0200, Alex Baule wrote: do_open(mbox, /storage/emexis/ exemplo.com.br/messages/alex/Maildir/body_test, fd1); fdp[0] = fd; fdp[1] = fd1; input = i_stream_create_fd(fd, 0, TRUE); input = i_stream_create_fd(fd1, 0, TRUE); input = i_stream_create_concat(fdp); struct istream *full_input[3]; full_input[0] = i_stream_create_fd(fd, 0, TRUE); full_input[1] = i_stream_create_fd(fd1, 0, TRUE); full_input[2] = NULL; input = i_stream_create_concat(full_input);
Re: [Dovecot] Spam filtering
Patrick Nagel wrote: You could go for bogofilter (purely Bayesian). -- cut -- The solution was inspired by a Gentoo Wiki article (http://www.gentoo-wiki.info/Bogofilter). If it's not just for personal use, but on a mailserver with quite some users I'd like to happily recommend ASSP. http://assp.sf.net/ It's *not* easy to setup, but after you've gone through all the options and learned about it, it is indeed the most deadly spam killer around. It's very flexible, with a lot of options. and active development. You can do regex filtering on subject, header, body, data etc. It has a nice web GUI, but you can put several things in different configuration files if you like. One interesting option e.g. is to do delaying only for emails which have a certain griplist score. Another interesting option is the Test mode, you can run it in front of e.g. postfix and just monitor it without doing any real filtering yet.
Re: [Dovecot] [dovecot] Compile problem on AIX with dovecot 1.2 rev 10449:a164075ea33a
On Dec 10, 2009, at 3:52 PM, Timo Sirainen wrote: How about now? :) Yes! Thanks bunches. -Jonathan smime.p7s Description: S/MIME cryptographic signature
[Dovecot] S=xxx missing in new messages
Hi to all! I’m setting up dovecot 1.2.8 on my system to substitute an older IMAP server and I’m testing all features of Dovecot. Yesterday I was testing support for zlib, for compressed messages, to set up a new namespace for old mails and I read that it is safe to compress only mails that have the field “S=XXX” in their name (XXX being the original size of message) and to leave uncompressed the ones that don’t have S=XXX in their name. Testing and searching I discovered that only new mail, mail that used to arrive in mailbox via SMTP have S=XXX, mail copied from another mailbox loose S=XXX. Later I’ve found that this not work anymore, even directly delivered mail messages do not have S=XXX anymore. I use dovecot-lda as delivery program and postfix as SMTP server, but I’ve not touched postfix configuration since one month ago. What can it be? How can I have S=XXX again in my messages file name? TIA Andrea
[Dovecot] id/permissions question
People, There is an imap client, which runs with user1 uid, but when its accessed to watch a maildir, whose (and its contents) ownership is user1:user1, this error occurs: dovecot: IMAP(user1): fchown(/path/user1/dovecot-uidlist.tmp, -1, 12(mail)) failed: Operation not permitted (egid=1000(user1), group based on /path/user1) dovecot.conf contains this line: mail_privileged_group = mail authentication happens through passwd-file, where for user1 its uid and gid are specified as in /etc/passwd and /etc/group. So how should dovecot be told to use user1 group instead of mail group? (or it needs some other solution?) signature.asc Description: This is a digitally signed message part.
Re: [Dovecot] id/permissions question
On Fri, 2009-12-11 at 17:17 +, Kārlis Repsons wrote: People, There is an imap client, which runs with user1 uid, but when its accessed to watch a maildir, whose (and its contents) ownership is user1:user1, this error occurs: dovecot: IMAP(user1): fchown(/path/user1/dovecot-uidlist.tmp, -1, 12(mail)) failed: Operation not permitted (egid=1000(user1), group based on /path/user1) dovecot.conf contains this line: mail_privileged_group = mail This is needed only with mbox format. You should probably just comment it out. authentication happens through passwd-file, where for user1 its uid and gid are specified as in /etc/passwd and /etc/group. So how should dovecot be told to use user1 group instead of mail group? (or it needs some other solution?) chgrp user1 /path/user1 or chmod 0700 /path/user1 signature.asc Description: This is a digitally signed message part
[Dovecot] virtual plugin: Broken mailbox list
Hello Timo, I'm testing the latest hg version from the 1.2 series and get the following in dovecot's error log as soon as I try to access the virtual mailbox Dec 11 18:23:07 ubuntu-test dovecot: IMAP(x): virtual index /etc/dovecot/virtual/unseen: Broken mailbox list $ cat dovecot-virtual * unseen $ dovecot -n # 1.2.8: /etc/dovecot/dovecot.conf # OS: Linux 2.6.31-16-generic-pae i686 Ubuntu 9.10 protocols: imap imaps managesieve disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login verbose_proctitle: yes mail_location: maildir:~/.maildir mail_debug: yes mail_drop_priv_before_exec: yes mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/wrapper.sh mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/wrapper.sh mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): expire fts fts_squat virtual quota imap_quota mail_log acl mail_plugins(imap): expire fts fts_squat virtual quota imap_quota mail_log acl mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve mail_log_max_lines_per_sec: 0 namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: private separator: / prefix: virtual/ location: virtual:/etc/dovecot/virtual:INDEX=~/.maildir/control:CONTROL=~/.maildir/control list: children lda: postmaster_address: postmas...@ubuntu hostname: ubuntu mail_plugins: sieve virtual expire quota acl mail_plugin_dir: /usr/lib/dovecot/modules/lda deliver_log_format: msgid=%m: from=%f: %$ log_path: /var/log/deliver.log info_log_path: /var/log/deliver.log sendmail_path: /usr/lib/sendmail rejection_subject: Rejected: %s rejection_reason: Your message to %t was automatically rejected:%n%r auth_socket_path: /var/run/dovecot/auth-master auth default: passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 438 plugin: quota: dict:user::proxy::dictionary expire: Trash 1 INBOX/log check 1 expire_dict: proxy::dictionary mail_log_events: delete undelete expunge copy mailbox_delete mailbox_rename flag_change mail_log_fields: uid box msgid size flags sieve: ~/.dovecot.sieve sieve_dir: ~/sieve deliver_log_format: msgid=%m: from=%f: %$ fts: squat fts_squat: partial=4 full=10 dict: dictionary: mysql:/etc/dovecot/dovecot-dict-sql.conf
[Dovecot] shared virtual (plugin) mailboxes?
With the virtual plugin is it possible to create shared virtual mailboxes? It seems to work (I created them under /etc/dovecot/virtual) but I wanted to make sure it is supported. -frank
Re: [Dovecot] shared virtual (plugin) mailboxes?
On Fri, 2009-12-11 at 13:56 -0500, Frank Cusack wrote: With the virtual plugin is it possible to create shared virtual mailboxes? It seems to work (I created them under /etc/dovecot/virtual) but I wanted to make sure it is supported. Just make sure the index files aren't shared. So something like: location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual signature.asc Description: This is a digitally signed message part
Re: [Dovecot] shared virtual (plugin) mailboxes?
On December 11, 2009 1:58:30 PM -0500 Timo Sirainen t...@iki.fi wrote: On Fri, 2009-12-11 at 13:56 -0500, Frank Cusack wrote: With the virtual plugin is it possible to create shared virtual mailboxes? It seems to work (I created them under /etc/dovecot/virtual) but I wanted to make sure it is supported. Just make sure the index files aren't shared. So something like: location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual That doesn't seem to work. First I get Fatal: Namespace initialization failed virtual: Root mail directory doesn't exist: /var/maildir/frank/virtual. If I create that directory, then I can login but I can't see the virtual mailboxes. If I start creating subdirectories matching the virtual mailboxes I can start to see them but no messages inside and no errors in the log. -frank
Re: [Dovecot] id/permissions question
On Friday 11 December 2009 17:22:52 you wrote: On Fri, 2009-12-11 at 17:17 +, Kārlis Repsons wrote: dovecot.conf contains this line: mail_privileged_group = mail This is needed only with mbox format. You should probably just comment it out. chgrp user1 /path/user1 chmod 0700 /path/user1 Thanks Timo, yes, was my own silly mistake... signature.asc Description: This is a digitally signed message part.
Re: [Dovecot] shared virtual (plugin) mailboxes?
On Fri, 2009-12-11 at 14:14 -0500, Frank Cusack wrote: location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual That doesn't seem to work. First I get Fatal: Namespace initialization failed virtual: Root mail directory doesn't exist: /var/maildir/frank/virtual. Are you sure you wrote it exactly like above? That error message looks like you did virtual:~/Maildir/virtual. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] shared virtual (plugin) mailboxes?
On December 11, 2009 2:18:08 PM -0500 Timo Sirainen t...@iki.fi wrote: On Fri, 2009-12-11 at 14:14 -0500, Frank Cusack wrote: location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual That doesn't seem to work. First I get Fatal: Namespace initialization failed virtual: Root mail directory doesn't exist: /var/maildir/frank/virtual. Are you sure you wrote it exactly like above? That error message looks like you did virtual:~/Maildir/virtual. location = virtual:/etc/dovecot/virtual:INDEX=/var/maildir/%n/virtual (/var/maildir/%n is in fact the same as ~ right now using a file but later when I use LDAP it won't be) I got it working with INDEX=MEMORY but is probably fine considering the nature of virtual mailboxes. -frank
Re: [Dovecot] shared virtual (plugin) mailboxes?
On Fri, 2009-12-11 at 14:26 -0500, Frank Cusack wrote: On December 11, 2009 2:18:08 PM -0500 Timo Sirainen t...@iki.fi wrote: On Fri, 2009-12-11 at 14:14 -0500, Frank Cusack wrote: location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual That doesn't seem to work. First I get Fatal: Namespace initialization failed virtual: Root mail directory doesn't exist: /var/maildir/frank/virtual. Are you sure you wrote it exactly like above? That error message looks like you did virtual:~/Maildir/virtual. location = virtual:/etc/dovecot/virtual:INDEX=/var/maildir/%n/virtual What does it log with mail_debug=yes? The above location should work, and it does work with me.. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] shared virtual (plugin) mailboxes?
On December 11, 2009 2:41:58 PM -0500 Timo Sirainen t...@iki.fi wrote: On Fri, 2009-12-11 at 14:26 -0500, Frank Cusack wrote: On December 11, 2009 2:18:08 PM -0500 Timo Sirainen t...@iki.fi wrote: On Fri, 2009-12-11 at 14:14 -0500, Frank Cusack wrote: location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual That doesn't seem to work. First I get Fatal: Namespace initialization failed virtual: Root mail directory doesn't exist: /var/maildir/frank/virtual. Are you sure you wrote it exactly like above? That error message looks like you did virtual:~/Maildir/virtual. location = virtual:/etc/dovecot/virtual:INDEX=/var/maildir/%n/virtual What does it log with mail_debug=yes? The above location should work, and it does work with me.. Works for me now also. I am 100% sure that the config is exactly the same as when it didn't work. I changed the config back, added debug, removed the /var/maildir/frank/virtual directory and now it works. very odd. -frank
[Dovecot] v2.0 post-login scripts
Post-login scripts work a bit differently in v2.0, because the old way just couldn't work anymore. I suppose at some point I should fork the wiki to v1.x and v2.x and start writing these things there, but for now I'll just write it here: First you'll need to tell imap service that it should connect to postlogin service: service imap { executable = imap imap-postlogin } Then you'll need the imap-postlogin service: # The service name below doesn't actually matter. service imap-postlogin { executable = script rawlog /tmp/test.sh unix_listener imap-postlogin { } } The script executable does all the magic. If you want multiple scripts, just make them a chain, like above script first executes rawlog, and rawlog then executes /tmp/test.sh: #!/bin/sh echo * OK Hello $USER ($IP - $LOCAL_IP) export MAIL=maildir:/tmp/test export USERDB_KEYS=$USERDB_KEYS mail exec $* So it's pretty similar to how it works before, except now you'll also need to update $USERDB_KEYS to contain all environments that you want to pass to imap process. signature.asc Description: This is a digitally signed message part
[Dovecot] Is it possible to change service name of managesieve service?
Hi, list. In dovecot-1.2, managesieve is identified as 'sieve' service while use '%s'[1] in dovecot. Is it possible to change it? Because we store it in SQL/LDAP as 'managesieve' service name, we don't want to change this. Thanks [1] http://wiki.dovecot.org/Variables -- Best Regards. Zhang Huangbin - Open Source Mail Server Solution for Red Hat(R) Enterprise Linux, CentOS, Debian, Ubuntu: http://www.iredmail.org/
Re: [Dovecot] S=xxx missing in new messages
On Dec 11, 2009, at 9:33 AM, Andre wrote: Yesterday I was testing support for zlib, for compressed messages, to set up a new namespace for old mails and I read that it is safe to compress only mails that have the field “S=XXX” in their name (XXX being the original size of message) and to leave uncompressed the ones that don’t have S=XXX in their name. S=XXX is added only when you have quota plugin enabled. But yeah, I hadn't really thought about it being important for zlib plugin too. Maybe I should just add it always..
Re: [Dovecot] Is it possible to change service name of managesieve service?
On Dec 11, 2009, at 8:26 PM, Zhang Huangbin wrote: In dovecot-1.2, managesieve is identified as 'sieve' service while use '%s'[1] in dovecot. Is it possible to change it? Because we store it in SQL/LDAP as 'managesieve' service name, we don't want to change this. No. Also sieve is the official name for it, so it's not going to be changed. http://www.iana.org/assignments/gssapi-service-names With SQL you could of course use some replace function in the SQL query. With LDAP .. is it possible to do *%s?
[Dovecot] outlook 2007 mailbox sort order
What are people doing to affect the sort order of mailboxes in outlook? Apple Mail and MS Outlook similarly suck in that they do not sort '~' correctly -- mailboxes starting with '~' are first instead of last. At least I think this is the fault of the client, since Mulberry sorts correctly. At least with Apple Mail I can drag and drop mailboxes into any display order I like, so at least after the fact it can be corrected. I want to provide shared, virtual and lazy_expunge mailboxes. I'd like these to be last in the list of mailboxes. This doesn't seem possible with Outlook unless I prefix the names with 'zz' or similar. yuk. -frank
Re: [Dovecot] Spam filtering
On 12/11/2009, aja-lists (aja-li...@tni.org) wrote: If it's not just for personal use, but on a mailserver with quite some users I'd like to happily recommend ASSP. http://assp.sf.net/ It's *not* easy to setup, but after you've gone through all the options and learned about it, it is indeed the most deadly spam killer around. Well - the defaults work pretty well (and be sure to install the default ham/spam collections) for most situations, so its really not that hard to set up. But yes, it has a LOT of options, so there is a definite learning curve if/when you decide to start tweaking. And yes, it is *very* effective, especially after your ham/spam collections mature for your site...