Re: [Dovecot] bzip2 compression bug

2009-06-24 Thread Nikita Koshikov
On Wed, 24 Jun 2009 23:08:43 -0300 (BRT)
ferna...@dfcom.com.br wrote:

> Hi,
> 
> I compressed many files using bzip2, but in some cases it crashes. I
> believe that it is related to dovecot indexes.
> 
> How to reproduce:
> 
> Inside a Maildir folder without any indexes yet, compress a message with
> bzip2 and tryes to access it.
> 
> At my server is showed the error:
> 
> Jun 24 00:18:20 maildev dovecot: IMAP(x...@xxx): FETCH for mailbox Trash
> UID 1 failed to read message input: No such file or directory
> Jun 24 00:18:20 maildev dovecot: IMAP(x...@xxx): Disconnected: BUG: Unknown
> internal error bytes=329/1050
> 
> When I did the same with gzip compression it works as expected (opening
> the message and creating dovecot indexes).
> 
> (version, 1.1.16)
> 

Compression bzlib/bzip2 supported since version v1.1.2+, as wiki say:

Zlib plugin can be used to read compressed mbox and maildir files. Zlib plugin 
supports compression using zlib/gzip and bzlib/bzip2 (v1.1.2+). 


> Best Regards,
> Fernando
> 


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-06-24 Thread Michal Hlavinka
On Wednesday 24 June 2009 17:15:31 Timo Sirainen wrote:
> On Jun 24, 2009, at 9:38 AM, Michal Hlavinka wrote:
> > we're facing problem where dovecot 1.2rc5 is not able to
> > authenticate user via
> > gssapi. (I'm forwarding information from red hat's bugzilla)
>
> I guess it has to be because of these patches:
>
> http://hg.dovecot.org/dovecot-1.2/rev/ff6378d7b209
> http://hg.dovecot.org/dovecot-1.2/rev/601e0382b442
>
> Could you try reverting them and see if it helps?

ok, I'll try it asap



[Dovecot] bzip2 compression bug

2009-06-24 Thread fernando
Hi,

I compressed many files using bzip2, but in some cases it crashes. I
believe that it is related to dovecot indexes.

How to reproduce:

Inside a Maildir folder without any indexes yet, compress a message with
bzip2 and tryes to access it.

At my server is showed the error:

Jun 24 00:18:20 maildev dovecot: IMAP(x...@xxx): FETCH for mailbox Trash
UID 1 failed to read message input: No such file or directory
Jun 24 00:18:20 maildev dovecot: IMAP(x...@xxx): Disconnected: BUG: Unknown
internal error bytes=329/1050

When I did the same with gzip compression it works as expected (opening
the message and creating dovecot indexes).

(version, 1.1.16)

Best Regards,
Fernando



Re: [Dovecot] dovecot and vmailmgr/qmail mailboxes

2009-06-24 Thread Mij

I modified the wrapper to perform this escaping. With the new wrapper
and dovecot v1.2rc6, authentication works fine for "dot users" too.
See
http://mij.oltrelinux.com/net/dovecot-qmail-vmailmgr/

for further instructions.

have fun


On Jun 24, 2009, at 22:16 , Olivier Mueller wrote:


Hello,

On Sun, 2009-06-21 at 22:24 -0400, Timo Sirainen wrote:
I suppose :: could be used to escape a single : character. I might  
break

a few installations by doing that change, but I could live with that.
Added to v1.2: http://hg.dovecot.org/dovecot-1.2/rev/675f0df22f24


Wow, that was quick, thanks :-)   So now it would mean that using  
latest
dovecot rc's with vmailmgr accounts would be now possible ?  (with  
Mij's

wrapper). Or is there still some work left?

Thanks & regards from Zürich,
Olivier






Re: [Dovecot] dovecot and vmailmgr/qmail mailboxes

2009-06-24 Thread Olivier Mueller
Hello,

On Sun, 2009-06-21 at 22:24 -0400, Timo Sirainen wrote:
> I suppose :: could be used to escape a single : character. I might break
> a few installations by doing that change, but I could live with that.
> Added to v1.2: http://hg.dovecot.org/dovecot-1.2/rev/675f0df22f24

