Re: [Dovecot] load increase after upgrade to 2.0.8

2010-12-17 Thread Cor Bosman

 Oops, now I finally understand why Mail.app kept asking for my password for 
 each mail I sent: it helpfully decided to start signing mails with the only 
 client cert I had, without asking me.. Forget about those signatures in the 
 last two mails :)
 

Heh, is that the key you used to get into our test server for this problem? :)

Cor



Re: [Dovecot] namespace and list=children inconsistencies

2010-12-17 Thread Holger Mauermann
Am 17.12.2010 01:35, schrieb Willie Gillespie:
 Eh, hard to say.
 
 From RFC 3501:
 ... A non-empty
 reference name argument is the name of a mailbox or a level of
 mailbox hierarchy, and indicates the context in which the mailbox
 name is interpreted.
 
 But, later on it says:
 Note: The interpretation of the reference argument is
 implementation-defined.

I really should read RFC 3501 completely. It's been many years since I
tried to understand the now obsolete RFC 2060 ;-) I always thought that
  LIST some/mail/box/ *
  LIST  some/mail/box/*
  LIST some/mail/ box/*
are all equivalent.

 and:
 A client SHOULD NOT use such a reference argument except
 at the explicit request of the user.

Hmmm, but this paragraph starts with:

  If the reference argument is not a level of mailbox hierarchy (that
  is, it is a \NoInferiors name), and/or the reference argument does not
  end with the hierarchy delimiter, it is implementation-dependent how
  this is interpreted. ... A client SHOULD NOT use such a reference
  argument except at the explicit request of the user.

So Shared/ seems to be a valid reference argument that may be used by
clients, because it is a level of mailbox hierarchy, it is not a
\NoInferiors name and it ends with the hierarchy delimiter.

Anyway, it works now. Thunderbird always uses  as reference argument
to list the shared namespace. And for LIST  Shared/* dovecot returns
all sub mailboxes. However, I still don't know why TB first displayed
only Shared/u...@do.main without the shared mailboxes...

Holger


Re: [Dovecot] load increase after upgrade to 2.0.8

2010-12-17 Thread Ralf Hildebrandt
* Daniel L. Miller dmil...@amfes.com:
 You mean these past two months of grief - concern over Dovecot 2.0's
 underlying design, exploring various configurations and settings, and
 general hysteria came down to...a two line patch?!?!?!

Yes. It's like that. With Windows, nobody would have ever fixed that.

-- 
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] load increase after upgrade to 2.0.8

2010-12-17 Thread Ralf Hildebrandt
* Timo Sirainen t...@iki.fi:
 On 16.12.2010, at 22.09, Daniel L. Miller wrote:
 
  You mean these past two months of grief - concern over Dovecot 2.0's 
  underlying design, exploring various configurations and settings, and 
  general hysteria came down to...a two line patch?!?!?!
 
 At least now I know much more about context switches than I ever did before :)

That's the spirit!
-- 
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] dovecot 2.0 revision 12532:e030df616faf: problem with Snarf plugin

2010-12-17 Thread Jonathan Siegle

On Dec 13, 2010, at 9:27 AM, Jonathan Siegle wrote:

 
 On Dec 13, 2010, at 8:06 AM, Timo Sirainen wrote:
 
 On Fri, 2010-12-10 at 14:45 -0500, Jonathan Siegle wrote:
 Oops! Config problem. Typing should be second nature by now huh.
 ..
 Dec 10 13:57:57 tr27n12.aset.psu.edu dovecot: imap(tstem38): Panic: file 
 index-transaction.c: line 71: assertion failed: (box-opened)
 
 What kind of a config problem? It still shouldn't crash.
 
 
 
 Actually it wasn't a config problem. I'm now able to reproduce it again. I'm 
 using mail.local from sendmail as my lda. This is on AIX 5.3 What other info 
 do you need?
 
 
Timo,
If you give me some logic to throw at this, I'll take a shot at the 
programming. I tested my snarf code and it does the same thing. 

thanks,
Jonathan

smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] dovecot 2.0 revision 12532:e030df616faf: problem with Snarf plugin

2010-12-17 Thread Timo Sirainen
On Fri, 2010-12-17 at 07:45 -0500, Jonathan Siegle wrote:
  Dec 10 13:57:57 tr27n12.aset.psu.edu dovecot: imap(tstem38): Panic: file 
  index-transaction.c: line 71: assertion failed: (box-opened)
..
   If you give me some logic to throw at this, I'll take a shot at the 
 programming. I tested my snarf code and it does the same thing. 

Does http://hg.dovecot.org/dovecot-2.0/rev/b7dd7a966a3a fix it?




[Dovecot] Dovecot 2.0.8 dysnc problems

2010-12-17 Thread Eugene Tay

Hi All,

I try to install dovecot 2 in ubuntu, but when I try dsync on virtualbox
dsync -v -u it mirror i...@10.32.1.3

it come out an error to me.

dsync-local(it): Error: Can't rename mailbox
INBOX_15a69e11bbd4014d0933a5727609 to INBOX: Target mailbox already
exists

dsync-local(it): Error: Can't rename mailbox INBOX to
INBOX_e67c001b52ca014d8f5c1f237f90: Renaming INBOX isn't supported.

May I know what is the problems on here?

 

Thanks  Regards,

Eugene Tay
-- 
View this message in context: 
http://old.nabble.com/Dovecot-2.0.8-dysnc-problems-tp30479540p30479540.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards

2010-12-17 Thread Timo Sirainen
On Fri, 2010-12-10 at 11:00 +, James Lee wrote:
 Dec  9 23:20:38 mailhost dovecot: [ID 583609 mail.crit] 
 lda(u...@domain.co.uk): Panic: stream doesn't support seeking backwards

Fixed now: http://hg.dovecot.org/dovecot-2.0/rev/89936539e3b8

It also doesn't happen if you enable Sieve plugin.




Re: [Dovecot] Permission denied

2010-12-17 Thread Charles Marcus
On 2010-12-16 3:15 PM, Alex Cherniak wrote:
 After several trouble free months and without any obvious reason our
 server just stopped working. I cannot even re-start it:
 
 [r...@dsmail /]# service dovecot start
 
 Starting Dovecot Imap: Can't open log file /var/log/dovecot.log:
 Permission denied

Are you running any security enhanced kernels (selinux, apparmor, etc)?

-- 

Best regards,

Charles


Re: [Dovecot] namespace and list=children inconsistencies

2010-12-17 Thread Timo Sirainen
On Thu, 2010-12-16 at 01:38 +0100, Holger Mauermann wrote:
 . LIST  *
 * LIST (\HasNoChildren) / INBOX
 * LIST (\Noselect \HasChildren) / Shared/u...@do.main
 * LIST (\HasNoChildren) / Shared/u...@do.main/INBOX
 * LIST (\HasChildren) / Public
 . OK List completed.
 
 . LIST Shared/ *
 * LIST (\Noselect \HasChildren) / Shared/u...@do.main
 . OK List completed.

This is a bug since it doesn't show the Shared/u...@do.main/INBOX. I'll
look into it.

 . LIST Public/ *
 . OK List completed.

This is expected.

 namespace {
   list = children
   location = cydir:/var/spool/imap/public:INDEX=~/public

You really shouldn't be using cydir. It's mainly intended for testing
and for learning how to implement a Dovecot storage backend. You should
use sdbox instead.



Re: [Dovecot] dovecot 2.0.8 LDA with MYSQL issues not solved

2010-12-17 Thread Timo Sirainen
On Thu, 2010-12-16 at 16:32 -0500, PA wrote:
 Apparently that's not it, the include is configured as !include
 conf.d/*.conf - when I changed the conf.d/ files to .conf.ext it simple
 didn't read the file and it gave me no error. Back to square one.

The sql config isn't supposed to be !included, it gets used by:

passdb {
  driver = sql
  args = /path/to/sql.conf
}

And looks like you already had it like that. So what's the problem?




Re: [Dovecot] Dovecot 2.0.8 dysnc problems

2010-12-17 Thread Timo Sirainen
On Fri, 2010-12-17 at 01:51 -0800, Eugene Tay wrote:

 I try to install dovecot 2 in ubuntu, but when I try dsync on virtualbox
 dsync -v -u it mirror i...@10.32.1.3
 
 it come out an error to me.
 
 dsync-local(it): Error: Can't rename mailbox
 INBOX_15a69e11bbd4014d0933a5727609 to INBOX: Target mailbox already
 exists
 
 dsync-local(it): Error: Can't rename mailbox INBOX to
 INBOX_e67c001b52ca014d8f5c1f237f90: Renaming INBOX isn't supported.
 
 May I know what is the problems on here?

The INBOX was already created on both servers before you synced. When
this happens with other mailboxes Dovecot just keeps one of them as
box and renames the other to box_guid. But this isn't possible with
INBOX.

dsync could be smarter here and delete the other INBOX if it's empty,
and possibly do some other stuff, but for now the only solution you have
is to just not have the INBOX exist on the other side.



Re: [Dovecot] Expire plugin does not work

2010-12-17 Thread Timo Sirainen
On Thu, 2010-12-16 at 20:55 +0100, Christoph Pleger wrote:

 dovecot: dict: Error: sqlite: exec(INSERT INTO expires 
 (expire_stamp,username,mailbox) VALUES ('1292525469','christoph','Trash')) 
 failed: unable to open database file (14)

So SQLite can't open its database. I don't know what 14 error would
mean, maybe SQLite docs can tell you.

 connect = /etc/dovecot/dovecot-dict.sqlite

Databases shouldn't really be put under /etc.. Rather
maybe /var/lib/dovecot/

 I have attached a dovecot -n-generated dovecot.conf, the configuration file 
 for the expire dict service, and my sqlite3 database file. In my filesystem, 
 dovecot-dict.sqlite currently has permissions 666.

But if it's 0666, I'm not really sure what the problem could be. You
could try if dict can access it as root:

service dict {
  user = root
}



Re: [Dovecot] dovecot 2.0 revision 12532:e030df616faf: problem with Snarf plugin

2010-12-17 Thread Jonathan Siegle

On Dec 17, 2010, at 8:16 AM, Timo Sirainen wrote:

 On Fri, 2010-12-17 at 07:45 -0500, Jonathan Siegle wrote:
 Dec 10 13:57:57 tr27n12.aset.psu.edu dovecot: imap(tstem38): Panic: file 
 index-transaction.c: line 71: assertion failed: (box-opened)
 ..
  If you give me some logic to throw at this, I'll take a shot at the 
 programming. I tested my snarf code and it does the same thing. 
 
 Does http://hg.dovecot.org/dovecot-2.0/rev/b7dd7a966a3a fix it?
 
 
Yeah thanks!



smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards

2010-12-17 Thread James Lee
On 17/12/10, 13:24:42, Timo Sirainen t...@iki.fi wrote regarding Re:
[Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking
backwards:

 Fixed now: http://hg.dovecot.org/dovecot-2.0/rev/89936539e3b8

Thank you for looking at this.  I applied the patch and tested.  Now it
doesn't crash but I was expecting it to create the directory/mailbox,
what is it supposed to do?


Dec 17 14:03:28 mailhost exim: [ID 197553 mail.info] 2010-12-17 14:03:28
1PTau7-bu-GL = ja...@domain.com H=host (domain.com) [192.168.1.8]
P=smtp S=571 id=20101217.14032700.428205...@domain.com
Dec 17 14:03:28 mailhost dovecot: [ID 583609 mail.info]
lda(ja...@domain.com): msgid=20101217.14032700.428205...@domain.com:
save failed to TEST: Mailbox doesn't exist: TEST
Dec 17 14:03:28 mailhost dovecot: [ID 583609 mail.info]
lda(ja...@domain.com): msgid=20101217.14032700.428205...@domain.com:
saved mail to INBOX
Dec 17 14:03:28 mailhost exim: [ID 197553 mail.info] 2010-12-17 14:03:28
1PTau7-bu-GL = |/opt/x/libexec/dovecot/deliver -d ja...@domain.com
-m TEST ja...@domain.com R=userforward T=address_pipe
Dec 17 14:03:28 mailhost exim: [ID 197553 mail.info] 2010-12-17 14:03:28
1PTau7-bu-GL Completed



This also has fixed the exceeded quota crash.




James.


Re: [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards

2010-12-17 Thread Timo Sirainen
On Fri, 2010-12-17 at 14:26 +, James Lee wrote:
 On 17/12/10, 13:24:42, Timo Sirainen t...@iki.fi wrote regarding Re:
 [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking
 backwards:
 
  Fixed now: http://hg.dovecot.org/dovecot-2.0/rev/89936539e3b8
 
 Thank you for looking at this.  I applied the patch and tested.  Now it
 doesn't crash but I was expecting it to create the directory/mailbox,
 what is it supposed to do?

From http://wiki2.dovecot.org/Upgrading/2.0 :

-n parameter was replaced by lda_mailbox_autocreate setting. The default
also changed to no.




Re: [Dovecot] dovecot 2.0.8 LDA with MYSQL issues not solved

2010-12-17 Thread Timo Sirainen
On Fri, 2010-12-17 at 09:52 -0500, PA wrote:
 Timo, thanks for the reply, the problem is that with dovecot 1.x the wiki 
 recommends the connect string and password_query/user_query be in the 
 sql.conf include file. According to wiki2 I should also be able to put these 
 settings on the sql.conf include file but I get an error no matter what I put 
 on there.

Do it like in the example-config. The file wasn't called sql.conf, it
was called dovecot-sql.conf.ext. It's not supposed to be !included.
That's why you get:

 doveconf: Fatal: Error in configuration file 
 /usr/local/etc/dovecot/conf.d/sql.conf line 1: Unknown setting: password_query




Re: [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards

2010-12-17 Thread James Lee
On 17/12/10, 14:53:05, Timo Sirainen t...@iki.fi wrote regarding Re: 
[Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking 
backwards:

  doesn't crash but I was expecting it to create the directory/mailbox,
  what is it supposed to do?

 From http://wiki2.dovecot.org/Upgrading/2.0 :

 -n parameter was replaced by lda_mailbox_autocreate setting. The default
 also changed to no.

Found it.  Thank you.  I was sure it used (1.2) to make the mailbox but
couldn't remember 100%.



James.





[Dovecot] Authentication issue.

2010-12-17 Thread dmitri tchernov
Hi list,

I try to run imaptest, but I get the following errors (as root):

# ./imaptest copybox=Trash  # or any other command in
http://www.imapwiki.org/ImapTest/Examples
Logi List Stat Sele Fetc Fet2 Copy Stor Dele Expu Appe Logo
100%  50%  50% 100% 100% 100%  33%  50% 100% 100% 100% 100%
  30%   5%  5%
   000000000000  10/ 10
   000000000000  10/ 10
   000000000000  10/ 10
   000000000000  10/ 10
Error: root[4]: LOGIN failed: 4.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[3]: LOGIN failed: 3.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[5]: LOGIN failed: 5.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[2]: LOGIN failed: 2.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[6]: LOGIN failed: 6.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[10]: LOGIN failed: 10.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[7]: LOGIN failed: 7.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[1]: LOGIN failed: 1.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[8]: LOGIN failed: 8.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
Error: root[9]: LOGIN failed: 9.1 NO [AUTHENTICATIONFAILED] Authentication
failed.
^C

# tail /var/log/mail.log:
Dec 17 18:07:28 dovecot: imap-login: Disconnected (auth failed, 1 attempts):
user=root, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=0, secured
Dec 17 18:08:01 dovecot: last message repeated 19 times

# tail /var/log/auth.log:
Dec 17 18:07:24 auth: pam_unix(dovecot:auth): authentication failure;
logname= uid=0 euid=0 tty=dovecot ruser=root rhost=127.0.0.1  user=root
Dec 17 18:08:01 auth: last message repeated 19 times
Dec 17 18:08:01 CRON[13916]: pam_unix(cron:session): session opened for user
root by (uid=0)
Dec 17 18:08:02 CRON[13916]: pam_unix(cron:session): session closed for user
root

# dovecot --version
2.0.2

# /usr/bin/doveconf -n -c /etc/dovecot/dovecot.conf
# 2.0.2: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.34.6-ipv6-64 x86_64 Ubuntu 10.10 ext4
auth_mechanisms = plain login digest-md5 cram-md5
disable_plaintext_auth = no
log_timestamp = %Y-%m-%d %H:%M:%S 
mail_debug = yes
mail_location = dbox:/mnt/dovecot/users/%n
mail_privileged_group = mail
mbox_read_locks = fcntl dotlock
mbox_write_locks = fcntl dotlock
mmap_disable = yes
passdb {
  args = /mnt/dovecot/userlist.passwd
  driver = passwd-file
}
passdb {
  driver = pam
}
protocols = imap pop3
service auth {
  unix_listener auth-master {
mode = 0600
user = doveusers
  }
  user = root
}
ssl = no
userdb {
  args = /mnt/dovecot/userlist.passwd
  driver = passwd-file
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  postmaster_address = my-em...@gmail.com
}


I do not understand where the problem is.  Do you have any idea?

/dimitri


[Dovecot] Per user quota on MySQL

2010-12-17 Thread M. Rodrigo Monteiro
Hi!

I'm new on Dovecot.
I'm using:
- CentOS 5.5
- Kernel 2.6.18-194.26.1.el5 x86_64
- Dovecot 2.0.8 (from source)
- Postfix 2.7.2 (from source)
- MySQL 5.0.77 (CentOS binary)
- Postfixadmin 2.3.2 (from source)
- Horde Webmail 1.2.9
- Thunderbird 3.1.7 (from CentOS)

I follow this how to: http://wiki2.dovecot.org/HowTo/DovecotLDAPostfixAdminMySQL
I was able to send and recieve e-mail via Postfix/Dovecot.

I'm having troubles in the quota.
As I said, I use Postfixadmin to manage users.
When I log in Horde, it says that the quota is unlimited. Thunderbird too.

I think it's because of the configuration on Dovecot.


Here it's my confs files:


=
dovecot.conf
=
#ssl_cert_file = /etc/pki/dovecot/certs/myserver.example.com.crt
#ssl_key_file = /etc/pki/dovecot/private/myserver.example.com.key
#ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt
#default_login_user = nobody
disable_plaintext_auth = no
log_path = /var/log/dovecot.log


auth_mechanisms = plain login
first_valid_uid = 200
last_valid_uid = 200
mail_location = maildir:/var/vmail/%d/%u
ssl = no

passdb {
  args = /usr/local/dovecot/etc/dovecot/sql.conf
  driver = sql
}
plugin {
  #acl = vfile:/usr/local/dovecot/etc/dovecot/acls
  quota = maildir:storage=10240:messages=1000
  trash = /usr/local/dovecot/etc/dovecot/trash.conf
}
service auth {
  unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
  }
  unix_listener auth-master {
group = vmail
mode = 0660
user = vmail
  }
  unix_listener /var/spool/postfix/private/auth {
group = vmail
mode = 0660
user = postfix
  }
  user = dovecot
}
userdb {
  args = /usr/local/dovecot/etc/dovecot/sql.conf
  driver = sql
}
userdb {
  driver = prefetch
}
protocol imap {
  imap_client_workarounds = delay-newmail
  mail_plugins = quota imap_quota
}
protocol pop3 {
  mail_plugins = quota
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
  mail_plugins = quota
  postmaster_address = postmas...@mydomain.com
  #log_path = /var/log/dovecot.log
  #info_log_path = /var/log/dovecot.log
}
=


=
sql.conf
=
driver = mysql
connect = host=localhost dbname=postfix user=dovecot password=password
user_query = SELECT concat('/var/vmail/', maildir) as home,
concat('maildir:/var/vmail/', maildir) as mail, 200 AS uid, 200 AS
gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM
mailbox WHERE username = '%u' AND active = '1'
=


=
mysql
=
mysql select * from mailbox;
+--++--+---+-+++-+-++
| username | password   | name
| maildir   | quota   | local_part | domain |
created | modified| active |
+--++--+---+-+++-+-++
| te...@mydomain.com | $1$bb3d6a71$IF/FORTbdoIqdzBLuSciJ0 | E-mail
Teste | mydomain.com/teste/ | 1024000 | teste  | mydomain.com |
2010-12-17 10:32:16 | 2010-12-17 11:46:24 |  1 |
+--++--+---+-+++-+-++
=


=
mysql_virtual_mailbox_limit_maps.cf
=
user= postfix
password= password
hosts   = localhost
dbname  = postfix
query   = SELECT quota FROM mailbox WHERE username='%s' AND active = '1'
=


I think it's it. If I forgot something, please let me know.


Regards,
Rodrigo.

-- 

M. Rodrigo Monteiro

Free as in Freedom, not free as in free beer
As we are liberated from our own fear, our presence automatically
liberates others
Linux User # 403730

Pense antes de imprimir. Think before printing.

AVISO LEGAL
Esta mensagem é destinada exclusivamente para a(s) pessoa(s) a quem é
dirigida, podendo conter informação confidencial e/ou legalmente
privilegiada. Se você não for destinatário desta mensagem, desde já
fica notificado de abster-se a divulgar, copiar, distribuir, examinar
ou, de qualquer forma, utilizar a informação contida nesta mensagem,
por ser ilegal. Caso você tenha recebido esta mensagem por engano,
pedimos que nos retorne este E-Mail, promovendo, desde logo, a
eliminação do seu conteúdo em sua base de dados, registros ou sistema
de controle. Fica desprovida de eficácia e validade a mensagem que
contiver vínculos obrigacionais, expedida por quem não detenha poderes
de representação.

LEGAL ADVICE
This message is exclusively destined for the people to whom it is
directed, and it can bear private and/or legally exceptional
information. If you are not addressee of this message, since now you
are advised to not release, copy, distribute, check or, otherwise, use
the 

Re: [Dovecot] Authentication issue.

2010-12-17 Thread Pascal Volk
On 12/17/2010 06:16 PM dmitri tchernov wrote:
 …
 # ./imaptest copybox=Trash  # or any other command in
 …
 Error: root[4]: LOGIN failed: 4.1 NO [AUTHENTICATIONFAILED] Authentication
 failed.
 …
 ^C
 
 # tail /var/log/mail.log:
 Dec 17 18:07:28 dovecot: imap-login: Disconnected (auth failed, 1 attempts):
 user=root, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=0, secured
 Dec 17 18:08:01 dovecot: last message repeated 19 times
 
 # dovecot --version
 2.0.2

Version 2.0.8 is available …

 I do not understand where the problem is.  Do you have any idea?

Don't try to login as root. Use a human account.


Regards,
Pascal
-- 
The trapper recommends today: 5e1f1e55.1035...@localdomain.org


Re: [Dovecot] Authentication issue.

2010-12-17 Thread dmitri tchernov
On Fri, Dec 17, 2010 at 6:38 PM, Pascal Volk 
user+dove...@localhost.localdomain.orguser%2bdove...@localhost.localdomain.org
 wrote:

 On 12/17/2010 06:16 PM dmitri tchernov wrote:Dec 17 18:08:01 dovecot: last
 message repeated 19 times
 
  # dovecot --version
  2.0.2

 Version 2.0.8 is available …


For some reasons, I can't update the version.


  I do not understand where the problem is.  Do you have any idea?

 Don't try to login as root. Use a human account.


Same errors.


Re: [Dovecot] Authentication issue.

2010-12-17 Thread Pascal Volk
On 12/17/2010 06:44 PM dmitri tchernov wrote:
 Same errors.

Set auth_debug=yes, execute `dovecot realod` and check your logs
(`doveadm log find`).


Regards,
Pascal
-- 
The trapper recommends today: 5e1f1e55.1035...@localdomain.org


Re: [Dovecot] Authentication issue.

2010-12-17 Thread dmitri tchernov
On Fri, Dec 17, 2010 at 6:49 PM, Pascal Volk 
user+dove...@localhost.localdomain.orguser%2bdove...@localhost.localdomain.org
 wrote:

 On 12/17/2010 06:44 PM dmitri tchernov wrote:
  Same errors.

 Set auth_debug=yes, execute `dovecot realod` and check your logs
 (`doveadm log find`).



/var/log/syslog:
Dec 17 18:54:17 dovecot: auth: pam(test1,127.0.0.1): pam_authenticate()
failed: Authentication failure (password mismatch?)
Dec 17 18:54:19 dovecot: last message repeated 9 times
Dec 17 18:54:19 dovecot: auth: Debug: client out:
FAIL#0111#011user=test1
Dec 17 18:54:19 dovecot: last message repeated 9 times
Dec 17 18:54:19 dovecot: imap-login: Disconnected (auth failed, 1 attempts):
user=test1, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=0,
secured

/var/log/mail.log:
Dec 17 18:54:14 dovecot: auth: pam(test1,127.0.0.1): pam_authenticate()
failed: Authentication failure (password mismatch?)
Dec 17 18:54:16 dovecot: last message repeated 9 times
Dec 17 18:54:16 dovecot: auth: Debug: client out:
FAIL#0111#011user=test1
Dec 17 18:54:16 dovecot: last message repeated 9 times
Dec 17 18:54:16 dovecot: imap-login: Disconnected (auth failed, 1 attempts):
user=test1, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=0,
secured
Dec 17 18:54:16 dovecot: last message repeated 9 times
Dec 17 18:54:16 dovecot: auth: Debug: auth client connected (pid=16351)
Dec 17 18:54:16 dovecot: auth: Debug: client in:
AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=33814#011resp=hidden
Dec 17 18:54:16 dovecot: auth: Debug: passwd-file(test1,127.0.0.1):
lookup: user=test1 file=/mnt/dovecot/userlist.passwd

/var/log/auth.log:
Dec 17 18:54:12 auth: pam_unix(dovecot:auth): authentication failure;
logname= uid=0 euid=0 tty=dovecot ruser=test1 rhost=127.0.0.1
user=test1
Dec 17 18:54:18 auth: last message repeated 19 times
Dec 17 18:54:18 su[16279]: pam_unix(su:session): session closed for user
test1



Regards,
 Pascal
 --
 The trapper recommends today: 5e1f1e55.1035...@localdomain.org



Re: [Dovecot] Authentication issue.

2010-12-17 Thread dmitri tchernov
On Fri, Dec 17, 2010 at 6:59 PM, dmitri tchernov
mitia.tcher...@gmail.comwrote:



 On Fri, Dec 17, 2010 at 6:49 PM, Pascal Volk 
 user+dove...@localhost.localdomain.orguser%2bdove...@localhost.localdomain.org
  wrote:

 On 12/17/2010 06:44 PM dmitri tchernov wrote:
  Same errors.

 Set auth_debug=yes, execute `dovecot realod` and check your logs
 (`doveadm log find`).



 /var/log/syslog:
 Dec 17 18:54:17 dovecot: auth: pam(test1,127.0.0.1): pam_authenticate()
 failed: Authentication failure (password mismatch?)
 Dec 17 18:54:19 dovecot: last message repeated 9 times
 Dec 17 18:54:19 dovecot: auth: Debug: client out:
 FAIL#0111#011user=test1
 Dec 17 18:54:19 dovecot: last message repeated 9 times
 Dec 17 18:54:19 dovecot: imap-login: Disconnected (auth failed, 1
 attempts): user=test1, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
 mpid=0, secured

 /var/log/mail.log:
 Dec 17 18:54:14 dovecot: auth: pam(test1,127.0.0.1): pam_authenticate()
 failed: Authentication failure (password mismatch?)
 Dec 17 18:54:16 dovecot: last message repeated 9 times
 Dec 17 18:54:16 dovecot: auth: Debug: client out:
 FAIL#0111#011user=test1
 Dec 17 18:54:16 dovecot: last message repeated 9 times
 Dec 17 18:54:16 dovecot: imap-login: Disconnected (auth failed, 1
 attempts): user=test1, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
 mpid=0, secured
 Dec 17 18:54:16 dovecot: last message repeated 9 times
 Dec 17 18:54:16 dovecot: auth: Debug: auth client connected (pid=16351)
 Dec 17 18:54:16 dovecot: auth: Debug: client in:
 AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=33814#011resp=hidden
 Dec 17 18:54:16 dovecot: auth: Debug: passwd-file(test1,127.0.0.1):
 lookup: user=test1 file=/mnt/dovecot/userlist.passwd

 /var/log/auth.log:
 Dec 17 18:54:12 auth: pam_unix(dovecot:auth): authentication failure;
 logname= uid=0 euid=0 tty=dovecot ruser=test1 rhost=127.0.0.1
 user=test1
 Dec 17 18:54:18 auth: last message repeated 19 times
 Dec 17 18:54:18 su[16279]: pam_unix(su:session): session closed for user
 test1



Uh, I also have:

/var/log/mail.err:
Dec 17 18:48:35 dovecot: auth: Error: userdb(test1,127.0.0.1): user not
found from userdb passwd-file
Dec 17 18:48:35 dovecot: imap: Error: Authenticated user not found from
userdb

When I check /mnt/dovecot/userlist.passwd, everything looks ok.



  Regards,
 Pascal
 --
 The trapper recommends today: 5e1f1e55.1035...@localdomain.org





Re: [Dovecot] Authentication issue.

2010-12-17 Thread Pascal Volk
On 12/17/2010 07:02 PM dmitri tchernov wrote:
 
 When I check /mnt/dovecot/userlist.passwd, everything looks ok.

Please show your configuration: doveconf -n


Regards,
Pascal
-- 
The trapper recommends today: f007ba11.1035...@localdomain.org


Re: [Dovecot] Per user quota on MySQL

2010-12-17 Thread M. Rodrigo Monteiro
On Fri, Dec 17, 2010 at 14:50, Henrique Fernandes sf.ri...@gmail.com wrote:
 Try to use doveadm quota get to see if it is working!

There is no quota in doveadm.


# /usr/local/dovecot/bin/doveadm
usage: doveadm [-Dv] [-f formatter] command [args]

  altmove  [-u user|-A] [-S socket_path] search query
  auth [-a auth socket path] [-x auth info] user [password]
  config   [doveconf parameters]
  director add|flush|map|remove|status
  dump [-t type] path
  expunge  [-u user|-A] [-S socket_path] search query
  fetch[-u user|-A] [-S socket_path] fields search query
  force-resync [-u user|-A] [-S socket_path] mailbox
  help cmd
  import   [-u user|-A] [-S socket_path] source mail
location dest parent mailbox search query
  kick [-a anvil socket path] [-f] user mask[|]ip/bits
  log  find|reopen|test
  mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
  penalty  [-a anvil socket path] [ip/bits]
  purge[-u user|-A] [-S socket_path]
  pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
  reload
  search   [-u user|-A] [-S socket_path] search query
  sis  deduplicate|find
  stop
  user [-a userdb socket path] [-x auth info] user mask [...]
  who  [-a anvil socket path] [-1] [user mask] [ip/bits]



-- 
M. Rodrigo Monteiro

Free as in Freedom, not free as in free beer
As we are liberated from our own fear, our presence automatically
liberates others
Linux User # 403730

Pense antes de imprimir. Think before printing.

AVISO LEGAL
Esta mensagem é destinada exclusivamente para a(s) pessoa(s) a quem é
dirigida, podendo conter informação confidencial e/ou legalmente
privilegiada. Se você não for destinatário desta mensagem, desde já
fica notificado de abster-se a divulgar, copiar, distribuir, examinar
ou, de qualquer forma, utilizar a informação contida nesta mensagem,
por ser ilegal. Caso você tenha recebido esta mensagem por engano,
pedimos que nos retorne este E-Mail, promovendo, desde logo, a
eliminação do seu conteúdo em sua base de dados, registros ou sistema
de controle. Fica desprovida de eficácia e validade a mensagem que
contiver vínculos obrigacionais, expedida por quem não detenha poderes
de representação.

LEGAL ADVICE
This message is exclusively destined for the people to whom it is
directed, and it can bear private and/or legally exceptional
information. If you are not addressee of this message, since now you
are advised to not release, copy, distribute, check or, otherwise, use
the information contained in this message, because it is illegal. If
you received this message by mistake, we ask you to return this email,
making possible, as soon as possible, the elimination of its contents
of your database, registrations or controls system. The message that
bears any mandatory links, issued by someone who has no representation
powers, shall be null or void.


Re: [Dovecot] Per user quota on MySQL

2010-12-17 Thread Henrique Fernandes
It is missing an global mail plugins conf!
[]'sf.rique


On Fri, Dec 17, 2010 at 4:07 PM, Pascal Volk 
user+dove...@localhost.localdomain.orguser%2bdove...@localhost.localdomain.org
 wrote:

 On 12/17/2010 07:06 PM M. Rodrigo Monteiro wrote:
 
  There is no quota in doveadm.

 See the note at: http://wiki2.dovecot.org/Tools/Doveadm/Quota


 Regards,
 Pascal
 --
 The trapper recommends today: f007ba11.1035...@localdomain.org



Re: [Dovecot] Authentication issue.

2010-12-17 Thread Pascal Volk
On 12/17/2010 07:27 PM dmitri tchernov wrote:
 
 # /usr/bin/doveconf userdb
 userdb {
   args = /mnt/dovecot/userlist.passwd
   driver = passwd-file
 }
 
 Well spotted, an UTF-8 character was in the file at the wrong place.  I had:
 # doveadm user test1
 userdb lookup: user test1 doesn't exist
 
 And now:
 # doveadm user test1
 userdb: test1
   uid   : 1001
   gid   : 1001
 
 # dovecot reload
 #
 
 I run the imaptest with user test1, and I have the following lines in
 /var/log/mail.log:
 Dec 17 19:22:48 dovecot: auth: Debug: client in:
 AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=49371#011resp=hidden
 Dec 17 19:22:48 dovecot: auth: Debug: passwd-file(test1,127.0.0.1):
 lookup: user=test1 file=/mnt/dovecot/userlist.passwd
 Dec 17 19:22:48 dovecot: auth: passwd-file(test1,127.0.0.1): Password
 mismatch
 Dec 17 19:22:48 dovecot: auth: Debug: pam(test1,127.0.0.1): lookup
 service=dovecot
 Dec 17 19:22:48 dovecot: auth: Debug: pam(test1,127.0.0.1): #1/1 style=1
 msg=Password:
 Dec 17 19:22:50 dovecot: auth: pam(test1,127.0.0.1): pam_authenticate()
 failed: Authentication failure (password mismatch?)
 
 # doveadm auth test1 the password supplied in userlist.passwd for this
 user
 passdb: test1 auth succeeded
 extra fields:
   user=test1


,--[ …/conf.d/10-logging.conf ]--
| # In case of password mismatches, log the passwords and used scheme so the
| # problem can be debugged. Enabling this also enables auth_debug.
| #auth_debug_passwords = no
`--

Set auth_debug_passwords to yes, Dovecot will log the reason why
authentication fails.


Regards,
Pascal
-- 
The trapper recommends today: f007ba11.1035...@localdomain.org


Re: [Dovecot] Per user quota on MySQL

2010-12-17 Thread M. Rodrigo Monteiro
On Fri, Dec 17, 2010 at 15:41, Henrique Fernandes sf.ri...@gmail.com wrote:
 It is missing an global mail plugins conf!
 []'sf.rique


Ok, now I have the quota in dovecotadm.

doveadm quota get -u te...@domain.com
Quota name
  TypeValue Limit %
storage=1024000
  STORAGE  5584 - 0
storage=1024000
  MESSAGE 7 - 0

But I don't know how to configure to get work quota per user with Postfixadmin.

Anyone?


Regards,
Rodrigo.

-- 
M. Rodrigo Monteiro

Free as in Freedom, not free as in free beer
As we are liberated from our own fear, our presence automatically
liberates others
Linux User # 403730

Pense antes de imprimir. Think before printing.

AVISO LEGAL
Esta mensagem é destinada exclusivamente para a(s) pessoa(s) a quem é
dirigida, podendo conter informação confidencial e/ou legalmente
privilegiada. Se você não for destinatário desta mensagem, desde já
fica notificado de abster-se a divulgar, copiar, distribuir, examinar
ou, de qualquer forma, utilizar a informação contida nesta mensagem,
por ser ilegal. Caso você tenha recebido esta mensagem por engano,
pedimos que nos retorne este E-Mail, promovendo, desde logo, a
eliminação do seu conteúdo em sua base de dados, registros ou sistema
de controle. Fica desprovida de eficácia e validade a mensagem que
contiver vínculos obrigacionais, expedida por quem não detenha poderes
de representação.

LEGAL ADVICE
This message is exclusively destined for the people to whom it is
directed, and it can bear private and/or legally exceptional
information. If you are not addressee of this message, since now you
are advised to not release, copy, distribute, check or, otherwise, use
the information contained in this message, because it is illegal. If
you received this message by mistake, we ask you to return this email,
making possible, as soon as possible, the elimination of its contents
of your database, registrations or controls system. The message that
bears any mandatory links, issued by someone who has no representation
powers, shall be null or void.


Re: [Dovecot] Expire plugin does not work

2010-12-17 Thread Christoph Pleger
Hello,

 But if it's 0666, I'm not really sure what the problem could be. You
 could try if dict can access it as root:

 service dict {
   user = root
 }

I have found the solution: The directory where the sqlite3 database resides 
must be writable by the dovecot user. 

Regards
  Christoph


[Dovecot] Problem with expunge

2010-12-17 Thread Jeff Mitchell
I'm running Dovecot 2.0.8.

The other day I tested doveadm expunge on a test Inbox with a few
messages received over the course of a day, and using savedbefore a
few hours, and it seemed to work.

However, today I was testing converting some maildirs over to sdbox,
and noticed odd behavior: it's deleting all messages in the specified
folder instead of just the ones matching the condition I'm using
(savedbefore 4w).

The command I'm using is doveadm -Dv expunge -A mailbox Trash savedbefore 4w

Because of the conversion, all of the ctimes for all of the files are
actually the same (basically, a few minutes ago), due to the
converstion to sdbox from maildir, so I would expect that either it
doesn't delete any of them or looks inside at some header of the mail
(half of which was received/placed into Trash before 4w ago and half
of which wasn't). I definitely don't expect full-on deletion...

Any idea what's going on?

Thanks,
Jeff


[Dovecot] undefined reference to fallocate64

2010-12-17 Thread Mike Korizek
Hi

While compiling dovecot 2.0.8 on Ubuntu 9.10 I get the following error
at make:

../../src/lib-dovecot/.libs/libdovecot.so: undefined reference to
`fallocate64'

Any idea how to resolve this?

Thanks,
Mike


Re: [Dovecot] undefined reference to fallocate64

2010-12-17 Thread Timo Sirainen
On 18.12.2010, at 0.04, Mike Korizek wrote:

 While compiling dovecot 2.0.8 on Ubuntu 9.10 I get the following error
 at make:
 
 ../../src/lib-dovecot/.libs/libdovecot.so: undefined reference to
 `fallocate64'
 
 Any idea how to resolve this?

By not using Ubuntu 9.10. Older or newer versions of Ubuntu will compile fine. 
Alternatively you can remove #define HAVE_FALLOCATE from config.h after running 
configure.



Re: [Dovecot] Problem with expunge

2010-12-17 Thread Timo Sirainen
On 17.12.2010, at 21.15, Jeff Mitchell wrote:

 However, today I was testing converting some maildirs over to sdbox,
 and noticed odd behavior: it's deleting all messages in the specified
 folder instead of just the ones matching the condition I'm using
 (savedbefore 4w).
 
 Because of the conversion, all of the ctimes for all of the files are
 actually the same (basically, a few minutes ago),

dbox doesn't use ctime, but a saved-date metadata header. I suppose that 
header got set wrong in the conversion for some reason (maybe to 0 = year 
1970?). You did conversion with dsync, right? I can debug this some day later..



Re: [Dovecot] Authentication issue.

2010-12-17 Thread dmitri tchernov
On Fri, Dec 17, 2010 at 7:57 PM, Pascal Volk 
user+dove...@localhost.localdomain.orguser%2bdove...@localhost.localdomain.org
 wrote:

 On 12/17/2010 07:27 PM dmitri tchernov wrote:
 
  # /usr/bin/doveconf userdb
  userdb {
args = /mnt/dovecot/userlist.passwd
driver = passwd-file
  }
 
  Well spotted, an UTF-8 character was in the file at the wrong place.  I
 had:
  # doveadm user test1
  userdb lookup: user test1 doesn't exist
 
  And now:
  # doveadm user test1
  userdb: test1
uid   : 1001
gid   : 1001
 
  # dovecot reload
  #
 
  I run the imaptest with user test1, and I have the following lines in
  /var/log/mail.log:
  Dec 17 19:22:48 dovecot: auth: Debug: client in:
 
 AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=49371#011resp=hidden
  Dec 17 19:22:48 dovecot: auth: Debug: passwd-file(test1,127.0.0.1):
  lookup: user=test1 file=/mnt/dovecot/userlist.passwd
  Dec 17 19:22:48 dovecot: auth: passwd-file(test1,127.0.0.1): Password
  mismatch
  Dec 17 19:22:48 dovecot: auth: Debug: pam(test1,127.0.0.1): lookup
  service=dovecot
  Dec 17 19:22:48 dovecot: auth: Debug: pam(test1,127.0.0.1): #1/1
 style=1
  msg=Password:
  Dec 17 19:22:50 dovecot: auth: pam(test1,127.0.0.1):
 pam_authenticate()
  failed: Authentication failure (password mismatch?)
 
  # doveadm auth test1 the password supplied in userlist.passwd for
 this
  user
  passdb: test1 auth succeeded
  extra fields:
user=test1


 ,--[ …/conf.d/10-logging.conf ]--
 | # In case of password mismatches, log the passwords and used scheme so
 the
 | # problem can be debugged. Enabling this also enables auth_debug.
 | #auth_debug_passwords = no
 `--

 Set auth_debug_passwords to yes, Dovecot will log the reason why
 authentication fails.


Thank you very much for your patience, Pascal.  It appeared that imaptest
wanted a fixed password (pass), regardless of test1's one.  Thus, I
set pass as the password in userlist.passwd for test1, so that
imaptest eventually stop complaining.



 Regards,
 Pascal
 --
 The trapper recommends today: f007ba11.1035...@localdomain.org



Re: [Dovecot] Problem with expunge

2010-12-17 Thread Jeff Mitchell
On Dec 17, 2010 7:20 PM, Timo Sirainen t...@iki.fi wrote:

 On 17.12.2010, at 21.15, Jeff Mitchell wrote:

  However, today I was testing converting some maildirs over to sdbox,
  and noticed odd behavior: it's deleting all messages in the specified
  folder instead of just the ones matching the condition I'm using
  (savedbefore 4w).
 
  Because of the conversion, all of the ctimes for all of the files are
  actually the same (basically, a few minutes ago),

 dbox doesn't use ctime, but a saved-date metadata header. I suppose that
header got set wrong in the conversion for some reason (maybe to 0 = year
1970?). You did conversion with dsync, right? I can debug this some day
later..


Yes, this was using dsync.

Thanks,
Jeff