Re: [Dovecot] Error: sieve_execute_bytecode(/var/sieve/global.sievec) failed

2009-01-12 Thread Stephan Bosch
Timo Sirainen schreef: On Jan 12, 2009, at 9:38 PM, Gary V wrote: I'm just getting familiar with Dovecot. I get this error when I send mail to a mailbox that is over quota. I have no problem with the way quota is working and I have no problem with the sieve script detecting spam and delivering

Re: [Dovecot] 1.1.6: PAM passdb/userdb (mis)configuration

2009-01-12 Thread Oved Ben-Aroya
On Mon, Jan 12, 2009 at 09:14:06AM -0500, Timo Sirainen wrote: > On Jan 12, 2009, at 2:28 AM, Oved Ben-Aroya wrote: > > >which work fine, except for Outlook/OL Express users that are asked > >for > >their password whenever they "send/receive"... We've had also > >"passdb shadow" > >that someh

Re: [Dovecot] Can not Create Maildir using userdb

2009-01-12 Thread Henry Yonathan
Thank you for your reply. So, you mean that both user_query and password_query should have the same amount of parameter and the mail parameter from user_query should have the exact parameter as userdb_mail from password_query? And also I've to turn on userdb prefetch {} Kind Regards, Henry Fro

Re: [Dovecot] Error: sieve_execute_bytecode(/var/sieve/global.sievec) failed

2009-01-12 Thread Timo Sirainen
On Jan 12, 2009, at 9:38 PM, Gary V wrote: I'm just getting familiar with Dovecot. I get this error when I send mail to a mailbox that is over quota. I have no problem with the way quota is working and I have no problem with the sieve script detecting spam and delivering it to the Spam folder. J

[Dovecot] Error: sieve_execute_bytecode(/var/sieve/global.sievec) failed

2009-01-12 Thread Gary V
I'm just getting familiar with Dovecot. I get this error when I send mail to a mailbox that is over quota. I have no problem with the way quota is working and I have no problem with the sieve script detecting spam and delivering it to the Spam folder. Just trying to figure out why I get this error

Re: [Dovecot] Can not Create Maildir using userdb sql

2009-01-12 Thread Timo Sirainen
On Jan 12, 2009, at 8:38 PM, Henry Yonathan wrote: password_query = SELECT email AS user, password, CONCAT('/home/vmail/ %d/%n/', maildir) AS userdb_home, CONCAT('maildir:/home/vmail/%d/ %n/', maildir) AS userdb_mail, 5000 AS userdb_uid, 5000 AS userdb_gid FROM view_users WHERE email = '%u';

Re: [Dovecot] dovecot 1.2 shared namespace/mailboxes %%u expands only to %

2009-01-12 Thread Timo Sirainen
On Wed, 2009-01-07 at 00:17 +0100, Robert Schetterer wrote: > Timo Sirainen schrieb: > > On Wed, 2009-01-07 at 00:05 +0100, Robert Schetterer wrote: > >> namespace shared { > >>separator = / > >>prefix = "shared/%d/%%u/" > >>subscriptions = yes > >>list = yes > >> } > > .. > >> %%u

Re: [Dovecot] Can not Create Maildir using userdb sql

2009-01-12 Thread Henry Yonathan
I dont think mail_location:/home/vmail/%d/%n/Maildir should be terminated with an / Because I've try to use the mail_location with userdb static, dovecot still able to create the directory anyway. OK, below are my dovecot-sql.conf driver = mysql connect = host=127.0.0.1 dbname=email user= p

Re: [Dovecot] linuxconf migration story

2009-01-12 Thread Timo Sirainen
On Mon, 2009-01-12 at 21:21 +0200, Thanos Chatziathanassiou wrote: > >> - Is there something to configure to get rid of this ? > >> > > > > Where are IMAP's non-INBOX mailboxes located? The index files should be > > in the same directory. > > > Since this is a (previous) linuxconf installat

Re: [Dovecot] [checkpassword] I can't get a password from fd3

2009-01-12 Thread Lutz Preßler
Hello Durk, Am Montag, 12. Januar 2009 schrieb Durk Strooisma: > I'm trying to implement checkpassword authentication with a simple bash > script. In some way I can't get the password from file descriptor 3. > > The start of script looks like this: > > #!/bin/bash > > read -d '\0' -r -u 3 You a

Re: [Dovecot] [checkpassword] I can't get a password from fd3

2009-01-12 Thread Durk Strooisma
> On Mon, 2009-01-12 at 20:54 +0100, Durk Strooisma wrote: >> > On Mon, 2009-01-12 at 18:31 +0100, Durk Strooisma wrote: >> >> #!/bin/bash >> >> >> >> read -d '\0' -r -u 3 >> > >> > Are you sure this is supposed to work? \0 character is an >> > end-of-string character in C language, and I wouldn't

Re: [Dovecot] [checkpassword] I can't get a password from fd3

2009-01-12 Thread Timo Sirainen
On Mon, 2009-01-12 at 20:54 +0100, Durk Strooisma wrote: > > On Mon, 2009-01-12 at 18:31 +0100, Durk Strooisma wrote: > >> #!/bin/bash > >> > >> read -d '\0' -r -u 3 > > > > Are you sure this is supposed to work? \0 character is an end-of-string > > character in C language, and I wouldn't be surpri

Re: [Dovecot] [checkpassword] I can't get a password from fd3

2009-01-12 Thread Durk Strooisma
> On Mon, 2009-01-12 at 18:31 +0100, Durk Strooisma wrote: >> #!/bin/bash >> >> read -d '\0' -r -u 3 > > Are you sure this is supposed to work? \0 character is an end-of-string > character in C language, and I wouldn't be surprised if read simply > didn't support it as delimiter. Well if I try to