Wow, that was quick, thanks :-)   So now it would mean that using latest
dovecot rc's with vmailmgr accounts would be now possible ?  (with Mij's
wrapper). Or is there still some work left? 

Thanks & regards from Zürich,
Olivier




Re: [Dovecot] Auth worker max line size

2009-06-24 Thread Emmanuel Dreyfus
On Wed, Jun 24, 2009 at 02:21:50PM -0400, Timo Sirainen wrote:
> There's no real reason to keep it at 1 kB. I probably didn't even think
> about it much when I added it. I increased it to 8192 now.

Thanks a lot!

-- 
Emmanuel Dreyfus
m...@netbsd.org


Re: [Dovecot] Auth worker max line size

2009-06-24 Thread Timo Sirainen
On Wed, 2009-06-24 at 14:45 +, Emmanuel Dreyfus wrote:
> I have been playing with some exotic authentication scheme with Dovecot
> and PAM. That involves sending really large base64 encoded data as 
> the IMAP password, and I have hit a line limit in Dovecot, with
> AUTH_WORKER_MAX_LINE_LENGTH set to 1024.
..
> I had to make the patch attached below to get my authentication working. 
> I can live with this local patch, but given the much more liberal limits 
> of MAX_INBUF_SIZE at 4096 makes we wonder if this 1024 limit on
> AUTH_WORKER_MAX_LINE_LENGTH could not be a bug. Or is there a security
> concern at using more than 1kB?

There's no real reason to keep it at 1 kB. I probably didn't even think
about it much when I added it. I increased it to 8192 now.


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


[Dovecot] Auth worker max line size

2009-06-24 Thread Emmanuel Dreyfus
Hello

I have been playing with some exotic authentication scheme with Dovecot
and PAM. That involves sending really large base64 encoded data as 
the IMAP password, and I have hit a line limit in Dovecot, with
AUTH_WORKER_MAX_LINE_LENGTH set to 1024.

This limit is especially frustrating since other parts of the software
use much larger limits:
MAX_INBUF_SIZE 4096
MAX_IMAP_LINE 8192
AUTH_CLIENT_MAX_LINE_LENGTH 8192

I had to make the patch attached below to get my authentication working. 
I can live with this local patch, but given the much more liberal limits 
of MAX_INBUF_SIZE at 4096 makes we wonder if this 1024 limit on
AUTH_WORKER_MAX_LINE_LENGTH could not be a bug. Or is there a security
concern at using more than 1kB?

Opinions? (please Cc: me, I'm not subscribed ot the list)

--- src/auth/auth-worker-client.h.orig  2009-06-23 18:32:15.0 +0200
+++ src/auth/auth-worker-client.h   2009-06-23 18:32:33.0 +0200
@@ -1,8 +1,8 @@
 #ifndef AUTH_WORKER_CLIENT_H
 #define AUTH_WORKER_CLIENT_H

-#define AUTH_WORKER_MAX_LINE_LENGTH 1024
+#define AUTH_WORKER_MAX_LINE_LENGTH 4096

 struct auth_worker_client *auth_worker_client_create(struct auth *auth, int 
fd);
 void auth_worker_client_destroy(struct auth_worker_client **client);
 void auth_worker_client_unref(struct auth_worker_client **client);





-- 
Emmanuel Dreyfus
m...@netbsd.org


Re: [Dovecot] deliver does not update maildirsize [SOLVED]

2009-06-24 Thread Charles Marcus
On 6/24/2009, ftrib...@falcon-one.com (ftrib...@falcon-one.com) wrote:
> Silly me!
> I apologize for having lost people's time!
> 
> Problem solved and it is now working perfectly!

Not a total waste of time... at least you got updated to the latest
1.1.16... :)

-- 

Best regards,

Charles


Re: [Dovecot] deliver does not update maildirsize [SOLVED]

2009-06-24 Thread ftriboix
Hi all,

