Re: [Dovecot] questions about compiling Sieve plugin

2009-04-29 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 28 Apr 2009, MercuryShadow wrote:


I figured that, as is the case with many Debian packages, the libraries
needed to compile would be included in a dovecot-dev package, but I
checked and there is no such package in the Debian repos.


Get Debian source packages of Dovecot,

cd /tmp
sudo apt-get source dovecot
sudo apt-get build-dep dovecot

cd dir

then:
dpkg-buildpackage -rfakeroot

This command does a lot more, but you will have the compiled Dovecot and 
anything else in the dir.


Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSff6mnWSIuGy1ktrAQKB9wgAiFUIDiUhOBgsq6NwktbCokeUSx+o7oah
lO2Tfc7xbDNHzEynmDoc2AwRbsiiNelKLLZgihemlItQtKHJT2fYaUAd7RM1plQ8
c6wbseJ2oy3Gfls9sBQNNQt0dY1Eo5vjGn2J9e2Mx3CUO5VkJA+WWFJT7sVTNZXm
4WUJ8BaoLhwwYb7tRgUu0KyTOIAId6dk2hwSjeI4j6Amr89pdafODmgxULoE+prJ
jk5WWKVVh3lmUNSgpmJOiXpD3DqOIwgP4gWj8RVy3Px5tFCwBma8Rfeh0/UbS3B4
kgSs6ATBTDfaAbgVgxy/rLJvLlFpqeVpf8YearkH8KNEABCVjlnPFg==
=DcKH
-END PGP SIGNATURE-


[Dovecot] Quota/Dict Postgres Trigger

2009-04-29 Thread Warren Volz
I posted the trigger for v1.1 versions of Dovecot on the Wiki (http://wiki.dovecot.org/Quota/Dict 
) and while I understand the comment posted about two process  
inserting at the same time, I'm not sure I understand how this is  
fixed in v1.2 other than via the revised trigger in the Wiki. Does  
someone have a known working trigger that will handle a double insert  
correctly?


Also, out of curiosity why wasn't the code for dict written to do an  
update first and then an insert if this failed? That would eliminate  
the need for this trigger.


Thanks.

-Warren


Re: [Dovecot] Quota/Dict Postgres Trigger

2009-04-29 Thread Timo Sirainen

On Apr 29, 2009, at 3:25 AM, Warren Volz wrote:

I posted the trigger for v1.1 versions of Dovecot on the Wiki (http://wiki.dovecot.org/Quota/Dict 
) and while I understand the comment posted about two process  
inserting at the same time, I'm not sure I understand how this is  
fixed in v1.2 other than via the revised trigger in the Wiki. Does  
someone have a known working trigger that will handle a double  
insert correctly?


I don't think it's possible until PostgreSQL supports INSERT .. ON  
DUPLICATE KEY UPDATE .. like MySQL. Kind of annoying, I like  
PostgreSQL but this feature is really missing from it.


Also, out of curiosity why wasn't the code for dict written to do an  
update first and then an insert if this failed? That would eliminate  
the need for this trigger.


There would still be a race condition. It's still possible that two  
processes do the steps at the exact same time and still finally find  
out that one of the INSERTs fail because they did everything at the  
same time. You could do similar EXCEPTION WHEN unique_violation  
THEN .. check with v1.1 too, although that still breaks in the very  
rare (or practically non-existent) condition if you happen to delete  
the row while another process is inserting. Or something like that.


Anyway the v1.0/v1.1 code was mainly written for MySQL and then I  
realized PostgreSQL requires some more kludgeing to get it working  
properly in all situations and added that code to v1.2.


Re: [Dovecot] Quota/Dict Postgres Trigger