Re: [Dovecot] linuxconf migration story

2009-01-12 Thread Thanos Chatziathanassiou
O/H Timo Sirainen έγραψε: On Wed, 2008-12-24 at 16:26 +0200, Thanos Chatziathanassiou wrote: ``Dec 24 15:36:29 mail dovecot: POP3(u...@domain): stat(/var/run/dovecot/imap-index/domain/user/.imap/INBOX) failed: Permission denied (euid=60107 egid=231 missing +x perm: /var/run/dovecot/imap-ind

Re: [Dovecot] [checkpassword] I can't get a password from fd3

2009-01-12 Thread Timo Sirainen
On Mon, 2009-01-12 at 18:31 +0100, Durk Strooisma wrote: > #!/bin/bash > > read -d '\0' -r -u 3 Are you sure this is supposed to work? \0 character is an end-of-string character in C language, and I wouldn't be surprised if read simply didn't support it as delimiter. signature.asc Description:

[Dovecot] [checkpassword] I can't get a password from fd3

2009-01-12 Thread Durk Strooisma
Hi all, I'm trying to implement checkpassword authentication with a simple bash script. In some way I can't get the password from file descriptor 3. The start of script looks like this: #!/bin/bash read -d '\0' -r -u 3 USERNAME="${REPLY}" read -d '\0' -r -u 3 PASSWORD="${REPLY}" if [ -z "${

Re: [Dovecot] Problems with dovecot

2009-01-12 Thread Timo Sirainen
On Sat, 2009-01-10 at 17:30 +0100, Filip Francis wrote: > Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: > ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or > directory That's weird. Try if setting login_process_size=0 helps? signature.asc Descripti

Re: [Dovecot] Dovecot, pop3, mBox

2009-01-12 Thread Matej Golob
Thanks. It was permission problem (mail_privileged_group = mail solved it). Matej -Original Message- From: dovecot-bounces+matej=pohorje@dovecot.org [mailto:dovecot-bounces+matej=pohorje@dovecot.org] On Behalf Of Timo Sirainen Sent: Monday, January 12, 2009 3:17 PM To: Matej Golob

Re: [Dovecot] Dovecot, pop3, mBox

2009-01-12 Thread Timo Sirainen
On Jan 11, 2009, at 3:12 PM, Matej Golob wrote: I have to migrate some old system to new one with installed dovecot (It's my first time using dovecot). I have all mails inside /var/spool/mail folder (mbox files). I can connect and receive mails via POP3, but problem is that dovecot doesn't

Re: [Dovecot] 1.1.6: PAM passdb/userdb (mis)configuration

2009-01-12 Thread Timo Sirainen
On Jan 12, 2009, at 2:28 AM, Oved Ben-Aroya wrote: which work fine, except for Outlook/OL Express users that are asked for their password whenever they "send/receive"... We've had also "passdb shadow" that somehow "fixed" this This really makes no sense. Outlook doesn't know if you're usi

Re: [Dovecot] Can not Create Maildir using userdb sql

2009-01-12 Thread Timo Sirainen
On Jan 12, 2009, at 9:00 AM, Matt Rude wrote: mail_location: maildir:/home/vmail/%d/%n/Maildir This needs to end with a / when using maildir change it to mail_location: maildir:/home/vmail/%d/%n/Maildir/ There is no such requirement anywhere in Dovecot.

Re: [Dovecot] Can not Create Maildir using userdb sql

2009-01-12 Thread Matt Rude
On Mon, January 12, 2009 1:12 am, Henry Yonathan wrote: > Dear all, > > > I've been experiencing this problem and still can't find a solution for > this. I want to have a dynamic quota for each virtual user. > I've followed instruction from : > http://wiki.dovecot.org/HowTo/DovecotLDAPostfixAdminM

Re: [Dovecot] Deliver *sometimes* delivers via /tmp?

2009-01-12 Thread Amon Ott
Am Maandag 12 Januor 2009 schrieb Kim Bisgaard: > I'm running dovecot (1.1.7) deliver and sieve (1.1.5) on a Fedora 9 > platform, using selinux targetet mode. > > Most of the mail deliveries goes well, but once deliver tried to copy > the mail to the /tmp directory, which it seems it not allowed by

Re: [Dovecot] 1.1.6 -> 1.1.7 regression: dovecot: pipe() failed: Too many open files

2009-01-12 Thread Mark Zealey
> > There weren't amazing numbers of imap sessions open at > > the time (only something like 400-500; we've had 1.5k in > the past), so I > > suspect this is a regression between 1.1.6 and 1.1.7 where > you've got a > > leak of fd's ? > > Sounds like a leak, but I doubt it was a regression. Pr

[Dovecot] Deliver *sometimes* delivers via /tmp?

2009-01-12 Thread Kim Bisgaard
Hi, I'm running dovecot (1.1.7) deliver and sieve (1.1.5) on a Fedora 9 platform, using selinux targetet mode. Most of the mail deliveries goes well, but once deliver tried to copy the mail to the /tmp directory, which it seems it not allowed by selinux. I guess that deliver wants to sanitize th

Re: [Dovecot] Bash script to mark all mail read in Maildir + Dovecot

2009-01-12 Thread Andrew Oakley
Following several responses from this list (thanks all for your comments), I've revised the script. Notably, the script now copes with mail which has been moved to a /cur/ folder without being read. It does still ignore a few edge-case exceptions, in particular I'm not sure whether it copes in all