> I am actually realizing something. Do I need to add the "quota"
> plugin in the "protocol lda {}" section of dovecot.conf?

Indeed!
And it was even written in the Quota wiki page!

Silly me!
I apologize for having lost people's time!

Problem solved and it is now working perfectly!

  Fabrice




Re: [Dovecot] Quota_rules ignored

2009-06-24 Thread A. Gideonse

Timo Sirainen wrote:

On Sun, 2009-06-21 at 18:38 +0200, A. Gideonse wrote:
Trash / Spam folders. Any clue on what might be wrong? I changed the 
query / settings as suggested earlier (removed the dot / changed 'quota' 
into 'quota_rule'):


plugin:
   quota: maildir:User quota
   quota_rule: *:storage=1G
   quota_rule2: .Trash:storage=100M
   quota_rule3: .Spam:ignore


The above settings still have the dot. They should be either:

quota_rule2 = Trash:storage=100M
quota_rule3 = Spam:ignore

or:

quota_rule2 = INBOX.Trash:storage=100M
quota_rule3 = INBOX.Spam:ignore

What matters is how IMAP clients see the mailbox, not what it's called
in filesystem.


The dots were removed, but I accidentally copied the old settings to 
show what my settings were. Anyway, the information was useful since I 
know was able to correctly ignore some of the INBOX.* folders. The 
problems with the rules not being used by Dovecot were magically solved 
after two reboots of the server... Thanks to all for the help!


My next problems is that I want a vacation/'out of office'-message for 
some users this summer. Is this a default option or not? Or can I find 
this option in the Postfix settings (there is a field in the 
postfix/dovecot database for it) If not, I will probably have to start a 
new thread if I can't work out how it works (though I hope there is some 
nice info available through Google) ;) .


Re: [Dovecot] deliver does not update maildirsize

2009-06-24 Thread ftriboix
Hi Timo,

Thank you very much for replying!

> What does your configuration look like now? v1.1 has different quota
> configuration. Is the problem only with deliver, or is imap also not
> updating quota? And dovecot -n unfortunately doesn't show
> protocol lda {} contents, so could you show them too? And finally,
> enable mail_debug=yes and paste its logs when a message is delivered.

mail_debug was already enabled, actually.
maildirsize is not updated with imap now. If I logged in imap
with dovecot 1.0.13, maildirsize was updated. This is not the
case anymore with dovecot 1.1.16 ...

I am actually realizing something. Do I need to add the "quota"
plugin in the "protocol lda {}" section of dovecot.conf?

Please find the configuration information below:


# dovecot -n
# 1.1.16: /etc/dovecot-1.1.16/dovecot.conf
# OS: Linux 2.6.27.10-grsec--grs-ipv4-32 i686 Debian 4.0 ext3
base_dir: /var/dovecot-1.1.16
log_path: /var/dovecot-1.1.16/log/errors.log
info_log_path: /var/dovecot-1.1.16/log/info.log
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/dovecot-1.1.16/login
login_executable: /usr/local/dovecot-1.1.16/libexec/dovecot/imap-login
login_user: ldovecotlogin
mail_location: maildir:/var/vmail/%d/%n
mail_debug: yes
mail_plugins: quota imap_quota
auth default:
  mechanisms: plain login
  user: nobody
  chroot: /var/dovecot-1.1.16
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
args: /etc/dovecot-1.1.16/dovecot-mysql-passdb.conf
  userdb:
driver: sql
args: /etc/dovecot-1.1.16/dovecot-mysql-userdb.conf
  socket:
type: listen
client:
  path: /var/postfix-2.5.1/private/auth.dovecot
  mode: 432
  user: lpostfix
  group: lpostfix
master:
  path: /var/dovecot-1.1.16/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  quota: maildir:Quota




protocol lda {
  # Address to use when sending rejection mails.
  postmaster_address = postmas...@mydomain

  # Hostname to use in various parts of sent mails, eg. in Message-Id.
  # Default is the system's real hostname.
  #hostname =