2009-04-29 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Apr 29, 2009 at 03:38:27AM -0400, Timo Sirainen wrote:
 On Apr 29, 2009, at 3:25 AM, Warren Volz wrote:

 I posted the trigger for v1.1 versions of Dovecot on the Wiki 
 (http://wiki.dovecot.org/Quota/Dict) and while I understand the comment 
 posted about two process inserting at the same time, I'm not sure I 
 understand how this is fixed in v1.2 other than via the revised trigger in 
 the Wiki. Does someone have a known working trigger that will handle a 
 double insert correctly?

 I don't think it's possible until PostgreSQL supports INSERT .. ON 
 DUPLICATE KEY UPDATE .. like MySQL. Kind of annoying, I like PostgreSQL but 
 this feature is really missing from it.

FWIW, this seems to be the canonical way of dealing with that in PostgreSQL:

  
http://www.postgresql.org/docs/current/static/plpgsql-control-structures.html#PLPGSQL-UPSERT-EXAMPLE

 Also, out of curiosity why wasn't the code for dict written to do an 
 update first and then an insert if this failed? That would eliminate the 
 need for this trigger.

 There would still be a race condition. It's still possible that two 
 processes do the steps at the exact same time and still finally find out 
 that one of the INSERTs fail because they did everything at the same time. 
[...]

Right. The trick seems to be to wrap the thing in one plpgsql function
(which wraps the try-to-update-then-insert into one transaction), so the
client doesn't see anything of that.

The race condition is taken care of via the implicit (sub-) transaction
in the BEGIN...EXCEPTION block, AFAIU.

Regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJ+B4FBcgs9XrR2kYRAlCrAJ9lAa/ZIvav/I66MhMRQzRzuTdI3wCfeaNq
KFa8JvnNFQIo6OxfTDCo+2c=
=U4BP
-END PGP SIGNATURE-


[Dovecot] How do I get my mail from fetchmail into dovecot?

2009-04-29 Thread Michael Steinbeck-Reeves
I have dovecot (with squirrel mail etc.) running without any problems
but cannot understand how to get e-mail from a pop server into dovecot.
I have fetchmail configured to pick up the mail from the pop3 server but
don't understand how to get it from there into my dovecot mbox
structure.

New to mail servers!

Thanks,

Michael.



Re: [Dovecot] How do I get my mail from fetchmail into dovecot?

2009-04-29 Thread Odhiambo ワシントン
On Wed, Apr 29, 2009 at 4:46 PM, Michael Steinbeck-Reeves 
mich...@steinbeck-reeves.uk.com wrote:

 I have dovecot (with squirrel mail etc.) running without any problems
 but cannot understand how to get e-mail from a pop server into dovecot.
 I have fetchmail configured to pick up the mail from the pop3 server but
 don't understand how to get it from there into my dovecot mbox


Where does fetchmail put the e-mails?
Point dovecot there with mail_location =... then use your favorite MuA to
access the e-mail.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Clothes make the man.  Naked people have little or no influence on
society.
  -- Mark Twain


Re: [Dovecot] questions about compiling Sieve plugin

2009-04-29 Thread MercuryShadow

The build-dep step failed:

mail:/tmp# apt-get build-dep dovecot
Reading package lists... Done
Building dependency tree... Done
E: Build-dependencies for dovecot could not be satisfied.


Steffen Kaiser-9 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Tue, 28 Apr 2009, MercuryShadow wrote:
 
 I figured that, as is the case with many Debian packages, the libraries
 needed to compile would be included in a dovecot-dev package, but I
 checked and there is no such package in the Debian repos.
 
 Get Debian source packages of Dovecot,
 
 cd /tmp
 sudo apt-get source dovecot
 sudo apt-get build-dep dovecot
 
 cd dir
 
 then:
 dpkg-buildpackage -rfakeroot
 
 This command does a lot more, but you will have the compiled Dovecot and 
 anything else in the dir.
 
 Bye,
 
 - -- 
 Steffen Kaiser
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 
 iQEVAwUBSff6mnWSIuGy1ktrAQKB9wgAiFUIDiUhOBgsq6NwktbCokeUSx+o7oah
 lO2Tfc7xbDNHzEynmDoc2AwRbsiiNelKLLZgihemlItQtKHJT2fYaUAd7RM1plQ8
 c6wbseJ2oy3Gfls9sBQNNQt0dY1Eo5vjGn2J9e2Mx3CUO5VkJA+WWFJT7sVTNZXm
 4WUJ8BaoLhwwYb7tRgUu0KyTOIAId6dk2hwSjeI4j6Amr89pdafODmgxULoE+prJ
 jk5WWKVVh3lmUNSgpmJOiXpD3DqOIwgP4gWj8RVy3Px5tFCwBma8Rfeh0/UbS3B4
 kgSs6ATBTDfaAbgVgxy/rLJvLlFpqeVpf8YearkH8KNEABCVjlnPFg==
 =DcKH
 -END PGP SIGNATURE-
 
 

-- 
View this message in context: 
http://www.nabble.com/questions-about-compiling-Sieve-plugin-tp23285989p23295880.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] questions about compiling Sieve plugin

2009-04-29 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 29 Apr 2009, MercuryShadow wrote:


The build-dep step failed:

mail:/tmp# apt-get build-dep dovecot
Reading package lists... Done
Building dependency tree... Done
E: Build-dependencies for dovecot could not be satisfied.


Do you fetch the source packages from backports or something?
Or use packages of another Debian version?


cd dir
dpkg-buildpackage -rfakeroot


will tell you what dependencies are missing. Maybe you can handle them 
manually.


then:

debian/rules build

Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSfhli3WSIuGy1ktrAQK3/wgAvBW5GljZPB6j0C+pSQ3iUs7eWHcEDGYA
PRbKT2BgmBx21rJcIjt3/7WIOiyG1SGQLJujqlx8de5P1peQp5piHzRgkNgzNdsA
3qWLg+gto+3G+zj9zuC+o1fbMuwssCQ2fXOvnf2emeFC2/UZ3653VnRJjJgaKdXw
Oe+ZF2Y65eYch2JnfUFhGAvNMt05bGSaMjpvKJE83h0xvdwpAsyVKRlckF+7Vsq6
4cY7Muu9Nt3daIW8mZG0OUkSNwef228QSwEHFSoWUDpmOj5uFQq1d6eoruJTp47c
9OMtMjS88vImYoCE3MsQynZupSnnOsCR7JA4I0AgVWI9fpk9LTBvlQ==
=b7T+
-END PGP SIGNATURE-


Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Timo Sirainen
On Mon, 2009-04-27 at 18:21 +0200, Matthijs Kooijman wrote:
# This would write rawlogs into ~/dovecot.rawlog/ directory:
#   mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
 +  # Note that this writes into the homedir of the logged in user and will 
 only
 +  # work if the ~/dovecot.rawlog directory already exists.
 +  # doc/wiki/Debugging/Rawlog

I'm trying to shorten the dovecot-example.conf nowadays, which can't
really be done by adding more lines :) But yes, the wiki link is
definitely useful. I also changed the first line to be a bit better:
http://hg.dovecot.org/dovecot-1.2/rev/37c0111961f5


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Virtual plugin - [SERVERBUG] BUG: Unknown internal error

