Re: [Dovecot] RHEL5/CentOS5 YUM repo, rpm, or spec file for 2.0?
Anyone know of a YUM repo. RPM or spec file for Dovecot 2.0 and friends? http://packages.atrpms.net/dist/el5/dovecot/ I haven't tried the 2.0 rpms yet, but we were very happy with the 1.0/1.1/1.2 packages on centos
Re: [Dovecot] Exchange-replacement with SOGo
Hi, On Tue, Oct 26, 2010 at 8:08 AM, Timo Sirainen wrote: > > They seem to prefer Cyrus, but apparently Dovecot should work too. I have been using Dovecot 1.2.13 with it, works just fine. Plus, sieve support's also there, which is cool.
[Dovecot] Exchange-replacement with SOGo
I thought some people here would be interested: Recently SOGo added support for OpenChange, which means Outlook can natively access it via MAPI the same way as Exchange. Everything is open source, and the great thing about SOGo is that it uses existing IMAP server for mails rather than reimplementing yet another one itself. They seem to prefer Cyrus, but apparently Dovecot should work too. For non-mail (calendar, etc) it uses SQL, but I heard it's not too difficult to replace that either if someone would prefer some NoSQL database or something. http://www.sogo.nu/ http://www.openchange.org/
Re: [Dovecot] delivering mail to public mbox with permission 660?
On 10/25/2010 08:22 AM, Timo Sirainen wrote: On Fri, 2010-10-22 at 17:14 -0700, RParr wrote: My understanding, from the Dovecot wiki and other docs/postings is that the folders should be 660 given the /var/mail permssions of rwxrwsrwt and ~/mail permssions of rwxrws--- Yep. Looks like it's broken in v1.2 for mbox. It works in v2.0 though. I could maybe write a patch for v1.2, but you'd need to compile Dovecot anyway. A patch would be much appreciated. http://hg.dovecot.org/dovecot-1.2/rev/45769d0cc39c Thanks. Works like a charm. I include the following for others who might want to apply this patch to their Ubuntu/Debian systems. # likely already done but include for completeness apt-get install build-essential devscripts cd /d/linux/dovecot # or where ever you stash such things apt-get build-dep dovecot # installed a bunch of dev libs/pkgs. apt-get source dovecot cd dovecot-1.2.9/ cp src/lib-storage/index/mbox/mbox-storage.c src/lib-storage/index/mbox/mbox.storage.c.orig vi src/lib-storage/index/mbox/mbox-storage.c # change mbox-storage.c per http://hg.dovecot.org/dovecot-1.2/rev/45769d0cc39c#l1.25 dch -v 1:1.2.9-1ubuntu6.1ta "mbox: Creating new mailboxes should base permissions on mail root dir, not always use 0600" # this sets the version to 1:1.2.9-1ubuntu6.1ta and adds and entry in the changelog. # did this so apt/synaptic would see our version as newer then existing. debuild -us -uc # can use dpkg-buildpackage command-line options # -us -uc means do not sign source package or .changes file. cd /d/linux/dovecot # now contains a set of dovecot debs I then moved the debs to our local repository, updated the repository index, and installed using synaptic. OR # assuming /d/linux/dovecot contains only the newly generated debs, install the packages using dpkg dpkg -i *.deb
[Dovecot] gnus/dovecot open transactions panic
I have been using dovecot with gnus for a long time. Recently, I started getting failures, and I think it's a dovecot problem triggered by gnus being more aggressive, but I'd like to hear opinions about whether I should pursue this as a gnus bug. The log shows: Oct 25 19:27:36 gdtserver dovecot: IMAP(gdt): Panic: Trying to close mailbox foo.bar with open transactions Oct 25 19:27:36 gdtserver dovecot: dovecot: child 26231 (imap) killed with signal 6 (core not dumped - set mail_drop_priv_before_exec=yes) and this seems to be triggered when dovecot is going GCC: to a local mailbox (not imap) when sending, but also semi-randomly. most of dovecot -n: (I'm sure that I'm not having auth problems and would rather not post that part): # 1.2.14: /usr/pkg/etc/dovecot.conf # OS: NetBSD 5.1_RC1 i386 protocols: imaps login_dir: /var/run/dovecot/login login_executable: /usr/pkg/libexec/dovecot/imap-login login_processes_count: 4 login_max_processes_count: 16 max_mail_processes: 32 first_valid_uid: 128 mail_location: maildir:~/IMAP I have 162 mailboxes polled by gnus on this dovecot instance. I get the panic on various mailboxes and I can't see a pattern. I do get Checking new news... nnimap-send-command: SIGPIPE raised on process *nnimap*; closed it From gnus. I then look at the listed one in the panic, and *imap-log* From gnus. This just may be an artifact of pipelining, but the panic-list mbox has 30 more after it that were sent, as in: 19:35:43 506 EXAMINE "mbox.named-in-panic" (QRESYNC (1208908407 1)) [30 more lines] I'm guessing that this is a dovecot problem. I realize I should update to 1.2.15 :-) but I didn't see anything in the 1.2.15 release notes that looks like a match. pgpSUfgaRqUhp.pgp Description: PGP signature
Re: [Dovecot] v2.0.6 released
On 25.10.2010, at 23.42, Stan Hoeppner wrote: >> It's only for mdbox because they have a known upper size >> (mdbox_rotate_size). With mbox the only possibility would be to let >> admin specify how large the files should be preallocated to. And how >> would the admin know? And should different mailboxes have different >> preallocated sizes? For example "Drafts" mailbox is unlikely to ever >> grow very large. And in any case, if you care about performance mbox >> isn't really the best choice. > > Is it still the best choice performer WRT full text search? mdbox with the preallocation enabled would probably perform better. > I use fts > squat, but it seems whenever I do a body search of an IMAP folder that > the index is cold, thus I don't often get the benefit of the index. Yeah, Squat's indexing speed is way too slow. It needs some kind of a redesign there. > Would maildir, dbox, or mdbox give better performance here with a cold > index? The performance problem is with Squat itself, not with the mailbox format. > Full text search is the main reason I've stayed with mbox. I've > never noticed any performance issues (not after you recommended I enable > very_dirty_syncs that is). The main problem I see with mbox is that it's rather fragile and I know there are some bugs in Dovecot causing it to crash in some situations with mbox. > Anyhow, it sounds like even if it could somehow be done with mbox it > would be pretty difficult to implement, and not provide much ROI as > apparently few OPs still use mbox. Right. If someone wants to do it, it should be somewhat easy to patch it in :)
Re: [Dovecot] v2.0.6 released
Timo Sirainen put forth on 10/25/2010 10:25 AM: > On Fri, 2010-10-22 at 06:02 -0500, Stan Hoeppner wrote: >> Timo Sirainen put forth on 10/21/2010 4:10 PM: >>> On 21.10.2010, at 19.14, Timo Sirainen wrote: >>> + mdbox: Added mdbox_preallocate_space setting (Linux+ext3/XFS only) >>> >>> ext4 of course, not ext3. Also requires Linux kernel v2.6.23 or newer and >>> glibc 2.10 or newer. >> >> Is this available for mbox or just mdbox? If mdbox only, why not mbox also? > > It's only for mdbox because they have a known upper size > (mdbox_rotate_size). With mbox the only possibility would be to let > admin specify how large the files should be preallocated to. And how > would the admin know? And should different mailboxes have different > preallocated sizes? For example "Drafts" mailbox is unlikely to ever > grow very large. And in any case, if you care about performance mbox > isn't really the best choice. Is it still the best choice performer WRT full text search? I use fts squat, but it seems whenever I do a body search of an IMAP folder that the index is cold, thus I don't often get the benefit of the index. Would maildir, dbox, or mdbox give better performance here with a cold index? Full text search is the main reason I've stayed with mbox. I've never noticed any performance issues (not after you recommended I enable very_dirty_syncs that is). That's all kinda off topic though. The main reason I asked about preallocation in first place was merely to limit file fragmentation. As I understand it, some types of preallocation can be each time the file is written, in essence extending the tail at the end of the file. Something like this won't eliminate fragmentation, but it should lessen the number of fragments as the file grows. I'm not currently running into performance problems due to fragmentation, but it could/will happen at some point. Currently I'm running xfs_fsr twice a week via cron to keep fragmentation at bay. Those running mbox on any other filesystem would benefit from this limited fragmentation as no other FS has a working online defragmenter. Anyhow, it sounds like even if it could somehow be done with mbox it would be pretty difficult to implement, and not provide much ROI as apparently few OPs still use mbox. It's really cool to hear that preallocation should work very well WRT eliminating fragmentation of mdbox as you said their is a maximum file size. This seems like a perfect fit. -- Stan
Re: [Dovecot] Prevent dovecot.sieve.log logs
On 25.10.2010, at 21.02, Stephan Bosch wrote: >> When an account overquota happens, a log is generated: >> /var/lib/imap/sieve/username/dovecot.sieve.log >> >> Is there a way to prevent this? > > Currently, no. This feature has existed since the early stages of the > cmusieve plugin. To my knowledge, you are the first to request this. What's > your problem exactly? I think the overquota situation should work the same way with Sieve as without Sieve: It logs one line to info log, something like: deliver(tss): Info: msgid=: save failed to INBOX: Out of quota (I guess it already does this in addition to writing the same info to dovecot.sieve.log?) Or I guess it becomes more problematic with multiple actions. Hmm. What does it log now if you fileinto to two mailboxes and also forward the mail? Maybe each of those actions should do mail_deliver_log(), resulting in: deliver(tss): Info: msgid=: saved mail to INBOX deliver(tss): Info: msgid=: saved mail to backup deliver(tss): Info: msgid=: forwarded mail to
Re: [Dovecot] 2.0.3 Bug - hanging issue
On 25.10.2010, at 14.13, Alan Brown wrote: > Oct 25 12:36:34 msslat dovecot: imap(keh2): Error: user keh2: Initialization > failed: Namespace '#mbox/': mkdir(/stage/mail/imap1/keh2/mail) failed: > Permission denied (euid=2291(keh2) egid=101(luci) missing +w perm: > /stage/mail/imap1, euid is not dir owner) > > Because the parent directory was rwxr-xr-x root.root Right.. > The problem is that for some reason dovecot then wedged and a lot of other > stuff piled up behind it, causing people to complain their mail wasn't coming > through. Load average climbed to over 100. > > Creating the user directories freed things up... So the problem is that if there's a misconfiguration, load goes up? I don't really know if there's much to do about this. I guess it could wait a second or so before disconnecting client to avoid it reconnecting back too fast..
Re: [Dovecot] 2.0.3 Bug - hanging issue
> From: Charles Marcus > On 2010-10-25 9:13 AM, Alan Brown wrote: > > We had this this morning: 2.0 is still getting a good number of bug fixes so if you're going to use it you should be prepared to upgrade to the latest and see if the problem is already fixed before reporting a possible bug. I have been, but I've seen no similar reports and it may still be in 2.0.6. I will update to that version during a planned maintenance window tomorrow.
Re: [Dovecot] Prevent dovecot.sieve.log logs
On 10/25/2010 08:05 PM, Thiago Henrique wrote: Hello, When an account overquota happens, a log is generated: /var/lib/imap/sieve/username/dovecot.sieve.log Is there a way to prevent this? Currently, no. This feature has existed since the early stages of the cmusieve plugin. To my knowledge, you are the first to request this. What's your problem exactly? Regards, Stephan.
Re: [Dovecot] anti-spam+anti-malware suggestions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA384 Am 25.10.2010 um 19:40 schrieb Marc Perkel: > On 10/20/2010 9:20 AM, Jose Luis Faria wrote: >> Hello people, >> >> I am using now qmail in cluster with LDAP + Interscan Messaging Security >> Suite from Trendmicro. >> >> I need to develop a new solution with: >> - postfix >> - dovecot >> - anti-spam >> - anti-malware. >> >> I am thankful any help or suggestion for anti-spam and anti-malware. >> >> Thanks in advance! >> > > You can try a front end spam filter service and not have to deal with it at > all. > http://www.junkemailfilter.com The best anti-spam system is ASSP. Install it, train it and you have 99.8% of all spam eliminated on the server. We use it since years with very good results. - -- Robert M. Münch Mobil: +49 177 245 2802 http://www.saphirion.com Smarter|Better|Faster Saphirion Ltd & Co KG Schumannstr. 3 D - 76185 Karlsruhe Tel : +49 721 5978501 Fax: +49 721 5978502 Registergericht: Amtsgericht Mannheim HRA 105339 Alleinige persönlich haftende Gesellschafterin: Quiyo Verwaltungs Limited Registered Office: 76 High Street, Newport Pagnell, Milton Keynes, MK 16 8AQ, Great Britain. Company Number: 5705018 Vertretungsberechtigter Geschäftsführer: Robert M. Münch Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz: DE 24939452. Inhaltlich Verantwortlicher gemäß § 10 Absatz 3 MDStV: Robert M. Münch (Anschrift wie oben) -BEGIN PGP SIGNATURE- Version: PGP Desktop 10.0.2 (Build 13) Charset: iso-8859-1 wsBVAwUBTMXgEHSQa/BbHGLwAQlZagf/a36cq4Y+sf6dqW8oOcQDBhohDedMEuoi HH6MmKw2Xvvcy4g6FS4nvsTwKhQyl7EVd2RP9rfUNbxeaisINnF4HMf7l1bWAzlL kjJ8RjKieis2bYBanyaQ7OpWddkvpgvMc0m25c3zNhvMaO26CO8f1/59UcrgOb8r F8V1KdJbwcLL/UVHCPVnMwm9uKlEdh5t4YFCjdo2eplgzhaPDYk0mw7N8929ZmlN uDVHd2xPMnyNFl3rUsQPCAanDCL/Z3anYo8pXhAR49B6ZxjF11V/zYZj2yOjWXiM /I9CVsyyyD4YalCVphZSqZpAa0luVQxMVV7hoOFKlCcmke49CN2a4A== =wgDg -END PGP SIGNATURE-
Re: [Dovecot] 2.0.3 Bug - hanging issue
On 2010-10-25 9:13 AM, Alan Brown wrote: > We had this this morning: 2.0 is still getting a good number of bug fixes so if you're going to use it you should be prepared to upgrade to the latest and see if the problem is already fixed before reporting a possible bug. 2.0.6 was just released... -- Best regards, Charles
Re: [Dovecot] virtual plugin broken ? dovecot 2.0.6 / solved
Am 25.10.2010 18:16, schrieb Robert Schetterer: > Am 25.10.2010 18:07, schrieb Timo Sirainen: >> On Mon, 2010-10-25 at 17:53 +0200, Robert Schetterer wrote: >>> after all i am confused what using better >>> >>> pop3_uidl_format = %08Xu%08Xv ( most compatible ) >>> or >>> pop3_uidl_format = %g ( better with virtual ) >> >> %g is always the best value, except with mbox because it doesn't have >> true GUIDs. Of course, if you change it now the pop3 clients will >> redownload all mails. >> >>> pop3_reuse_xuidl = ? what ist the most compatible/konservative setting >>> with maildir on a cluster filesystem >> >> This is useful only if you converted from another POP3 server to >> Dovecot. Keep it "no". >> >>> pop3_save_uidl = ? what ist the most compatible/konservative setting >>> with maildir on a cluster filesystem >> >> This can be useful if you're changing pop3_uidl_format setting. First >> set this to "yes", then make sure all users have logged in with POP3, >> and then it's safe to change pop3_uidl_format because the old UIDLs have >> been permanently saved to dovecot-uidlist file. >> >>> RealMails/* >>> RealMails/INBOX >>> RealMails/INBOX/* >> >> I don't think you need the INBOX lines above, since RealMails/* should >> match them already. >> >>> --sql >>> CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox, \ >>> CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \ >> >> This no longer works like this with v2.0. Change them to e.g.: >> >> AS namespace_1_inbox -> AS 'namespace/default/inbox' >> AS namespace_2_inbox -> AS 'namespace/virtual/inbox' >> >> Then give those same names to your namespaces: >> >>> namespace { >> >> namespace default { >> >>> hidden = no >>> inbox = yes >>> list = yes >>> location = >>> prefix = >>> separator = / >>> subscriptions = yes >>> type = private >>> } >>> namespace { >> >> namespace virtual { >> >>> hidden = yes >>> list = no >>> location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ >>> prefix = virtual/ >>> separator = / >>> subscriptions = no >>> type = private >>> } >> > thx Timo, for quick answer > i ll try and report > Hi Timo, it worked with all explains you made, for note: tested with outlook express ( as the worst client my users mostly use ) also no mail doubles redownloads etc for luck it seems that m$ has no default email client integrated in win7 ( which i didnt know since yet ) -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] dovecot Digest, Vol 90, Issue 102
Alan Brown wrote: > From: "Roderick A. Anderson" > Subject: [Dovecot] RHEL5/CentOS5 YUM repo, rpm, or spec file for 2.0? > > I don't remember sing any mention come across the list reference the > Subject line and nothing shows up within the first three pages of a > Google search. > > Anyone know of a YUM repo. RPM or spec file for Dovecot 2.0 and friends? Try the following 2 URLs: http://www.city-fan.org/ftp/contrib/yum-repo/ http://www.city-fan.org/ftp/contrib/mail/ Thanks. That's a big help. ATrpms has builds too, but they're usually out of date. Yeah way of of date. 1.0.7 I think is what I saw. Again thanks, Rod --
Re: [Dovecot] dovecot Digest, Vol 90, Issue 102
> From: "Roderick A. Anderson" > Subject: [Dovecot] RHEL5/CentOS5 YUM repo, rpm, or spec file for 2.0? > > I don't remember sing any mention come across the list reference the > Subject line and nothing shows up within the first three pages of a > Google search. > > Anyone know of a YUM repo. RPM or spec file for Dovecot 2.0 and friends? Try the following 2 URLs: http://www.city-fan.org/ftp/contrib/yum-repo/ http://www.city-fan.org/ftp/contrib/mail/ ATrpms has builds too, but they're usually out of date.
Re: [Dovecot] Auto delete older messages in SPAM folder
Yes, you can use flat file dict with expire as well, but its performance probably won't be very good. It was designed for small files. Maybe use sqlite instead? On Mon, 2010-10-25 at 16:19 -0200, Thiago Henrique wrote: > Thanks! > > doveadm-expunge works fine! Now I want to improve performance. Is there > flat file dict to Expire plugin like Quota ? > > Thanks > > -- > Thiago Henrique > > Em Seg, 2010-08-02 às 15:41 +0100, Timo Sirainen escreveu: > > On Mon, 2010-08-02 at 10:33 -0300, Thiago Henrique wrote: > > > > > Cyrus has a setting that purge the emails from a mailbox under a > > > pre-defined criteria. For example: > > > > > > EVENTS { > > > ... > > > # At 12:01 delete messages older than 60 days in SPAM folder > > > deletespam cmd="ipurge -d 60 -f user/*/SPAM" at=1201 > > > } > > > > > > Is there in Dovecot any setting like this ? > > > > There's http://wiki.dovecot.org/Plugins/Expire > > > > With v2.0 it's been pretty much redesigned to run via doveadm, which > > works much better and easier: http://wiki2.dovecot.org/Plugins/Expire > > > > >
Re: [Dovecot] Auto delete older messages in SPAM folder
Thanks! doveadm-expunge works fine! Now I want to improve performance. Is there flat file dict to Expire plugin like Quota ? Thanks -- Thiago Henrique Em Seg, 2010-08-02 às 15:41 +0100, Timo Sirainen escreveu: > On Mon, 2010-08-02 at 10:33 -0300, Thiago Henrique wrote: > > > Cyrus has a setting that purge the emails from a mailbox under a > > pre-defined criteria. For example: > > > > EVENTS { > > ... > > # At 12:01 delete messages older than 60 days in SPAM folder > > deletespam cmd="ipurge -d 60 -f user/*/SPAM" at=1201 > > } > > > > Is there in Dovecot any setting like this ? > > There's http://wiki.dovecot.org/Plugins/Expire > > With v2.0 it's been pretty much redesigned to run via doveadm, which > works much better and easier: http://wiki2.dovecot.org/Plugins/Expire > >
[Dovecot] Prevent dovecot.sieve.log logs
Hello, When an account overquota happens, a log is generated: /var/lib/imap/sieve/username/dovecot.sieve.log Is there a way to prevent this? My `dovecot -n` : # 2.0.6 (a7d99b69523a): /etc/dovecot/dovecot.conf # OS: Linux 2.6.35-23-server x86_64 Ubuntu 10.04.1 LTS auth_master_user_separator = * auth_mechanisms = plain login auth_username_chars = abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz01234567890...@= auth_worker_max_count = 10 disable_plaintext_auth = no listen = server.com login_greeting = K8 IMAP/POP3 server mail_gid = dovemail mail_plugins = " quota" mail_uid = dovemail managesieve_sieve_capability = fileinto reject envelope vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include imapflags notify mmap_disable = yes passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } passdb { args = /etc/dovecot/dovecot-sql-master.conf.ext driver = sql master = yes pass = yes } plugin { autocreate = SPAM autosubscribe = SPAM quota = dict:User quota::file:/var/lib/imap/user/%2.256RHn/% n/dovecot-quota quota_rule = *:storage=1GB sieve = /var/lib/imap/sieve/%2.256RHn/%n/dovecot.sieve sieve_dir = /var/lib/imap/sieve/%2.256RHn/%n sieve_extensions = comparator-i;ascii-numeric copy envelope fileinto imapflags include notify regex reject relational subaddress vacation sieve_max_script_size = 512KB sieve_quota_max_scripts = 2 } protocols = imap pop3 lmtp sieve service auth-worker { user = $default_internal_user } service auth { process_limit = 1 process_min_avail = 1 } service imap-login { inet_listener imap { address = server.com port = 143 } } service imap { process_limit = 1024 process_min_avail = 10 } service lmtp { inet_listener { address = server.com port = 2003 } process_limit = 256 process_min_avail = 10 } service managesieve-login { inet_listener sieve { address = server.com port = 4190 } inet_listener sieve_deprecated { address = server.com port = 2000 } } service managesieve { process_limit = 20 process_min_avail = 10 } service pop3-login { inet_listener pop3 { address = server.com port = 110 } } service pop3 { process_limit = 256 process_min_avail = 10 } ssl = no userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } verbose_proctitle = yes protocol imap { imap_idle_notify_interval = 2 mins imap_max_line_length = 64 k mail_max_userip_connections = 50 mail_plugins = " quota imap_quota autocreate" } protocol lmtp { mail_plugins = " sieve quota autocreate" } protocol sieve { mail_plugins = " sieve" managesieve_implementation_string = K8 ManageSieve managesieve_logout_format = bytes=%i/%o managesieve_max_line_length = 65536 managesieve_sieve_capability = comparator-i;ascii-numeric copy envelope fileinto imapflags include notify regex reject relational subaddress vacation } protocol pop3 { mail_plugins = " quota autocreate" } Thanks, -- Thiago Henrique
Re: [Dovecot] Dovecot Linux 2 Dovecot OSX migration
On Oct 25, 2010, at 10:33 AM, Robert M. Münch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA384 Am 25.10.2010 um 18:14 schrieb Bradley Giesbrecht: When I moved from EIMS to Dovecot I used imapsync. It worked well but might be an issue if your user base/data is very large. Hi, this is not the case. Maybe around 4GB of data. I help maintain some of the mail related ports at MacPorts. http://www.macports.org/ Ah, cool. Yes, I just got my hands on macports. Very nice stuff! Open-source with a Apple-Like simple approach. Are you going to be using the Dovecot pre-installed on OSX 1.6 and manage users with Apples server tools? Yes, exactly. That's the plan. Or is it not wise to do? Any reasonable objections against this approach? There are pros and cons. I have not used OSX Server since 10.4 so I'm not a good source on how well current Apple tools work. Generally the issue has been when wanting something the GUI tools do not provide when editing conf files manually you run the risk of Apple Software Updates wiping out the changes to the conf files or the GUI tools not parsing them correctly. If not, consider using MacPorts to install the pieces. I'm not sure if I can use the MacPorts stuff to "update" the default installed versions of if this would mess up the system completely. Overall, I want to keep it as simple as possible. You can not. MacPorts installs software to a prefix, default /opt/local. We have a nice email list that would be a better place to talk about MacPorts. http://www.macports.org/contact.php#Lists I suggest the Users list. This will be a good resource even if you decide to do things on a Mac without MacPorts. I feel I'm straying from Dovecot as a subject so email me directly with Mac or MacPorts questions and I will try to get you hooked up with the common resources we use. Bradley Giesbrecht
Re: [Dovecot] Problems converting to maildir with dsync in 2.0.6
Hello I am Carlos Jarero I have a problem with the email configuration, I did step by step the configuration of my mail server. I have installed Fedora 11 If I test the server function correct, but when I try to read my messages never I can read them, ever send me that the password is worng. My mail client is outlook Some body can help me with instructions for configure my mail server. Thanks Atte. MC Ing. Carlos Rafael Jarero Valle Soporte cjar...@isi.mx Tel. (33) 3616 75 76 Ext. 129 Celular (33) 1003 6220 -Mensaje original- De: dovecot-bounces+cjarerov=isi...@dovecot.org [mailto:dovecot-bounces+cjarerov=isi...@dovecot.org] En nombre de Nicholas Riley Enviado el: Lunes 25 de Octubre de 2010 12:34 Para: dovecot@dovecot.org Asunto: Re: [Dovecot] Problems converting to maildir with dsync in 2.0.6 In article <1288019653.6536.251.ca...@kurkku.sapo.corppt.com>, Timo Sirainen wrote: > Besides the :SUBSCRIPTIONS=, you could also have put all mailboxes > under another directory, like with ":MAILBOXDIR=mailboxes" the > subscriptions mailbox would be in "mailboxes/subscriptions". Thanks - not sure how I missed that one. I've updated the wiki page in any case. > > Also, what "server log" is it referring to above? > > Well, it means the error message just above it. Maybe this error > message could be changed when running standalone programs.. Perhaps :-) > > dsync(nriley): Error: Maildir: 6ef533cd4cdb1fd454b0226bfc851bb3:2, > > changed UID 1846529 -> 1846531 > > dsync(nriley): Panic: file maildir-save.c: line 892 > > (maildir_save_sync_uidlist): assertion failed: (ret > 0) > > Fixed: http://hg.dovecot.org/dovecot-2.0/rev/c8eb81e1b5d6 Thanks. My mboxes now convert successfully. Onward! -- Nicholas Riley
Re: [Dovecot] anti-spam+anti-malware suggestions
On 10/20/2010 9:20 AM, Jose Luis Faria wrote: Hello people, I am using now qmail in cluster with LDAP + Interscan Messaging Security Suite from Trendmicro. I need to develop a new solution with: - postfix - dovecot - anti-spam - anti-malware. I am thankful any help or suggestion for anti-spam and anti-malware. Thanks in advance! You can try a front end spam filter service and not have to deal with it at all. http://www.junkemailfilter.com
Re: [Dovecot] Problems converting to maildir with dsync in 2.0.6
In article <1288019653.6536.251.ca...@kurkku.sapo.corppt.com>, Timo Sirainen wrote: > Besides the :SUBSCRIPTIONS=, you could also have put all mailboxes under > another directory, like with ":MAILBOXDIR=mailboxes" the subscriptions > mailbox would be in "mailboxes/subscriptions". Thanks - not sure how I missed that one. I've updated the wiki page in any case. > > Also, what "server log" is it referring to above? > > Well, it means the error message just above it. Maybe this error message > could be changed when running standalone programs.. Perhaps :-) > > dsync(nriley): Error: Maildir: 6ef533cd4cdb1fd454b0226bfc851bb3:2, > > changed UID 1846529 -> 1846531 > > dsync(nriley): Panic: file maildir-save.c: line 892 > > (maildir_save_sync_uidlist): assertion failed: (ret > 0) > > Fixed: http://hg.dovecot.org/dovecot-2.0/rev/c8eb81e1b5d6 Thanks. My mboxes now convert successfully. Onward! -- Nicholas Riley
Re: [Dovecot] Dovecot Linux 2 Dovecot OSX migration
-BEGIN PGP SIGNED MESSAGE- Hash: SHA384 Am 25.10.2010 um 18:14 schrieb Bradley Giesbrecht: > When I moved from EIMS to Dovecot I used imapsync. It worked well but might > be an issue if your user base/data is very large. Hi, this is not the case. Maybe around 4GB of data. > I help maintain some of the mail related ports at MacPorts. > http://www.macports.org/ Ah, cool. Yes, I just got my hands on macports. Very nice stuff! Open-source with a Apple-Like simple approach. > Are you going to be using the Dovecot pre-installed on OSX 1.6 and manage > users with Apples server tools? Yes, exactly. That's the plan. Or is it not wise to do? Any reasonable objections against this approach? > If not, consider using MacPorts to install the pieces. I'm not sure if I can use the MacPorts stuff to "update" the default installed versions of if this would mess up the system completely. Overall, I want to keep it as simple as possible. - -- Robert M. Münch Mobil: +49 177 245 2802 http://www.saphirion.com Smarter|Better|Faster Saphirion Ltd & Co KG Schumannstr. 3 D - 76185 Karlsruhe Tel : +49 721 5978501 Fax: +49 721 5978502 Registergericht: Amtsgericht Mannheim HRA 105339 Alleinige persönlich haftende Gesellschafterin: Quiyo Verwaltungs Limited Registered Office: 76 High Street, Newport Pagnell, Milton Keynes, MK 16 8AQ, Great Britain. Company Number: 5705018 Vertretungsberechtigter Geschäftsführer: Robert M. Münch Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz: DE 24939452. Inhaltlich Verantwortlicher gemäß § 10 Absatz 3 MDStV: Robert M. Münch (Anschrift wie oben) -BEGIN PGP SIGNATURE- Version: PGP Desktop 10.0.2 (Build 13) Charset: iso-8859-1 wsBVAwUBTMW/h3SQa/BbHGLwAQmpRggAhZvBwb9hK0wGf6HKTKlnKnEgPOMM1PET aHjonv2gZj6tQu/HFuL/gvNWukXhPf+9fTUKMEBAE4LMomyZAaetYhNXXV3a6LXd uhPjF+rL30mRk9XPd5JV9/zfeAvfkE61gU774jfeKNVvNxBCRCEY9++Zp6PB/fHP 9hldsVxH6P5hODr6RJq4zYHolzTnuUDX9FL8z31xokCXv+1NkFa3O4yw55sfPFAc CImeJ7QgDPjVMHRnDP2FbogomIzZOnAdVcmZLpAGKdJkpTDb2rN05exAh0Qd9rqV VC+DF3wh23MUH3MeHlK9+KikAh6iWT1Te/p/PsGkp3i5sftcugYGXQ== =/v+s -END PGP SIGNATURE-
Re: [Dovecot] add basic systemd support to dovecot
On Mon, 2010-10-25 at 17:47 +0100, Timo Sirainen wrote: > > +if HAVE_SYSTEMD > > +dovecot_SOURCES += sd-daemon.c > > +noinst_HEADERS += sd-daemon.h > > +endif > > I don't think this is portable. Or looks like it's already used in lib-sql/Makefile.am. Maybe it works fine then. Or probably doesn't matter anyway since this is Linux-only code and GNU make is always used there. So just keep this as is. :)
Re: [Dovecot] add basic systemd support to dovecot
On Wed, 2010-10-20 at 22:54 +0200, Christophe Fergeau wrote: > What I wanted to ask the list for now is if such a patch is wanted, > and to get feedback on how things are done in it, and what should be > improved in it. [2] and [3] might be useful reading while looking at > the patch. You can simplify the environment preserving with these changes: http://hg.dovecot.org/dovecot-2.0/rev/e0a97842182f http://hg.dovecot.org/dovecot-2.0/rev/d1fd5b84d410 > +if HAVE_SYSTEMD > +dovecot_SOURCES += sd-daemon.c > +noinst_HEADERS += sd-daemon.h > +endif I don't think this is portable. You could do it instead like: if HAVE_SYSTEMD SD_SOURCES = sd-daemon.c endif dovecot_SOURCES = \ $(SD_SOURCES) \ .. noinst_HEADERS = \ sd-daemon.h \ .. I don't think there's any reason to put sd-daemon.h behind "if". > +AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for > systemd service files]), > +[], [with_systemdsystemunitdir=$($PKG_CONFIG > --variable=systemdsystemunitdir systemd)]) Is this a common name for this option? If not, I'd prefer a shorter name.
[Dovecot] RHEL5/CentOS5 YUM repo, rpm, or spec file for 2.0?
I don't remember sing any mention come across the list reference the Subject line and nothing shows up within the first three pages of a Google search. Anyone know of a YUM repo. RPM or spec file for Dovecot 2.0 and friends? TIA, Rod --
[Dovecot] Recommendation for OCFS2 filesystem type
Hello When creating an OCFS2 filesystem, one can specify a "filesystem type" option: -T filesystem-type Specify how the filesystem is going to be used, so that mkfs.ocfs2 can chose optimal filesystem parameters for that use. The supported filesystem types are: mail Appropriate for file systems which will have many meta data updates. Creates a larger journal. datafiles Appropriate for file systems which will host a rela‐ tively small number of very large files. A small journal is selected. Cluster size will be at least 128K. Considering I'm using a separate partition for the dovecot indices, and that I'm using mdbox, would it be more appropriate to use 'datafiles' for the mail location partition and 'mail' just for the indices? Or would 'mail' be appropriate for both even with the larger files created by mdbox? Thanks, Andre
Re: [Dovecot] Dovecot Linux 2 Dovecot OSX migration
On Oct 25, 2010, at 8:57 AM, Robert M. Münch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA384 Hi, we are moving all our internal IT to an OSX server. Having used Dovecot on Linux for a couple of years now I want to transfer all IMAP folders so that users won't see a difference. Are there are any tips & tricks how to migrate Dovecot to Dovecot? I hope this is a simple thing to do. When I moved from EIMS to Dovecot I used imapsync. It worked well but might be an issue if your user base/data is very large. I help maintain some of the mail related ports at MacPorts. http://www.macports.org/ Are you going to be using the Dovecot pre-installed on OSX 1.6 and manage users with Apples server tools? If not, consider using MacPorts to install the pieces. Even if you want to manually build look at our Portfiles for examples of how to get things patched and compiled on OSX. Regards, Bradley Giesbrecht
Re: [Dovecot] virtual plugin broken ? dovecot 2.0.6
Am 25.10.2010 18:07, schrieb Timo Sirainen: > On Mon, 2010-10-25 at 17:53 +0200, Robert Schetterer wrote: >> after all i am confused what using better >> >> pop3_uidl_format = %08Xu%08Xv ( most compatible ) >> or >> pop3_uidl_format = %g ( better with virtual ) > > %g is always the best value, except with mbox because it doesn't have > true GUIDs. Of course, if you change it now the pop3 clients will > redownload all mails. > >> pop3_reuse_xuidl = ? what ist the most compatible/konservative setting >> with maildir on a cluster filesystem > > This is useful only if you converted from another POP3 server to > Dovecot. Keep it "no". > >> pop3_save_uidl = ? what ist the most compatible/konservative setting >> with maildir on a cluster filesystem > > This can be useful if you're changing pop3_uidl_format setting. First > set this to "yes", then make sure all users have logged in with POP3, > and then it's safe to change pop3_uidl_format because the old UIDLs have > been permanently saved to dovecot-uidlist file. > >> RealMails/* >> RealMails/INBOX >> RealMails/INBOX/* > > I don't think you need the INBOX lines above, since RealMails/* should > match them already. > >> --sql >> CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox, \ >> CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \ > > This no longer works like this with v2.0. Change them to e.g.: > > AS namespace_1_inbox -> AS 'namespace/default/inbox' > AS namespace_2_inbox -> AS 'namespace/virtual/inbox' > > Then give those same names to your namespaces: > >> namespace { > > namespace default { > >> hidden = no >> inbox = yes >> list = yes >> location = >> prefix = >> separator = / >> subscriptions = yes >> type = private >> } >> namespace { > > namespace virtual { > >> hidden = yes >> list = no >> location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ >> prefix = virtual/ >> separator = / >> subscriptions = no >> type = private >> } > thx Timo, for quick answer i ll try and report -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] Shared folders, please help.!
On Wed, 2010-10-20 at 09:06 +0200, Johan Hendriks wrote: > > (or really, you should be using home directories to avoid that > > whole /usr/local/virtual/%u/%n everywhere) > > I have read the the wiki and tried to use the home folder. > I created a dir /usr/home/virtual/ gave it the right permissions. My idea was more like: mail_home = /usr/local/virtual/%d/%n mail_location = maildir:~/ Even better would be: mail_location = maildir:~/Maildir but you'd have to move existing maildirs below the Maildir/ then. > h...@domain.com: Initialization failed: Namespace '': mkdir( > home=/usr/home/virtual/domain.com/hans/ > mail=/usr/local/virtual/domain.com/hans) in directory /var/run/dovecot Above it's trying to create a directory called "/var/run/dovecot/home=/usr/home/virtual/domain.com/hans/ mail=/usr/local/virtual/domain.com/hans", which is of course completely wrong.
[Dovecot] Dovecot Linux 2 Dovecot OSX migration
-BEGIN PGP SIGNED MESSAGE- Hash: SHA384 Hi, we are moving all our internal IT to an OSX server. Having used Dovecot on Linux for a couple of years now I want to transfer all IMAP folders so that users won't see a difference. Are there are any tips & tricks how to migrate Dovecot to Dovecot? I hope this is a simple thing to do. - -- Robert M. Münch Mobil: +49 177 245 2802 http://www.saphirion.com Smarter|Better|Faster Saphirion Ltd & Co KG Schumannstr. 3 D - 76185 Karlsruhe Tel : +49 721 5978501 Fax: +49 721 5978502 Registergericht: Amtsgericht Mannheim HRA 105339 Alleinige persönlich haftende Gesellschafterin: Quiyo Verwaltungs Limited Registered Office: 76 High Street, Newport Pagnell, Milton Keynes, MK 16 8AQ, Great Britain. Company Number: 5705018 Vertretungsberechtigter Geschäftsführer: Robert M. Münch Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz: DE 24939452. Inhaltlich Verantwortlicher gemäß § 10 Absatz 3 MDStV: Robert M. Münch (Anschrift wie oben) -BEGIN PGP SIGNATURE- Version: PGP Desktop 10.0.2 (Build 13) Charset: iso-8859-1 wsBVAwUBTMWpCHSQa/BbHGLwAQlrXAgAnsZxkz3V0Q0wqTT8oEV2U/xOAhxkK+f2 j/+RPzz9dddN8PWB/SM0fbRKZL1lHwl+H0OXksjIWRiLDruVMwscybS73W9a+9Lc L1CJZ+hSPKsDIPuK6XDxuxfz80q795dtdqcJq7eVrXuWpDx/mZPYiHYjPkaEEism TmQ1Kj8tT45cptJdp4n8P5knigdyaNXnAVy0+Lv3xXrdZA7h1kjkMGw059lV0cFp LhWjcY6cQj2niqT1FjXKe+diFjzJoABLPb12ZiUwQ/+6gZR/vgCjNOte+JSWp/Wt m0wk2MwmtmF9oQYEka255v5bHlgOpCx6UySyYQFS8ahSugdpMKgI/g== =ZS+i -END PGP SIGNATURE-
Re: [Dovecot] virtual plugin broken ? dovecot 2.0.6
On Mon, 2010-10-25 at 17:53 +0200, Robert Schetterer wrote: > after all i am confused what using better > > pop3_uidl_format = %08Xu%08Xv ( most compatible ) > or > pop3_uidl_format = %g ( better with virtual ) %g is always the best value, except with mbox because it doesn't have true GUIDs. Of course, if you change it now the pop3 clients will redownload all mails. > pop3_reuse_xuidl = ? what ist the most compatible/konservative setting > with maildir on a cluster filesystem This is useful only if you converted from another POP3 server to Dovecot. Keep it "no". > pop3_save_uidl = ? what ist the most compatible/konservative setting > with maildir on a cluster filesystem This can be useful if you're changing pop3_uidl_format setting. First set this to "yes", then make sure all users have logged in with POP3, and then it's safe to change pop3_uidl_format because the old UIDLs have been permanently saved to dovecot-uidlist file. > RealMails/* > RealMails/INBOX > RealMails/INBOX/* I don't think you need the INBOX lines above, since RealMails/* should match them already. > --sql > CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox, \ > CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \ This no longer works like this with v2.0. Change them to e.g.: AS namespace_1_inbox -> AS 'namespace/default/inbox' AS namespace_2_inbox -> AS 'namespace/virtual/inbox' Then give those same names to your namespaces: > namespace { namespace default { > hidden = no > inbox = yes > list = yes > location = > prefix = > separator = / > subscriptions = yes > type = private > } > namespace { namespace virtual { > hidden = yes > list = no > location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ > prefix = virtual/ > separator = / > subscriptions = no > type = private > }
Re: [Dovecot] problem with subscriptions=no and changed separator ?
On Wed, 2010-10-06 at 18:14 +0200, Lutz Preßler wrote: > Oct 6 18:06:26 host dovecot: auth: userdb(?): Username contains disallowed > character: 0x2f > Oct 6 18:06:26 host dovecot: imap(testuser): Error: Namespace > 'shared^user/box^': mkdir(/var/run/dovecot/user-not-found/user/box) failed: > Permission denied (euid=1000(user) egid=1000(user) missing +w perm: > /var/run/dovecot, euid is not dir owner) > Oct 6 18:06:26 host dovecot: imap(testuser): Warning: Subscriptions file > /home/testuser/Maildir/subscriptions: Ignoring invalid entry: shared^user^box Interesting. It tries to use "shared^user/box^" as the namespace prefix instead of "shared^user^box^" as it should. I still don't see why though, and can't reproduce it. Try what it logs with attached patch? diff -r d991b5c99397 src/lib-storage/index/shared/shared-storage.c --- a/src/lib-storage/index/shared/shared-storage.c Mon Oct 25 16:27:42 2010 +0100 +++ b/src/lib-storage/index/shared/shared-storage.c Mon Oct 25 17:01:29 2010 +0100 @@ -220,6 +220,7 @@ prefix = t_str_new(128); str_append(prefix, ns->prefix); var_expand(prefix, storage->ns_prefix_pattern, tab); + i_warning("ns_prefix_pattern=%s prefix=%s final=%s", storage->ns_prefix_pattern, ns->prefix, str_c(prefix)); *_ns = mail_namespace_find_prefix(user->namespaces, str_c(prefix)); if (*_ns != NULL) {
[Dovecot] virtual plugin broken ? dovecot 2.0.6
Hi Timo, looks like virtual plugin is broken now with my setup dovecot 2.0.6 cant say to which version it stopped working ( didnt tested it trough all ) but has worked i see nothing special in log why it stopped working it should show unseen mail i.e in folder Junk too with pop3 clients, but only shows new inbox mails after all i am confused what using better pop3_uidl_format = %08Xu%08Xv ( most compatible ) or pop3_uidl_format = %g ( better with virtual ) pop3_reuse_xuidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem pop3_save_uidl = ? what ist the most compatible/konservative setting with maildir on a cluster filesystem --log Oct 25 17:24:44 mail02 dovecot: pop3: Debug: Added userdb setting: plugin/namespace_2_inbox=yes /etc/dovecot/.INBOX/dovecot-virtual RealMails/* RealMails/INBOX RealMails/INBOX/* -RealMails/Trash -RealMails/Trash/* -RealMails/Sent -RealMails/Sent/* -RealMails/Templates -RealMails/Templates/* -RealMails/Drafts -RealMails/Drafts/* -RealMails/Archives -RealMails/Archives/* unseen --sql CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS namespace_1_inbox, \ CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS namespace_2_inbox, \ ---dovecot -n # 2.0.6 (aaca506ea33b): /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-25-server x86_64 Ubuntu 10.04.1 LTS auth_debug = yes auth_debug_passwords = yes auth_master_user_separator = * auth_mechanisms = plain login auth_socket_path = /var/run/dovecot/auth-userdb auth_verbose = yes auth_verbose_passwords = plain auth_worker_max_count = 300 dict { acl = mysql:/etc/dovecot/dovecot-dict-acl-sql.conf.ext expire = mysql:/etc/dovecot/dovecot-dict-expire-sql.conf.ext quotadict = mysql:/etc/dovecot/dovecot-dict-quota-sql.conf.ext } disable_plaintext_auth = no first_valid_gid = 1001 first_valid_uid = 1001 hostname = last_valid_gid = 1001 last_valid_uid = 1001 listen = * login_greeting = imap, pop ready mail_access_groups = vmail mail_debug = yes mail_fsync = always mail_gid = 1001 mail_location = maildir:~/ mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = expire virtual fts fts_squat mail_log autocreate notify acl mail_privileged_group = vmail mail_uid = 1001 managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mmap_disable = yes namespace { hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace { hidden = yes list = no location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++ prefix = virtual/ separator = / subscriptions = no type = private } namespace { hidden = yes list = no location = prefix = RealMails/ separator = / type = private } namespace { inbox = no list = children location = maildir:/usr/local/virtual/%%d/%%u/:INDEX=~/shared/%%d/%%u/ prefix = shared/%%u/ separator = / subscriptions = no type = shared } passdb { args = /etc/dovecot/dovecot-sql-master.conf.ext driver = sql master = yes pass = yes } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { acl = vfile acl_shared_dict = proxy::acl autocreate = Trash autocreate2 = Junk autocreate3 = Sent autocreate4 = Drafts autocreate5 = Templates autosubscribe = Trash autosubscribe2 = Junk autosubscribe3 = Sent autosubscribe4 = Drafts autosubscribe5 = Templates expire = Trash expire2 = Trash/* expire3 = Junk expire4 = Junk/* expire_dict = proxy::expire fts = squat home = /usr/local/virtual/%d/%u mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size mail_log_group_events = yes quota = dict:::proxy::quotadict quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = /usr/local/virtual/%d/%u/dovecot.sieve sieve_before = /etc/dovecot/sieve/global.sieve sieve_dir = /usr/local/virtual/%d/%u/sieve sieve_global_dir = /etc/dovecot/sieve/ sieve_global_path = /etc/dovecot/sieve/global.sieve } postmaster_address = hostmas...@mail02.mailspooler.com protocols = imap pop3 lmtp sieve sendmail_path = /usr/lib/sendmail service auth-worker { user = root } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } } service dict { extra_groups = vmail unix_listener dict { group = vmail mode = 0660 } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 0 service_count = 1 } service imap-postlogin { executable = script-login /usr/local/bin/postlogin_imap.sh user = root } service imap { executabl
Re: [Dovecot] shared folders general question
On Fri, 2010-10-22 at 15:42 +0200, Johan Hendriks wrote: > I have one more question. > Is it possible if you share the inbox, that all subfolders will be > visable to. > I can not see the subfolders of the shared inbox. > > This is not very useful if the user which shares his inbox, has sieve > rules active that stores e-mail directly into subfolders. You have to explicitly specify all the mailboxes you want to share. There is no ACL inheritance.
Re: [Dovecot] 2.0.5 Error: Timeout waiting for handshake from auth server.
On Fri, 2010-10-22 at 17:49 +0300, Veiko Kukk wrote: > Oct 22 17:45:24 config: Warning: service auth { client_limit=4096 } is > lower than required under max. load (4896) > Oct 22 17:45:24 master: Error: service(auth): child 15857 killed with > signal 11 (core dumps disabled) Well, this is the reason. It crashes. gdb backtrace would be helpful in solving this. You should be able to get a core dump by: 1. Set: service auth { user = root } 2. Run "ulimit -c unlimited" before starting Dovecot. If it still says "core dumps disabled" in the log file, it means that your init script disabled them again. Then you could e.g. just run "dovecot" directly without init script. You can then get gdb backtrace with: gdb /usr/local/libexec/dovecot/auth /var/run/dovecot/core bt full If there are any problems, http://dovecot.org/bugreport.html may be helpful.
Re: [Dovecot] Command died with signal 11: & quot; /usr/libexec/dovecot/dovecot-lda& quot;
On Mon, 2010-10-25 at 10:25 +, Xiiph wrote: > I updated the server to 2.0.6 today, which I noticed already contained the > above > mentioned patch. Unfortunatenly, it did not solve the problem :( > > Is there any workaround I could apply in the mean time, in order to prevent a > bounce? Run lda.sh instead: #!/bin/sh ulimit -c cd $HOME /usr/local/libexec/dovecot/dovecot-lda $@ code=$? if [ $code = 134 ]; then # SIGABRT exit 75 # EX_TEMPFAIL fi exit $code Hopefully with the ulimit -c you'll also get a core dump? gdb backtrace from that would be very helpful then.
Re: [Dovecot] doveadm-expunge not expunging when ran from cron
On Fri, 2010-10-22 at 08:41 +0200, LEVAI Daniel wrote: > On Tue, Oct 19, 2010 at 15:49:46 +0200, LEVAI Daniel wrote: > > On Tue, Oct 19, 2010 at 13:46:17 +0100, Timo Sirainen wrote: > > [...] > > > Weird. Does it log with attached patch that commit was successful? > > [...] > > > > THanks, I'm testing this now. > Yes, it shows that the commit was successful, but the mails remain in > the mailbox. Here is how it progresses in three days: Well, I don't know why it would make a difference when running from cron, but I guess this'll fix it: http://hg.dovecot.org/dovecot-2.0/rev/d991b5c99397
Re: [Dovecot] v2.0.6 released
On Fri, 2010-10-22 at 06:02 -0500, Stan Hoeppner wrote: > Timo Sirainen put forth on 10/21/2010 4:10 PM: > > On 21.10.2010, at 19.14, Timo Sirainen wrote: > > > >>+ mdbox: Added mdbox_preallocate_space setting (Linux+ext3/XFS only) > > > > ext4 of course, not ext3. Also requires Linux kernel v2.6.23 or newer and > > glibc 2.10 or newer. > > Is this available for mbox or just mdbox? If mdbox only, why not mbox also? It's only for mdbox because they have a known upper size (mdbox_rotate_size). With mbox the only possibility would be to let admin specify how large the files should be preallocated to. And how would the admin know? And should different mailboxes have different preallocated sizes? For example "Drafts" mailbox is unlikely to ever grow very large. And in any case, if you care about performance mbox isn't really the best choice.
Re: [Dovecot] delivering mail to public mbox with permission 660?
On Fri, 2010-10-22 at 17:14 -0700, RParr wrote: > >> My understanding, from the Dovecot wiki and other docs/postings is that > >> the folders should be 660 given the /var/mail permssions of rwxrwsrwt > >> and ~/mail permssions of rwxrws--- > >> > > Yep. Looks like it's broken in v1.2 for mbox. It works in v2.0 though. I > > could maybe write a patch for v1.2, but you'd need to compile Dovecot > > anyway. > > > > A patch would be much appreciated. http://hg.dovecot.org/dovecot-1.2/rev/45769d0cc39c
Re: [Dovecot] Problems converting to maildir with dsync in 2.0.6
On Thu, 2010-10-21 at 20:30 -0500, Nicholas Riley wrote: > If I use LAYOUT=fs (as I'd prefer) I get an error because I have a > mailbox called "subscriptions", and none of my messages convert. Is > there a way to get dovecot to put its own metadata in dotfiles instead? > (I guess I can rename my mailbox too :-) Besides the :SUBSCRIPTIONS=, you could also have put all mailboxes under another directory, like with ":MAILBOXDIR=mailboxes" the subscriptions mailbox would be in "mailboxes/subscriptions". > % dsync mirror mbox:~/Mail > dsync(nriley): Error: read() failed with subscription file > /home/nriley/Maildir/subscriptions: Is a directory > dsync(nriley): Error: Can't update subscription +/INBOX: Internal error > occurred. Refer to server log for more information. [2010-10-21 20:17:55] > [...] > > Also, what "server log" is it referring to above? Well, it means the error message just above it. Maybe this error message could be changed when running standalone programs.. > dsync(nriley): Error: Maildir: 6ef533cd4cdb1fd454b0226bfc851bb3:2, > changed UID 1846529 -> 1846531 > dsync(nriley): Panic: file maildir-save.c: line 892 > (maildir_save_sync_uidlist): assertion failed: (ret > 0) Fixed: http://hg.dovecot.org/dovecot-2.0/rev/c8eb81e1b5d6
Re: [Dovecot] Manual login to SSL-protected port?
Eduardo M KALINOWSKI wrote: On Seg, 25 Out 2010, Ron Leach wrote: We use only SSL-protected ports. Is it possible to manually login to dovecot when dovecot uses SSL-protected imap ports? Yes, just use openssl: openssl s_client -connect your.host.org:993 This is described in the Wiki: http://wiki2.dovecot.org/TestInstallation Tst... And it's such a good page. Oh dear. Thanks, Eduardo. Sorry, everyone, for not having seen it. Ron
Re: [Dovecot] Manual login to SSL-protected port?
On Seg, 25 Out 2010, Ron Leach wrote: We use only SSL-protected ports. Is it possible to manually login to dovecot when dovecot uses SSL-protected imap ports? Yes, just use openssl: openssl s_client -connect your.host.org:993 This is described in the Wiki: http://wiki2.dovecot.org/TestInstallation -- Acting is an art which consists of keeping the audience from coughing. Eduardo M KALINOWSKI edua...@kalinowski.com.br
[Dovecot] Manual login to SSL-protected port?
List, good afternoon, Dovecot and mail clients work fine. Several recent postings mention trying telnet to check this or that and, since I was considering using a spreadsheet plug-in to analyse some mail statistics by directly connecting to the server, I thought I'd try to test what the command sequence was that I might be able to use, and what message data was available (headers etc). We use only SSL-protected ports. Is it possible to manually login to dovecot when dovecot uses SSL-protected imap ports? I've tried telnet and the telnet localhost 993 login user pass resulted in connection closure, as I (think I) would expect because telnet doesn't use SSL (does it?). I checked man telnet and it described authentication options but when I tried telnet localhost 993 auth enable ? to check what auth protocols it allows, the connection closed. I tried SSH but it just 'hung' - presumably SSH expects an SSH server at the other end, not dovecot. Is it possible to manually login to a dovecot SSL imap port? regards, Ron
Re: [Dovecot] merge mdboxes
On Sat, 2010-10-23 at 16:27 +0200, Tobias Daucher wrote: > Hi there, > after migration we have a very big problem... > there are two mailboxes in /var/mail/username/mailboxes/ > /var/mail/username/mailboxes/inbox > /var/mail/username/mailboxes/inbox2 So they are in the same mdbox storage, just in different mailboxes? > By the way - logging in via imap with thunderbird und move them on > that way is not my favorite solution cause i have to do this for > hundreds of users... IMAP would still be the simplest solution. You could do something like: printf "1 select inbox2\n2 copy 1:* INBOX\n3 delete inbox2\n" | /usr/local/libexec/dovecot/imap -u username
Re: [Dovecot] Public Folders for spam/nospam -> don't get it
On Sun, 2010-10-24 at 21:23 +0200, Denny Schierz wrote: > namespace { > prefix = INBOX/ .. > namespace { > hidden = no > inbox = no > list = children > location = maildir:/home/vmail/public:LAYOUT=fs > prefix = public/ > separator = / > subscriptions = no > type = public > } This configuration looks correct, but if clients are using INBOX/ as namespace path, then the public/ isn't visible. > # cat /home/vmail/public/dovecot-acl > anyone lrp, also in subfolders spam/nospam Looks correct to me. > I tested several configurations, but nothing works. Sometimes I can see > the folders, but can't subscribe them (invalid/unknown namespace), > sometime I don't see the folders ... I think this is more likely a client problem. You could verify by talking IMAP protocol directly: telnet localhost 143 a login user pass b list "" * c subscribe public/spam d lsub "" * If all of those return correct info, it's a client problem. One thing you could do is to set the public namespace's prefix to INBOX/public/ although that's kind of ugly too. If the IMAP commands are also returning wrong info, set mail_debug=yes and show the logs.
Re: [Dovecot] ldap whithout base
Well, I get a valid basedn config 2010/10/25 Timo Sirainen : > On Mon, 2010-10-25 at 13:59 +0200, Antonio Perez-Aranda wrote: >> It's possible to configure a ldap passdb and userdb without base? > > I guess you could leave it empty. Dovecot doesn't add any restrictions > here as far as I know. It should work the same way as with any other > OpenLDAP client. > >> Now, it's running but it can't authenticate users and it sent a >> message like that after . login >> >> . NO [UNAVAILABLE] Temporary authentication failure. > > There should be something in the logs about this. > > >
[Dovecot] 2.0.3 Bug - hanging issue
We had this this morning: Oct 25 12:36:34 msslat dovecot: imap(keh2): Error: user keh2: Initialization failed: Namespace '#mbox/': mkdir(/stage/mail/imap1/keh2/mail) failed: Permission denied (euid=2291(keh2) egid=101(luci) missing +w perm: /stage/mail/imap1, euid is not dir owner) Oct 25 12:36:34 msslat dovecot: imap(keh2): Error: Invalid user settings. Refer to server log for more information. Oct 25 12:36:35 msslat dovecot: imap-login: Login: user=, method=PLAIN, rip=128.40.73.160, lip=128.40.73.13, mpid=26736 Oct 25 12:36:35 msslat dovecot: imap(keh2): Error: user keh2: Initialization failed: Namespace '#mbox/': mkdir(/stage/mail/imap1/keh2/mail) failed: Permission denied (euid=2291(keh2) egid=101(luci) missing +w perm: /stage/mail/imap1, euid is not dir owner) Oct 25 12:36:35 msslat dovecot: imap(keh2): Error: Invalid user settings. Refer to server log for more information. Because the parent directory was rwxr-xr-x root.root The problem is that for some reason dovecot then wedged and a lot of other stuff piled up behind it, causing people to complain their mail wasn't coming through. Load average climbed to over 100. Creating the user directories freed things up...
Re: [Dovecot] ldap whithout base
On Mon, 2010-10-25 at 13:59 +0200, Antonio Perez-Aranda wrote: > It's possible to configure a ldap passdb and userdb without base? I guess you could leave it empty. Dovecot doesn't add any restrictions here as far as I know. It should work the same way as with any other OpenLDAP client. > Now, it's running but it can't authenticate users and it sent a > message like that after . login > > . NO [UNAVAILABLE] Temporary authentication failure. There should be something in the logs about this.
[Dovecot] ldap whithout base
It's possible to configure a ldap passdb and userdb without base? Now, it's running but it can't authenticate users and it sent a message like that after . login . NO [UNAVAILABLE] Temporary authentication failure.
Re: [Dovecot] Command died with signal 11: &quo t; /usr/libexec/dovecot/dovecot-lda"
Timo Sirainen iki.fi> writes: > > I think that simply causes two dovecot-ldas to be executed at the same > time. And that probably causes a race condition that causes the crash. > Did you already try patched with > http://hg.dovecot.org/dovecot-2.0/raw-rev/e2f9baa436f2 ? > > I updated the server to 2.0.6 today, which I noticed already contained the above mentioned patch. Unfortunatenly, it did not solve the problem :( Is there any workaround I could apply in the mean time, in order to prevent a bounce? Best regards /X
Re: [Dovecot] Segfault in libdovecot-sieve
Hi I've upgraded to 2.0.6 and set the home directory. The segfaults are gone :) Thanks, Andre On Thu, 2010-10-21 at 22:13 +0100, Timo Sirainen wrote: > On 21.10.2010, at 23.14, Andre wrote: > > > This shows up in the mail error when the sieve error happens. It seems > > the sieve error is a side-effect of something else: > > > > Oct 21 17:58:11 box6 dovecot: lmtp(10424, > > catia.comercial=industriacarvalho.com...@lmtp1.prv.f1.k8.com.br): Error: > > lstat((null)) failed: Bad address > > This reminds me of a problem with missing home directory. That crash is fixed > in v2.0.6, but you should have a home directory set so that reject/vacation > messages won't be duplicated. http://wiki2.dovecot.org/VirtualUsers/Home >
Re: [Dovecot] Maildir filename extensions S= and W=
mail...@securitylabs.it wrote the following on 25/10/2010 15:27: On 25/10/2010 10:00, Ralf Hildebrandt wrote: I'd like to add S= and W= to the filenames in my Maildir storage for newly delivered mails. But I cannot find where I can make Dovecot's LDA add those. Anybody? http://wiki2.dovecot.org/MailboxFormat/Maildir says: A maildir filename with those fields would look something like: 1035478339.27041_118.foo.org,S=1000,W=1030:2,S which is exactly what I want, but it doesn't tell me how! Hello, I think it's by default. My delivery command in exim is: command = /usr/local/libexec/dovecot/deliver -d $local_p...@$domain -f $sender_address -a $original_local_p...@$original_domain and size and vsize are present. Hello, it should be like that by default. On a newly installed Dovecot 2 (LDA) with Postfix 2.7 and Maildir it reads on my box: 1287917936.M244862P10492.foo.net,S=11693,W=11922:2,Sa
Re: [Dovecot] Maildir filename extensions S= and W=
* mail...@securitylabs.it : > Hello, I think it's by default. My delivery command in exim is: > > command = /usr/local/libexec/dovecot/deliver -d $local_p...@$domain > -f $sender_address -a $original_local_p...@$original_domain > > and size and vsize are present. Whoops :) -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de
Re: [Dovecot] Maildir filename extensions S= and W=
On 25/10/2010 10:00, Ralf Hildebrandt wrote: I'd like to add S= and W= to the filenames in my Maildir storage for newly delivered mails. But I cannot find where I can make Dovecot's LDA add those. Anybody? http://wiki2.dovecot.org/MailboxFormat/Maildir says: A maildir filename with those fields would look something like: 1035478339.27041_118.foo.org,S=1000,W=1030:2,S which is exactly what I want, but it doesn't tell me how! Hello, I think it's by default. My delivery command in exim is: command = /usr/local/libexec/dovecot/deliver -d $local_p...@$domain -f $sender_address -a $original_local_p...@$original_domain and size and vsize are present.
[Dovecot] Maildir filename extensions S= and W=
I'd like to add S= and W= to the filenames in my Maildir storage for newly delivered mails. But I cannot find where I can make Dovecot's LDA add those. Anybody? http://wiki2.dovecot.org/MailboxFormat/Maildir says: A maildir filename with those fields would look something like: 1035478339.27041_118.foo.org,S=1000,W=1030:2,S which is exactly what I want, but it doesn't tell me how! -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de