  # Support for dynamically loadable plugins. mail_plugins is a space
separated
  # list of plugins to load.
  #mail_plugins =
  #mail_plugin_dir = /usr/lib/dovecot/lda

  # Binary to use for sending mails.
  #sendmail_path = /usr/lib/sendmail

  # UNIX socket path to master authentication server to find users.
  #auth_socket_path = /var/run/dovecot/auth-master

  log_path = /var/dovecot-1.1.16/log/delivery.log
  auth_socket_path = /var/dovecot-1.1.16/auth-master
}




# egrep '^deliver.test' info.log | tail
deliver(t...@mydomain): Jun 24 13:28:35 Info: auth input: uid=5000
deliver(t...@mydomain): Jun 24 13:28:35 Info: auth input: gid=5000
deliver(t...@mydomain): Jun 24 13:28:35 Info: auth input:
mail=maildir:/home/vmail/MyDomain/test
deliver(t...@mydomain): Jun 24 13:28:35 Info: auth input:
home=/home/vmail/MyDomain/test/home
deliver(t...@mydomain): Jun 24 13:28:35 Info: auth input: quota=maildir:Quota
deliver(t...@mydomain): Jun 24 13:28:35 Info: auth input:
quota_rule=*:storage=1024
deliver(t...@mydomain): Jun 24 13:28:35 Info: auth input:
quota_rule2=Trash:storage=50M
deliver(t...@mydomain): Jun 24 13:28:35 Info: Home dir not found:
/home/vmail/MyDomain/test/home
deliver(t...@mydomain): Jun 24 13:28:35 Info: maildir:
data=/home/vmail/MyDomain/test
deliver(t...@mydomain): Jun 24 13:28:35 Info: maildir++:
root=/home/vmail/MyDomain/test, index=, control=,
inbox=/home/vmail/MyDomain/test
deliver(t...@mydomain): Jun 24 13:28:35 Info:
msgid=<290034.94281...@web24608.mail.ird.yahoo.com>: saved mail to INBOX
deliver(t...@mydomain): Jun 24 16:59:57 Info: auth input: uid=5000
deliver(t...@mydomain): Jun 24 16:59:57 Info: auth input: gid=5000
deliver(t...@mydomain): Jun 24 16:59:57 Info: auth input:
mail=maildir:/home/vmail/MyDomain/test
deliver(t...@mydomain): Jun 24 16:59:57 Info: auth input:
home=/home/vmail/MyDomain/test/home
deliver(t...@mydomain): Jun 24 16:59:57 Info: auth input: quota=maildir:Quota
deliver(t...@mydomain): Jun 24 16:59:57 Info: auth input:
quota_rule=*:storage=1024
deliver(t...@mydomain): Jun 24 16:59:57 Info: auth input:
quota_rule2=Trash:storage=50M
deliver(t...@mydomain): Jun 24 16:59:57 Info: Home dir not found:
/home/vmail/MyDomain/test/home
deliver(t...@mydomain): Jun 24 16:59:57 Info: maildir:
data=/home/vmail/MyDomain/test
deliver(t...@mydomain): Jun 24 16:59:57 Info: maildir++:
root=/home/vmail/MyDomain/test, index=, control=,
inbox=/home/vmail/MyDomain/test
deliver(t...@mydomain): Jun 24 16:59:57 Info:
msgid=<542353.92671...@web24614.mail.ird.yahoo.com>: saved mail to INBOX



# cat maildirsize
1048576S
1846384 10




Best regards,

  Fabrice




Re: [Dovecot] deliver does not update maildirsize

2009-06-24 Thread Timo Sirainen

On Jun 24, 2009, at 8:37 AM, ftrib...@falcon-one.com wrote:


Hi Charles,

I think quota support is much improved in 1.1.x, so you might  
seriously

consider upgrading before spending much time on it...


I switched to dovecot 1.1.16
I have EXACTLY the same problem.

..

Could anybody have a look at my configuration (please see previous
email) and let me know if there is anything obvious?