2009-04-29 Thread Timo Sirainen
On Mon, 2009-04-27 at 20:05 -0700, Brandon Lamb wrote:
 /etc/dovecot/virtual/Inbox2/dovecot-virtual
 *
 -Trash
 -Trash/*
 -Deleted*
 -Junk*
   inthread x-references2 x-mailbox INBOX

There's no mo x-references2. It's call refs nowadays.

 Using php to connect o {host}virtual/Inbox2 gives me [SERVERBUG] BUG:
 Unknown internal error. If I connect to virtual/Allmail which has
 all instead of the inthread line it works.

Fixed: http://hg.dovecot.org/dovecot-1.2/rev/1d21a3d0a295



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Virtual plugin, timeout leaks

2009-04-29 Thread Timo Sirainen
On Mon, 2009-04-27 at 18:21 -0700, Brandon Lamb wrote:
 Getting these
 Warning: imap brand...@pacwebdev.com: Timeout leak: 0x461bd0

Fixed: http://hg.dovecot.org/dovecot-1.2/rev/47fa92207042



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Slow connections with POP3 service

2009-04-29 Thread Timo Sirainen
On Tue, 2009-04-28 at 00:12 -0700, V S Rao wrote:
 Even a telnet to localhost on port 110 is very very slow. 

Which part of it exactly is slow? For example in a typical pop3
connection you have:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user xyz
+OK
pass asd
+OK Logged in.

Like is it hanging after Trying, Connected, pass, .. ?



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot v2.0 hg tree

2009-04-29 Thread Timo Sirainen
On Fri, 2009-04-24 at 07:28 -0400, Jonathan Siegle wrote:
   Is there any reason to follow the 1.3 tree?

Only if you want to test multi-dbox and v2.0 tree is broken. I'm not
planning on doing any more updates to 1.3 tree.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Quota: ldap dict

2009-04-29 Thread Timo Sirainen
On Fri, 2009-04-24 at 08:46 -0300, Marcio Merlone wrote:
 Hi,
 
 I have set a dovecot-1:1.0.10-1ubuntu5.1 server on top of a Ubuntu 8.04 
 LTS box and everything goes fine. All my users are on a LDAP database 
 integrated via nss_ldap, so from the dovecot point of view they are all 
 local system users. Now I want to set maildir quota for everybody, and 
 was wondering if I could store quota limits per user on LDAP.

Yes, as long as you're using userdb ldap instead of doing it via NSS.

 As I read on http://wiki.dovecot.org/Quota/Dict, there seem to be no way 
 to do that, am I right? 

Dict quota is about where to store the actual current quota usage. You
can't store it in LDAP, but you can store the limits in LDAP.

 It is ok for me to manage the current usage on 
 Maildir++, but would like to retrieve the quota information from the 
 LDAP server.

Yeah.

 What do you guys recommend? Thanks in advance for any hint or rtfm.

See the LDAP section in http://wiki.dovecot.org/Quota/1.0


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot v2.0 hg tree

2009-04-29 Thread Stewart Dean

I'll break down and ask the stupid question...
Does this mean there will not be a V1.3 release?

I'm currently at 1.1.8 and using mbox.  Any comments about the 
advisability of going to 1.1.14?

Better for going to v1.2?  What does the crystal ball show for 1.2.0?

As always thanks for all the wizardry

Timo Sirainen wrote:

http://hg.dovecot.org/dovecot-2.0/

I just did the initial commit for master process rewrite, which marks
the beginning of Dovecot v2.0. Several things are still missing/broken,
but at least I was just able to successfully log in using imap :)

I left v1.3 hg tree there for now, but once v2.0 tree is fully usable
I'll just delete the v1.3 tree.

Note the new dovecot-master-example.conf, which you'll need to !include
to get the services running. Some settings have also been removed
because they're now more generically set in the dovecot-master.conf. I'm
thinking that perhaps the config process could still be run in
compatibility mode where it's able to use an existing v1.x dovecot.conf
and translate the old settings to new settings.

  


--
 Once upon a time, the Internet was a friendly, 
neighbors-helping-neighbors small town, and no one locked their doors. 
Now it's like an apartment in Bed-Stuy: you need three heavy duty 
pick-proof locks, one of those braces that goes from the lock to the 
floor, and bars on the windows  Stewart Dean, Unix System Admin, 
Bard College, New York 12504 sd...@bard.edu voice: 845-758-7475, fax: 
845-758-7035


Re: [Dovecot] 1 Dovecot proxy to 2 real IMAP servers

2009-04-29 Thread Timo Sirainen
On Fri, 2009-04-24 at 12:40 +0400, Proskurin Kirill wrote:
 Hello all.
 
 I have 2 Dovecot IMAP servers with different mailboxes. What serves 
 different email domains.
 
 I want to add one Dovecot Proxy server and make him understand based on 
 user domain - were it need to transfer a connection.

Where would you keep the domain - IP mapping? Dovecot needs that
somewhere.

 I use LDAP auth based on mail attribute.

Then the best location for the proxy host settings would be in LDAP, but
you might need to modify your schema.

 P.S. Proxy documentation at dovecot.org not help at all and seems to not 
 complited. :-(

With SQL auth it should be easy.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot v2.0 hg tree

2009-04-29 Thread Timo Sirainen
On Wed, 2009-04-29 at 14:01 -0400, Stewart Dean wrote:
 I'll break down and ask the stupid question...
 Does this mean there will not be a V1.3 release?

Yes. v2.0 will come after v1.2.

 I'm currently at 1.1.8 and using mbox.  Any comments about the 
 advisability of going to 1.1.14?

Better than 1.1.8 :)

 Better for going to v1.2?  What does the crystal ball show for 1.2.0?

I've been a bit busy developing v2.0 recently and haven't been reading
all that much of this mailing list. Once I've done with all the bug
reports I'll release v1.2.rc4 and hopefully there won't be many left
after that.

Although I don't think the new features have had all that many bug
reports anymore recently, maybe I should just set some date to v1.2.0
release. Like maybe sometimes in May.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Virtual plugin - [SERVERBUG] BUG: Unknown internal error

2009-04-29 Thread Robert Schetterer
Timo Sirainen schrieb:
 On Mon, 2009-04-27 at 20:05 -0700, Brandon Lamb wrote:
 /etc/dovecot/virtual/Inbox2/dovecot-virtual
 *
 -Trash
 -Trash/*
 -Deleted*
 -Junk*
   inthread x-references2 x-mailbox INBOX
 
 There's no mo x-references2. It's call refs nowadays.
 
 Using php to connect o {host}virtual/Inbox2 gives me [SERVERBUG] BUG:
 Unknown internal error. If I connect to virtual/Allmail which has
 all instead of the inthread line it works.
 
 Fixed: http://hg.dovecot.org/dovecot-1.2/rev/1d21a3d0a295
 
Hm what about my post loosing namespace with virtual plugin setups and
shared namespace with thunderbird, any idea?

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Incorrect listing of shared mailbox names

2009-04-29 Thread Timo Sirainen
On Tue, 2009-04-21 at 08:21 +0200, Markus Werner wrote:
 The first listing of User/% also lists the first folder of each user,
 which has been polled by STATUS before. This seems to occur one time
 (after the login) only.

Fixed: http://hg.dovecot.org/dovecot-1.2/rev/739c4e372140

Hopefully that's the final bug in there. :)



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Timo Sirainen
On Wed, 2009-04-29 at 20:22 +0200, Robert Schetterer wrote:
 Hi Timo, as rawlog does not longer work here since
 update to dove 1.2 latest it might be better
 to have more debug with rawlog, cause i cant found anything in the logs
 why it stopped working

There is always only one reason: dovecot.rawlog directory doesn't exist
in user's home directory. You could set mail_debug=yes and Dovecot logs
the home directory. Make sure it's correct.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2 plugin virtual and shared namespace with thunderbird

2009-04-29 Thread Timo Sirainen
On Sun, 2009-04-26 at 17:49 +0200, Robert Schetterer wrote:
 using latest dovecot 1.2 and latest thunderbird
 i noticed if using virtual plugin
 like here with mysql
 http://wiki.dovecot.org/Plugins/Virtual
 everthing works like expected
 until i add a shared namespace
 Tb then looses its subscriptions
 under imap to the private namespace
 only the shared namespace gets shown up , any idea?
 I dont see something special in the logs why this happens

Does this happen without virtual plugin? I don't really see a connection
between them. Anyway dovecot -n output of the broken configuration would
be helpful..



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Robert Schetterer
Timo Sirainen schrieb:
 On Wed, 2009-04-29 at 20:22 +0200, Robert Schetterer wrote:
 Hi Timo, as rawlog does not longer work here since
 update to dove 1.2 latest it might be better
 to have more debug with rawlog, cause i cant found anything in the logs
 why it stopped working
 
 There is always only one reason: dovecot.rawlog directory doesn't exist
 in user's home directory. You could set mail_debug=yes and Dovecot logs
 the home directory. Make sure it's correct.
 
Timo, i checked it ten times, all is corect, and it stopped working
directly with update, so i might broken something with merging
debian versions but how should i find i bug if there is no verbose log
to it, if ill found that something might be complet broken now
with dovecot then i have to reinstall the testserver

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Quota: ldap dict

2009-04-29 Thread Marcio Merlone

Timo Sirainen escreveu:

On Fri, 2009-04-24 at 08:46 -0300, Marcio Merlone wrote:
  
All my users are on a LDAP database 
integrated via nss_ldap, so from the dovecot point of view they are all 
local system users. Now I want to set maildir quota for everybody, and 
was wondering if I could store quota limits per user on LDAP.



Yes, as long as you're using userdb ldap instead of doing it via NSS.

  
As I read on http://wiki.dovecot.org/Quota/Dict, there seem to be no way 
to do that, am I right? 



Dict quota is about where to store the actual current quota usage. You
can't store it in LDAP, but you can store the limits in LDAP.
  

Ok, I misunderstood dict quota, I'll store quota usage o maildirsize files.
Now, joining your two paragraphs above, it is correct to say that I 
cannot store the limits on LDAP since I use NSS...

and...
I can only store quota limits on LDAP when using userdb LDAP

Is that right?


--
Marcio Merlone



Re: [Dovecot] How do I get my mail from fetchmail into dovecot

2009-04-29 Thread Michael Steinbeck-Reeves
 Message: 3
 Date: Wed, 29 Apr 2009 16:53:49 +0300
 From: Odhiambo  ? odhia...@gmail.com
 Subject: Re: [Dovecot] How do I get my mail from fetchmail into
   dovecot?
 To: Dovecot Mailing List dovecot@dovecot.org
 Message-ID:
   991123400904290653g205c603m2e4b511486a69...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8
 
 On Wed, Apr 29, 2009 at 4:46 PM, Michael Steinbeck-Reeves 
 mich...@steinbeck-reeves.uk.com wrote:
 
  I have dovecot (with squirrel mail etc.) running without any problems
  but cannot understand how to get e-mail from a pop server into dovecot.
  I have fetchmail configured to pick up the mail from the pop3 server but
  don't understand how to get it from there into my dovecot mbox
 
 
 Where does fetchmail put the e-mails?
 Point dovecot there with mail_location =... then use your favorite MuA to
 access the e-mail.

That is the problem, fetchmail just forwards it to port 25 (I think) and
I need to work out what to put between fetchmail and dovecot in order to
get the mail into the correct folders...

And I am just going around in circles on this at the moment. Any hint
would be appreciated!

Thanks,

Michael




Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Timo Sirainen
On Wed, 2009-04-29 at 20:40 +0200, Robert Schetterer wrote:
 Timo Sirainen schrieb:
  On Wed, 2009-04-29 at 20:22 +0200, Robert Schetterer wrote:
  Hi Timo, as rawlog does not longer work here since
  update to dove 1.2 latest it might be better
  to have more debug with rawlog, cause i cant found anything in the logs
  why it stopped working
  
  There is always only one reason: dovecot.rawlog directory doesn't exist
  in user's home directory. You could set mail_debug=yes and Dovecot logs
  the home directory. Make sure it's correct.
  
 Timo, i checked it ten times, all is corect, and it stopped working
 directly with update, so i might broken something with merging
 debian versions but how should i find i bug if there is no verbose log
 to it, if ill found that something might be complet broken now
 with dovecot then i have to reinstall the testserver

http://hg.dovecot.org/dovecot-1.2/rev/ace37e01c2e0



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Quota: ldap dict

2009-04-29 Thread Timo Sirainen
On Wed, 2009-04-29 at 15:43 -0300, Marcio Merlone wrote:
 Now, joining your two paragraphs above, it is correct to say that I 
 cannot store the limits on LDAP since I use NSS...
 and...
 I can only store quota limits on LDAP when using userdb LDAP
 
 Is that right?

Right. There's no way to get quota information from NSS.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] How do I get my mail from fetchmail into dovecot

2009-04-29 Thread Eduardo M KALINOWSKI

On Qua, 29 Abr 2009, Michael Steinbeck-Reeves wrote:

That is the problem, fetchmail just forwards it to port 25 (I think) and
I need to work out what to put between fetchmail and dovecot in order to
get the mail into the correct folders...


A MTA (Mail Tranfer Agent), such as exim, postfix or others.

Though there might be a way to configure fetchmail to store directly  
in the mail store, but I'm not sure (I don't use it).


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



[Dovecot] Timeout leak with dovecot version dovecot1.2(8985:f43bebab3dac)

2009-04-29 Thread jsiegle
This is 64bit AIX 5.3. Looking through previous versions of dovecot, I see 
this warning. I didn't realize this was something bad until today.

My environment uses mbox/mbox-snarf plugin.

The message in the logs is:

local0.log.20090429:Apr 29 12:41:16 hostname dovecot: 
IMAP(jsiegle): Timeout leak: 1100054c0


In dbx(the AIX debugger) I see:

$ dbx imap
Type 'help' for help.
reading symbolic information ...
(dbx) gotoi 0x1100054c0
Goto address is not within current function or block. (set $unsafegoto to 
override)

(dbx) set $unsafegoto
(dbx) gotoi 0x1100054c0
stopped in cmd-append. at 0x1100054c0
0x1100054c0 (???) 0001   Invalid opcode.
(dbx) where
cmd-append.() at 0x1100054c0

If you need more info, don't hesitate to ask.

Thanks,
Jonathan


Re: [Dovecot] Timeout leak with dovecot version dovecot1.2(8985:f43bebab3dac)

2009-04-29 Thread Timo Sirainen
On Wed, 2009-04-29 at 14:52 -0400, jsie...@psu.edu wrote:
 This is 64bit AIX 5.3. Looking through previous versions of dovecot, I see 
 this warning. I didn't realize this was something bad until today.

It's not exactly bad. It gets logged only when the process is exiting.
But it shouldn't be happening either.

 local0.log.20090429:Apr 29 12:41:16 hostname dovecot: 
 IMAP(jsiegle): Timeout leak: 1100054c0

How easily can you reproduce this? For example if you do:

telnet localhost 143
1 login user pass
2 select inbox
3 logout

Does it get logged? What if you select some other mailbox instead?

 (dbx) set $unsafegoto
 (dbx) gotoi 0x1100054c0
 stopped in cmd-append. at 0x1100054c0

I don't think this is correct, because there are no timeout callbacks in
cmd-append.c.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2 plugin virtual and shared namespace with thunderbird

2009-04-29 Thread Robert Schetterer
Timo Sirainen schrieb:
 On Sun, 2009-04-26 at 17:49 +0200, Robert Schetterer wrote:
 using latest dovecot 1.2 and latest thunderbird
 i noticed if using virtual plugin
 like here with mysql
 http://wiki.dovecot.org/Plugins/Virtual
 everthing works like expected
 until i add a shared namespace
 Tb then looses its subscriptions
 under imap to the private namespace
 only the shared namespace gets shown up , any idea?
 I dont see something special in the logs why this happens
 
 Does this happen without virtual plugin? I don't really see a connection
 between them. Anyway dovecot -n output of the broken configuration would
 be helpful..
 

no ,without virtual setup all works ok
i.e normal private namespace and shared namespace

it works with private and virtual setup
but adding shared namespace then i get loose the
private namespace with tb, specially subdirs of INBOX

here comes dovecot -n


# 1.2.rc3: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.24-23-server i686 Ubuntu 8.04.2 ext3
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot
info_log_path: /var/log/dovecot.info
protocols: imap pop3 managesieve
listen(default): 212.52.224.50:143
listen(imap): 212.52.224.50:143
listen(pop3): 212.52.224.50:110
listen(managesieve): 212.52.224.50:2000
ssl: no
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(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
login_greeting: welcome on ... high performance imap an pop server
mail_max_userip_connections(default): 10
mail_max_userip_connections(imap): 10
mail_max_userip_connections(pop3): 3
mail_max_userip_connections(managesieve): 10
verbose_proctitle: yes
last_valid_uid: 1001
first_valid_gid: 1001
last_valid_gid: 1001
mail_access_groups: vmail
mail_privileged_group: vmail
mail_uid: 1001
mail_gid: 1001
mail_location(default):
maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
mail_location(imap):
maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
mail_location(pop3):
maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
mail_location(managesieve): maildir:/usr/local/virtual/%d/%u/
mail_debug: yes
dbox_rotate_days: 0
mail_drop_priv_before_exec: yes
mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/rawlog /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): virtual quota imap_quota imap_acl acl fts
fts_squat mail_log autocreate
mail_plugins(imap): virtual quota imap_quota imap_acl acl fts fts_squat
mail_log autocreate
mail_plugins(pop3): virtual quota mail_log fts fts_squat
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
imap_client_workarounds(default): outlook-idle delay-newmail
imap_client_workarounds(imap): outlook-idle delay-newmail
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_enable_last(default): no
pop3_enable_last(imap): no
pop3_enable_last(pop3): yes
pop3_enable_last(managesieve): no
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
managesieve_implementation_string(default): dovecot
managesieve_implementation_string(imap): dovecot
managesieve_implementation_string(pop3): dovecot
managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13
namespace:
  type: private
  separator: /
  location:
maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
  hidden: yes
  list: yes

  subscriptions: yes
 changing or not have this has no effect

namespace:
  type: private
  separator: /
  prefix: virtual/
  location: virtual:/etc/dovecot/virtual:LAYOUT=maildir++
  hidden: yes
  list: no
namespace:
  type: private
  separator: /
  prefix: RealMails/
  location:
maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
  hidden: yes
  list: no

  subscriptions: yes
 changing or not have this has no effect

namespace:
  type: shared
  separator: /
  prefix: shared/%%d/%%u/
  location: maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%%d/%%u/
  list: children
auth default:
  username_chars:
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
   

Re: [Dovecot] How do I get my mail from fetchmail into dovecot

2009-04-29 Thread Anton Dollmaier

I have dovecot (with squirrel mail etc.) running without any problems
but cannot understand how to get e-mail from a pop server into dovecot.
I have fetchmail configured to pick up the mail from the pop3 server but
don't understand how to get it from there into my dovecot mbox


configure dovecot-deliver as MDA for fetchmail.

If you use system users, calling deliver should be sufficient.

On virtual users, you probably need to pass the correct recipient to 
deliver.



Anton


Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Robert Schetterer
Timo Sirainen schrieb:
 On Wed, 2009-04-29 at 20:40 +0200, Robert Schetterer wrote:
 Timo Sirainen schrieb:
 On Wed, 2009-04-29 at 20:22 +0200, Robert Schetterer wrote:
 Hi Timo, as rawlog does not longer work here since
 update to dove 1.2 latest it might be better
 to have more debug with rawlog, cause i cant found anything in the logs
 why it stopped working
 There is always only one reason: dovecot.rawlog directory doesn't exist
 in user's home directory. You could set mail_debug=yes and Dovecot logs
 the home directory. Make sure it's correct.

 Timo, i checked it ten times, all is corect, and it stopped working
 directly with update, so i might broken something with merging
 debian versions but how should i find i bug if there is no verbose log
 to it, if ill found that something might be complet broken now
 with dovecot then i have to reinstall the testserver
 
 http://hg.dovecot.org/dovecot-1.2/rev/ace37e01c2e0
 
wow

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] How do I get my mail from fetchmail into dovecot

2009-04-29 Thread Andrzej Adam Filip
Michael Steinbeck-Reeves mich...@steinbeck-reeves.uk.com wrote:
 [...]
 That is the problem, fetchmail just forwards it to port 25 (I think) and
 I need to work out what to put between fetchmail and dovecot in order to
 get the mail into the correct folders...

 And I am just going around in circles on this at the moment. Any hint
 would be appreciated!

You can use mda option provided in fetchmail as SMTP alternative.
-
I recommend using procmail as mda in ~/.fetchmailrc e.g.:
  mda /usr/bin/procmail -tY -m /home/user/.procmail/account-1.rc
and calling dovecot's deliver inside procmail scripts
  DELIVER=/usr/lib/dovecot/deliver
  DELIVERFLAGS=-e

  :0 w
  |$DELIVER $DELIVERFLAGS

Using procmail provides nice hook for extra processing e.g. 
* spam filtering/tagging
* virus detection
-
You can make fetchmail use dovecot's deliver direclty in mda option

-- 
[plen: Andrew] Andrzej Adam Filip : a...@onet.eu
Blessed is he who has reached the point of no return and knows it,
for he shall enjoy living.
  -- W. C. Bennett


Re: [Dovecot] Virtual plugin - [SERVERBUG] BUG: Unknown internal error

2009-04-29 Thread Brandon Lamb
On Wed, Apr 29, 2009 at 10:37 AM, Timo Sirainen t...@iki.fi wrote:
 On Mon, 2009-04-27 at 20:05 -0700, Brandon Lamb wrote:
 /etc/dovecot/virtual/Inbox2/dovecot-virtual
 *
 -Trash
 -Trash/*
 -Deleted*
 -Junk*
   inthread x-references2 x-mailbox INBOX

 There's no mo x-references2. It's call refs nowadays.

 Using php to connect o {host}virtual/Inbox2 gives me [SERVERBUG] BUG:
 Unknown internal error. If I connect to virtual/Allmail which has
 all instead of the inthread line it works.

 Fixed: http://hg.dovecot.org/dovecot-1.2/rev/1d21a3d0a295

Aha! inthread refs x-mailbox Mail/ now gives me stuff and no server
bug error. Thanks for the tip. Someone may want to update the virtual
plugin wiki to reflect this since the example uses x-references2


[Dovecot] where are variables expanded? Was: %d does not expand to domain

2009-04-29 Thread Giuliano Gavazzi
I am trying to patch the source so that the %d expansion variable uses  
original_username (instead of user I suppose) of auth_request, but I  
cannot find where this expansion is done..

Pointers?

Thanks
Giuliano


Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Matthijs Kooijman
Hi Robert,

 Hi Timo, as rawlog does not longer work here since
 update to dove 1.2 latest it might be better
 to have more debug with rawlog, cause i cant found anything in the logs
 why it stopped working
I've succesfully used rawlog with dovecot 1.2 (r8980), so it is not broken in
1.2 in general. Probably something with your specific setup then. Perhaps a
permission problem?

Gr.

Matthijs


signature.asc
Description: Digital signature


Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Matthijs Kooijman
Hi Timo,

 I'm trying to shorten the dovecot-example.conf nowadays, which can't
 really be done by adding more lines :) But yes, the wiki link is
 definitely useful. I also changed the first line to be a bit better:
 http://hg.dovecot.org/dovecot-1.2/rev/37c0111961f5
I have the feeling that this is slightly contradictory. I agree that the
example config should be concise, but perhaps the MainConfig wiki page should
not be so short, since it is the main reference about how config options work.
On the other hand, this is not directly related to the configuration variable,
so linking the wiki should work just fine.

Thanks for the commit!

Gr.

Matthijs


signature.asc
Description: Digital signature


Re: [Dovecot] Virtual plugin - [SERVERBUG] BUG: Unknown internal error

2009-04-29 Thread Matthijs Kooijman
Hi Brandon,

 Aha! inthread refs x-mailbox Mail/ now gives me stuff and no server
 bug error. Thanks for the tip. Someone may want to update the virtual
 plugin wiki to reflect this since the example uses x-references2
feel free to do it yourself, the wiki is editable without registration!

Gr.

Matthijs


signature.asc
Description: Digital signature


Re: [Dovecot] questions about compiling Sieve plugin

2009-04-29 Thread MercuryShadow

dpkg-checkbuilddeps: Unmet build dependencies: libpq-dev libmysqlclient15-dev
libkrb5-dev

libpq-dev depends on libkrb5-dev, which depends on:

The following packages have unmet dependencies.
  libkrb5-dev: Depends: libkrb53 (= 1.6.dfsg.4~beta1-5lenny1) but
1.4.4-7etch6 is to be installed
   Depends: libkadm55 (= 1.6.dfsg.4~beta1-5lenny1) but it is not
going to be installed

libmysqlclient15-dev has similar problems:

The following packages have unmet dependencies.
  libmysqlclient15-dev: Depends: libmysqlclient15off (= 5.0.51a-24+lenny1)
but 5.0.32-7etch8 is to be installed
Depends: libc6 (= 2.7-1) but 2.3.6.ds1-13etch9+b1
is to be installed


I'm not sure why some packages would depend on Lenny packages, since Etch is
installed.  But then again I don't really know a lot about Debian since most
of my experience is with RedHat.



Steffen Kaiser-9 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Wed, 29 Apr 2009, MercuryShadow wrote:
 
 The build-dep step failed:

 mail:/tmp# apt-get build-dep dovecot
 Reading package lists... Done
 Building dependency tree... Done
 E: Build-dependencies for dovecot could not be satisfied.
 
 Do you fetch the source packages from backports or something?
 Or use packages of another Debian version?
 
 cd dir
 dpkg-buildpackage -rfakeroot
 
 will tell you what dependencies are missing. Maybe you can handle them 
 manually.
 
 then:
 
 debian/rules build
 
 Bye,
 
 - -- 
 Steffen Kaiser
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 
 iQEVAwUBSfhli3WSIuGy1ktrAQK3/wgAvBW5GljZPB6j0C+pSQ3iUs7eWHcEDGYA
 PRbKT2BgmBx21rJcIjt3/7WIOiyG1SGQLJujqlx8de5P1peQp5piHzRgkNgzNdsA
 3qWLg+gto+3G+zj9zuC+o1fbMuwssCQ2fXOvnf2emeFC2/UZ3653VnRJjJgaKdXw
 Oe+ZF2Y65eYch2JnfUFhGAvNMt05bGSaMjpvKJE83h0xvdwpAsyVKRlckF+7Vsq6
 4cY7Muu9Nt3daIW8mZG0OUkSNwef228QSwEHFSoWUDpmOj5uFQq1d6eoruJTp47c
 9OMtMjS88vImYoCE3MsQynZupSnnOsCR7JA4I0AgVWI9fpk9LTBvlQ==
 =b7T+
 -END PGP SIGNATURE-
 
 

-- 
View this message in context: 
http://www.nabble.com/questions-about-compiling-Sieve-plugin-tp23285989p23302378.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] [PATCH] Clarify rawlog example

2009-04-29 Thread Robert Schetterer
Matthijs Kooijman schrieb:
 Hi Robert,
 
 Hi Timo, as rawlog does not longer work here since
 update to dove 1.2 latest it might be better
 to have more debug with rawlog, cause i cant found anything in the logs
 why it stopped working
 I've succesfully used rawlog with dovecot 1.2 (r8980), so it is not broken in
 1.2 in general. Probably something with your specific setup then. Perhaps a
 permission problem?
cant find any problem, i might will find after update with timos patch
and have more verbose log
 
 Gr.
 
 Matthijs



Re: [Dovecot] Virtual plugin - [SERVERBUG] BUG: Unknown internal error

2009-04-29 Thread Brandon Lamb
On Wed, Apr 29, 2009 at 1:36 PM, Matthijs Kooijman matth...@stdin.nl wrote:
 Hi Brandon,

 Aha! inthread refs x-mailbox Mail/ now gives me stuff and no server
 bug error. Thanks for the tip. Someone may want to update the virtual
 plugin wiki to reflect this since the example uses x-references2
 feel free to do it yourself, the wiki is editable without registration!

 Gr.

 Matthijs

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)

 iD8DBQFJ+LpOz0nQ5oovr7wRAkjAAKCBnkZaQ2rLvbcHuKr67h+uQNUZGgCgw+t6
 0I7414M11JZ9uV6tg9IkwI0=
 =gdOb
 -END PGP SIGNATURE-

Yep I did, i was actually under the assumption that only
timo/contributors actually modified the wiki... guess its true what
happens when i assume

=P


Re: [Dovecot] dovecot 1.2 plugin virtual and shared namespace with thunderbird dump backtrace

2009-04-29 Thread Robert Schetterer
Robert Schetterer schrieb:
 Timo Sirainen schrieb:
 On Sun, 2009-04-26 at 17:49 +0200, Robert Schetterer wrote:
 using latest dovecot 1.2 and latest thunderbird
 i noticed if using virtual plugin
 like here with mysql
 http://wiki.dovecot.org/Plugins/Virtual
 everthing works like expected
 until i add a shared namespace
 Tb then looses its subscriptions
 under imap to the private namespace
 only the shared namespace gets shown up , any idea?
 I dont see something special in the logs why this happens
 Does this happen without virtual plugin? I don't really see a connection
 between them. Anyway dovecot -n output of the broken configuration would
 be helpful..

 
 no ,without virtual setup all works ok
 i.e normal private namespace and shared namespace
 
 it works with private and virtual setup
 but adding shared namespace then i get loose the
 private namespace with tb, specially subdirs of INBOX
 
 here comes dovecot -n
 
 
 # 1.2.rc3: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.24-23-server i686 Ubuntu 8.04.2 ext3
 base_dir: /var/run/dovecot/
 log_path: /var/log/dovecot
 info_log_path: /var/log/dovecot.info
 protocols: imap pop3 managesieve
 listen(default): 212.52.224.50:143
 listen(imap): 212.52.224.50:143
 listen(pop3): 212.52.224.50:110
 listen(managesieve): 212.52.224.50:2000
 ssl: no
 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(pop3): /usr/lib/dovecot/pop3-login
 login_executable(managesieve): /usr/lib/dovecot/managesieve-login
 login_greeting: welcome on ... high performance imap an pop server
 mail_max_userip_connections(default): 10
 mail_max_userip_connections(imap): 10
 mail_max_userip_connections(pop3): 3
 mail_max_userip_connections(managesieve): 10
 verbose_proctitle: yes
 last_valid_uid: 1001
 first_valid_gid: 1001
 last_valid_gid: 1001
 mail_access_groups: vmail
 mail_privileged_group: vmail
 mail_uid: 1001
 mail_gid: 1001
 mail_location(default):
 maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
 mail_location(imap):
 maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
 mail_location(pop3):
 maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
 mail_location(managesieve): maildir:/usr/local/virtual/%d/%u/
 mail_debug: yes
 dbox_rotate_days: 0
 mail_drop_priv_before_exec: yes
 mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
 mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
 mail_executable(pop3): /usr/lib/dovecot/rawlog /usr/lib/dovecot/pop3
 mail_executable(managesieve): /usr/lib/dovecot/managesieve
 mail_plugins(default): virtual quota imap_quota imap_acl acl fts
 fts_squat mail_log autocreate
 mail_plugins(imap): virtual quota imap_quota imap_acl acl fts fts_squat
 mail_log autocreate
 mail_plugins(pop3): virtual quota mail_log fts fts_squat
 mail_plugins(managesieve):
 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
 mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
 mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
 imap_client_workarounds(default): outlook-idle delay-newmail
 imap_client_workarounds(imap): outlook-idle delay-newmail
 imap_client_workarounds(pop3):
 imap_client_workarounds(managesieve):
 pop3_enable_last(default): no
 pop3_enable_last(imap): no
 pop3_enable_last(pop3): yes
 pop3_enable_last(managesieve): no
 pop3_client_workarounds(default):
 pop3_client_workarounds(imap):
 pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
 pop3_client_workarounds(managesieve):
 managesieve_implementation_string(default): dovecot
 managesieve_implementation_string(imap): dovecot
 managesieve_implementation_string(pop3): dovecot
 managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13
 namespace:
   type: private
   separator: /
   location:
 maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
   hidden: yes
   list: yes
 
   subscriptions: yes
  changing or not have this has no effect
 
 namespace:
   type: private
   separator: /
   prefix: virtual/
   location: virtual:/etc/dovecot/virtual:LAYOUT=maildir++
   hidden: yes
   list: no
 namespace:
   type: private
   separator: /
   prefix: RealMails/
   location:
 maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/:INBOX=/usr/local/virtual/%d/%u/
   hidden: yes
   list: no
 
   subscriptions: yes
  changing or not have this has no effect
 
 namespace:
   type: shared
   separator: /
   prefix: shared/%%d/%%u/
   location: 

Re: [Dovecot] How do I get my mail from fetchmail into dovecot?

2009-04-29 Thread Andreas Ntaflos
On Wednesday 29 April 2009 15:46:05 Michael Steinbeck-Reeves wrote:
 I have dovecot (with squirrel mail etc.) running without any problems
 but cannot understand how to get e-mail from a pop server into
 dovecot. I have fetchmail configured to pick up the mail from the
 pop3 server but don't understand how to get it from there into my
 dovecot mbox structure.

My advice: forget Fetchmail and use Getmail [1] instead. Getmail does 
everything Fetchmail does, only better. The documentation is excellent, 
the author (and mailinglist) very responsive should you run into 
problems you can't seem to solve on your own and I believe there exist 
a number of HOWTOs on how to setup Getmail with Dovecot. Not that it's 
very difficult, though.

I myself have such a mail hamster setup running just fine, which I 
mentioned a few weeks ago on this list [2]. You might find that post 
helpful.

The general idea is to use Getmail to poll the remote mail servers (I 
poll two POP servers and three IMAP-SSL servers), retrieve messages, 
optionally scan them for viruses and spam and then hand them over to 
your local Dovecot server using Dovecot's LDA deliver. See [3] for a 
nice picture :) If you skip virus and spam scanning the configuration 
for a single remote IMAP server boils down to:

~/.getmail/remote_imap_server.rc:

[options]
verbose = 0
read_all = false

[retriever]
type = SimpleIMAPSSLRetriever
server = address_of_remote_imap_server
username = username_on_remote_server
password = password_on_remote_server

[destination]
type = MDA_external
path = /usr/local/libexec/dovecot/deliver

The destination part tells getmail to call the deliver program 
(without any commandline options) with the retrieved message. Dovecot 
then does the rest.

HTH

Andreas

[1] http://pyropus.ca/software/getmail/
[2] http://dovecot.org/pipermail/dovecot/2009-March/038074.html
[3] http://img394.imageshack.us/img394/6148/mailhamster.png
-- 
Andreas Ntaflos 
Vienna, Austria 

GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC  7E65 397C E2A8 090C A9B4


Re: [Dovecot] How do I get my mail from fetchmail into dovecot?

2009-04-29 Thread Phill Edwards
 I myself have such a mail hamster setup running just fine, which I
 mentioned a few weeks ago on this list [2]. You might find that post
 helpful.

 The general idea is to use Getmail to poll the remote mail servers (I
 poll two POP servers and three IMAP-SSL servers), retrieve messages,
 optionally scan them for viruses and spam and then hand them over to
 your local Dovecot server using Dovecot's LDA deliver. See [3] for a
 nice picture :) If you skip virus and spam scanning the configuration
 for a single remote IMAP server boils down to:

Thanks for that - really useful post. I've been using fetchmail for
ages which gets the amil and uses Procmail to apply some processing
rules and deliver the messages to the appropriate folders. But I'll
check Getmail now. I've been running procmail for years and have
recently been toying with the idea of replacing that with
dovecot-sieve but have been a bit reluctant to mess with things. But
I'd also like to get Open-Xchange up and running and this requires
sieve so that's why I'm looking at replacing Procmail.

Great to hear someone's done it already and put together some nice
documentation.

Regards,
Phill


Re: [Dovecot] Incorrect listing of shared mailbox names

2009-04-29 Thread Markus Werner
On Wed, Apr 29, 2009 at 02:26:58PM -0400, Timo Sirainen wrote:
 On Tue, 2009-04-21 at 08:21 +0200, Markus Werner wrote:
  The first listing of User/% also lists the first folder of each user,
  which has been polled by STATUS before. This seems to occur one time
  (after the login) only.
 
 Fixed: http://hg.dovecot.org/dovecot-1.2/rev/739c4e372140
 
 Hopefully that's the final bug in there. :)
 

Bugfix works.