What does your configuration look like now? v1.1 has different quota  
configuration. Is the problem only with deliver, or is imap also not  
updating quota? And dovecot -n unfortunately doesn't show protocol lda  
{} contents, so could you show them too? And finally, enable  
mail_debug=yes and paste its logs when a message is delivered.




Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-06-24 Thread Timo Sirainen

On Jun 24, 2009, at 9:38 AM, Michal Hlavinka wrote:

we're facing problem where dovecot 1.2rc5 is not able to  
authenticate user via

gssapi. (I'm forwarding information from red hat's bugzilla)


I guess it has to be because of these patches:

http://hg.dovecot.org/dovecot-1.2/rev/ff6378d7b209
http://hg.dovecot.org/dovecot-1.2/rev/601e0382b442

Could you try reverting them and see if it helps?



Re: [Dovecot] Dovecot Problem

2009-06-24 Thread Timo Sirainen

Set this to non-zero:

# Number of auth requests to handle before destroying the process.  
This may

# be useful if PAM plugins leak memory.
#auth_worker_max_request_count = 0

On Jun 24, 2009, at 10:29 AM, Robert Sloan wrote:


I am getting the following error in the mail.err log

pam_start() failed: Critical error - immediate abort

This is with an IMAP connection.

Timo Sirainen wrote:

On Jun 5, 2009, at 9:26 AM, Robert Sloan wrote:

Every 2 or 3 days dovecot will not allow me to log into my IMAP  
server.  It keeps requesting my username and password.  If I do a / 
etc/init.d/dovecot restart it will start working again for a few  
days.  I have dovecot set up to use Maildir.


Set auth_debug=yes and look at what the logs say when it re- 
requests the password.






Re: [Dovecot] Asked about Dovecot Logging

2009-06-24 Thread Timo Sirainen

On Jun 24, 2009, at 3:24 AM, Jose Luis Marin Perez wrote:

So no matter if the account has been created at any location within  
the domain example.com as these parameters are obtained from vchkpw?


Right.


According to your knowledge my configuration is correct?

 userdb:
   driver: prefetch
   args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u


Remove the args, they're ignored anyway and will just confuse in future.



Re: [Dovecot] Dovecot Problem

2009-06-24 Thread Robert Sloan

I am getting the following error in the mail.err log

pam_start() failed: Critical error - immediate abort

This is with an IMAP connection.

Timo Sirainen wrote:

On Jun 5, 2009, at 9:26 AM, Robert Sloan wrote:

Every 2 or 3 days dovecot will not allow me to log into my IMAP 
server.  It keeps requesting my username and password.  If I do a 
/etc/init.d/dovecot restart it will start working again for a few 
days.  I have dovecot set up to use Maildir.


Set auth_debug=yes and look at what the logs say when it re-requests 
the password.


[Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-06-24 Thread Michal Hlavinka
Hi,

we're facing problem where dovecot 1.2rc5 is not able to authenticate user via 
gssapi. (I'm forwarding information from red hat's bugzilla)

Steps to reproduce:
1. Install dovecot with kerberos support, create mailboxes for the client
2. Get initial credentials on client side
3. Attempt to log in via dovecot using gssapi
-> login failed

Client side
1. Email client displays: "[AUTHENTICATIONFAILED] Authentication failed."
2. klist before login shows: 
Valid starting ExpiresService principal
06/18/09 20:01:01  06/19/09 20:01:01  krbtgt/re...@realm
3. klist after login attempt shows:
Valid starting ExpiresService principal
06/18/09 20:01:01  06/19/09 20:01:01  krbtgt/re...@realm
06/18/09 20:01:28  06/19/09 20:01:01  imap/mail.dom...@realm

Server side
1. /var/log/maillog: 
dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not authorized
dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=,
method=GSSAPI, rip=192.168.0.1, lip=192.168.0.2, TLS


It is possible for the same user to login via other mechanisms.
The issue reproduced with different email clients. Evolution and a custom
java-based client were attempted.

example of dovecot.conf:
protocols = imap
mail_location = maildir:/home/virtual/%u/Maildir
protocol imap {
}
auth_krb5_keytab=/etc/dovecot.keytab
auth default {
mechanisms = gssapi
  userdb static {
args = uid=vmail gid=vmail home=/home/virtual/%u
  }
}
-
Exactly the same dovecot setup was working just fine with dovecot 1.1 series. 
Authentication using kinit works just fine and kerberos infrastructure is
functioning well as I use kerberos auth for other services like apache and ssh
successfully.

/var/log/maillog with using auth_debug=yes can be found here:
https://bugzilla.redhat.com/attachment.cgi?id=348710

Regards,
Michal Hlavinka




Re: [Dovecot] deliver does not update maildirsize

2009-06-24 Thread ftriboix
Hi Charles,

> I think quota support is much improved in 1.1.x, so you might seriously
> consider upgrading before spending much time on it...

I switched to dovecot 1.1.16
I have EXACTLY the same problem.

BTW, I discovered that delivery does log into dovecot's info.log.
So I had a look at these logs, and delivery does not say anything
about the quota being exceeded. It clearly mention that the email
has been successfully delivered.
I grepped also the previous info.log, and I have the same logs,
except for the quota format which has changed in dovecot 1.1

Could anybody have a look at my configuration (please see previous
email) and let me know if there is anything obvious?

BTW, the maildirsize file is still not updated.


Thank you very much for any help!

  Fabrice




Re: [Dovecot] Deliver, sieve and duplicate message

2009-06-24 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 24 Jun 2009, jean-Noël Chardron wrote:

I read a previous post about the duplicate messages : 
http://www.dovecot.org/list/dovecot/2007-March/021085.html

But I do not understand if this feature exists and how to activate
Some explanations or documentation would be welcome.


There is no such feature.

"When a same  message (same message-id) is to  be delivered twice into
 the same mailbox, it is delivered twice while I think that the second
 one should be discarded."

The assumption same message-id == same message is nice, but may fail. 
Therefore it is problematic to impose this.


IMHO, the Sieve RFC refers to file one message multiple times into the 
same folder in the same run, not when the same message arrives two or more 
times.


E.g. a script like:

"
fileinto "INBOX";

fileinto "INBOX";

"

shallt not file the message twice into INBOX.

When the same message (aka same message-id) arrives two or more times, it 
is really not the same, because at least the headers differ, usually. E.g. 
if you compare the message byte-per-byte they differ.


For instance I have a mailing list that sends its message directly to the 
sender and to the subscribers in two different runs. So I get it twice, 
but once without the "list-id" and once with, so I can filter.


Bye,

- -- 
Steffen Kaiser

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

iQEVAwUBSkIATnWSIuGy1ktrAQL3dAgAv5RH34Ym9DetQayYAUpVAZ+U0NSQSzAV
9A1R/iDjtUqgG1TdlNxvsOZNbKw8Od+C7IJw9zDRof9wofw4ZngjT2B0k5KHIRMD
mwhkRBwapf7ED6VWe3b2ygO5D0scLU9QsSBRVqPvMn1pdk3r6hmIwNGPKMRAYXAf
jZsNe3QH2CublyB/oC5YGtKkIqA1nbY8sbXxNg4T5VPJpqm7rYcekLaBkxVXKwm9
4WBL2fPGDyXzXFtpgXfZ29m9n5UtZkDlPXv37SM0yKIXTSnyYXvRIMYE6uX+HNMF
b8EEZ+QvsqRuYziizhpd7zHTbMmcd0rJ1FHE4TT0TXsxfyUEAm3vFQ==
=FtR5
-END PGP SIGNATURE-

[Dovecot] Deliver, sieve and duplicate message

2009-06-24 Thread jean-Noël Chardron

Hello,

Some users subscribe to several mailing lists which causes them to have 
the same message several times what they do not want .
Today we use procmail as delivery agent to discard duplicate message, we 
want to migrate to dovecot deliver + sieve
I read a previous post about the duplicate messages : 
http://www.dovecot.org/list/dovecot/2007-March/021085.html

But I do not understand if this feature exists and how to activate
Some explanations or documentation would be welcome.

thank you,

--
Jean-Noel Chardron




Re: [Dovecot] Managesieve fails to retrieve scripts > 8kB on Dovecot 1.1.16

2009-06-24 Thread John Marshall
On Tue, 23 Jun 2009, 18:29 +0200, Stephan Bosch wrote:
> John Marshall wrote:
> 
> >   --< snip: 169 lines removed >--
> >  # This is a sieve script file fuNO "Unknown error"
> >
> There's our problem. There's only one location in the sources where this 
> most informative error can occur :) . Apparently, Timo has fixed an old 
> bug in the Dovecot stream implementation. This bugfix triggers a problem 
> in ManageSieve that uses an older section of code of the imap daemon. 
> Timo provided the solution and I've committed the fix:
> 
> http://hg.rename-it.nl/dovecot-1.1-managesieve/rev/75c9769339b8
> 
> Please apply this to your managesieve source and check whether the 
> problem is gone. I'll make a new release when all is ok.

Thank you Stephan,

Was the patch for cmd-getscript.c the only patch?  I applied that patch
to cmd-getscript.c and rebuilt.  That eliminated the informative error
message but still does not return the entire script.

  GETSCRIPT "test_9000"
  {9223}
  # This is a sieve script file full of comments
   --< snip: 169 lines removed >--
  # This is a sieve script file fu
  OK "Getscript completed."

Regards,

-- 
John Marshall


pgpfAaz9coU9i.pgp
Description: PGP signature


Re: [Dovecot] dovecot-antispam problem with sa-learn

2009-06-24 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 23 Jun 2009, maxlosb...@tiscali.it wrote:


that when I move messages from or to "Posta indesiderata", which is in
antispam_spam list, nothing happens. I have no logs about sa-learn


Please post some logs from "antispam" itself, not just sa-learn itself.

Or, as a start, the logs of the login of a new user.

Bye,

- -- 
Steffen Kaiser

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

iQEVAwUBSkHXuXWSIuGy1ktrAQI7+Af9Fp9XBDsFiE1dLgnvEk5ElH/CQPUxQYit
elgS8WNKDqrXbi8/foSkSoyKNB2UQeMy5ohhIb+iZKihDRYs4f96QXH2DSvanVm7
ZyJd1yZObZlWDtRDr50Pe8MQdjGpVUIhtrDlhtXCyYcktlOTwLX5QlhJxuAxMf3J
LhNFrKJhv59H3VyXVElyOeQB8/GOz4uzs5k6TWsG1UO46KZBvAtGZ/RS2QZY/CPm
wgsbNFAo+40kDv9lKriH/Qz6FgSWL42JlGKA1wsBHF8UhVBquZNrLH98BsKYbcaT
3SJqEAVUhYUkeEjjjFmNR8XQYM2nFBINEdv8JBV7kxE+pifbqe8sog==
=eLWI
-END PGP SIGNATURE-


Re: [Dovecot] Asked about Dovecot Logging

2009-06-24 Thread Jose Luis Marin Perez

Dear Timo
 
So no matter if the account has been created at any location within the domain 
example.com as these parameters are obtained from vchkpw? 

According to your knowledge my configuration is correct?

  userdb:
driver: prefetch
args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u

Thanks
 
Jose Luis

 
> From: t...@iki.fi
> To: jolumape...@hotmail.com
> Date: Wed, 24 Jun 2009 03:11:05 -0400
> CC: dovecot@dovecot.org
> Subject: Re: [Dovecot] Asked about Dovecot Logging
> 
> With userdb prefetch you're using the uid, gid and home directory 
> given by vchkpw (when Dovecot did passdb lookup from it). With static 
> userdb you're using those static values that you manually specified.
> 
> On Jun 24, 2009, at 2:44 AM, Jose Luis Marin Perez wrote:
> 
> >
> > Dear Timo,
> >
> >
> >
> > What is the difference between these options?
> >
> >
> > Thanks
> >
> >
> >
> > Jose Luis
> >
> >> From: t...@iki.fi
> >> To: jolumape...@hotmail.com
> >> Date: Wed, 24 Jun 2009 01:40:04 -0400
> >> CC: dovecot@dovecot.org
> >> Subject: Re: [Dovecot] Asked about Dovecot Logging
> >>
> >> On Jun 24, 2009, at 1:23 AM, Jose Luis Marin Perez wrote:
> >>
> >>> I have another query in the dovecot -n output displays a parameter
> >>> which I have doubts:
> >>>
> >>> args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u
> >>
> >> You should be using userdb prefetch, not userdb static.
> >>
> >
> > _
> > Explore the seven wonders of the world
> > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
> 

_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

Re: [Dovecot] v1.2.rc6 released

2009-06-24 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 22 Jun 2009, Michael Lechtermann wrote:


Is there a full list of changes/new features since 1.1 somewhere?


http://hg.dovecot.org/dovecot-1.2/log

or

http://hg.dovecot.org/dovecot-1.2/shortlog

Don't know if you can extend the list (log has just 10 entries), but it's 
the standard Mercurial web interface, s. 
http://mercurial.selenic.com/wiki/ .


Alternatively, clone the repository and type "hg log -v".

Bye,

- -- 
Steffen Kaiser

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

iQEVAwUBSkHTAnWSIuGy1ktrAQJz+Qf/SJ9p6NFaMQrKmSYbWWBIhqFmCSIdo/N1
1fOtikfUmpslcJ7C6RZF27YKV9k1vvbLBaK79HPmqEt3p7+JSISAq+7kPzKdPYjk
HxifRjwXH3oEfX2yshjHozkY52bgYTJHIme4SaYbUfBJlXtIqiaioHh9Gelna175
PpVFSBdEUAMLJ0cZINbpR67eDzggnldsJhU63pMIJsQKCu/xmMBHmaQbX5bY49Do
Z/mI1Hzfm9ZcIe5hQRWf2c7ZaD6mOU+WHUbjg6hVXCxZ/d/6r7E4GiWDFkVAUh6a
2bH8dPS5PnBvnyBc+w2afe776JhNrxpIcS6lpGgxG82/AekMQyBf1Q==
=p5OS
-END PGP SIGNATURE-


Re: [Dovecot] Asked about Dovecot Logging

2009-06-24 Thread Timo Sirainen
With userdb prefetch you're using the uid, gid and home directory  
given by vchkpw (when Dovecot did passdb lookup from it). With static  
userdb you're using those static values that you manually specified.


On Jun 24, 2009, at 2:44 AM, Jose Luis Marin Perez wrote:



Dear Timo,



What is the difference between these options?


Thanks



Jose Luis


From: t...@iki.fi
To: jolumape...@hotmail.com
Date: Wed, 24 Jun 2009 01:40:04 -0400
CC: dovecot@dovecot.org
Subject: Re: [Dovecot] Asked about Dovecot Logging

On Jun 24, 2009, at 1:23 AM, Jose Luis Marin Perez wrote:


I have another query in the dovecot -n output displays a parameter
which I have doubts:

args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u


You should be using userdb prefetch, not userdb static.



_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE




Re: [Dovecot] courier-imap 2 Dovecot Migration

2009-06-24 Thread Curtis Maloney

Odhiambo ワシントン wrote:

I have a question about migration from courier-imap.

I have a server running courier-imap which I'd like to change to dovecot.
The problem at hand is that there are POP3 users as well as IMAP4 users.Some
of the POP3 users have the option to "leave a copy of the message on the
server" set in their MuAs.

Is it possible to migrate from courier-imap --> Dovecot and not have these
people re fetching all their old e-mails all over again?


I thought this one was fairly well covered in the Migration docs in the 
wiki... IIRC it has to do with uid format.


http://wiki.dovecot.org/Migration/Courier

Aside from the warning at the top about bad migration causing re-downloads, 
there 'Dovecot configuration' section, and the one on "Old Courier POP3 
versions to Dovecot v1.0", cover settings for pop3_uidl_format.


--
Curtis Maloney
cmalo...@cardgate.net