Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread 邓卫华
In Testing: Note that the warning is ONLY executed at the exact time when the limit is being crossed, so when you're testing it you have to do it by crossing the limit by saving a new mail. If something else besides Dovecot updates quota so that the limit is crossed, the warning is never exec

Re: [Dovecot] http://www.linuxquestions.org/questions/showthread.php?p=4266798#post4266798

2011-02-22 Thread Matt Rude
On 2/21/2011 9:52 PM, Asiri wrote: Hi, We set up a new mail server and moved users' "cur,new and tmp" folders only into new mail server from old server.In other words we did not copy and paste dovecot.index,dovecot-uidlist,etc into new server from old server because they were created automatica

Re: [Dovecot] Quotas from LDAP

2011-02-22 Thread Sven Hartge
Timo Sirainen wrote: > On 23.2.2011, at 1.27, Sven Hartge wrote: So, %$ ist always the value of the referenced attribute? What if there are multiple values, by accident or by design? >> >>> Won't work right now. >> >> Will it cause the mail to be bounced or just deferred? Or just >> i

Re: [Dovecot] Quotas from LDAP

2011-02-22 Thread Timo Sirainen
On 23.2.2011, at 1.27, Sven Hartge wrote: >>> So, %$ ist always the value of the referenced attribute? What if >>> there are multiple values, by accident or by design? > >> Won't work right now. > > Will it cause the mail to be bounced or just deferred? Or just ignored > and the first/last/rando

Re: [Dovecot] Quotas from LDAP

2011-02-22 Thread Sven Hartge
Timo Sirainen wrote: > On 23.2.2011, at 0.38, Sven Hartge wrote: and what does %$ mean? >> >>> It's the value of quotaBytes LDAP attribute. So the idea is that you >>> have: >> >>> ldap-attribute-name=dovecot-setting-name=dovecot-setting-value >> >> So, %$ ist always the value of the refe

Re: [Dovecot] Quotas from LDAP

2011-02-22 Thread Timo Sirainen
On 23.2.2011, at 0.38, Sven Hartge wrote: >>> and what does %$ mean? > >> It's the value of quotaBytes LDAP attribute. So the idea is that you have: > >> ldap-attribute-name=dovecot-setting-name=dovecot-setting-value > > So, %$ ist always the value of the referenced attribute? Yeah. > What if

Re: [Dovecot] Quotas from LDAP

2011-02-22 Thread Sven Hartge
Timo Sirainen wrote: > On 23.2.2011, at 0.17, Sven Hartge wrote: >> user_attrs = homeDirectory=home,quotaBytes=quota_rule=*:bytes=%$ >> >> get the quota from LDAP into dovecot? What are the LDAP attributes used > quotaBytes is the LDAP attribute name which contains the quota limit in bytes. Ar

Re: [Dovecot] Problem with expire plugin and expunge

2011-02-22 Thread Christoph Pleger
Hello, > Are the timestamps wrong in the database? They should contain the > timestamp of the oldest save-date of message in the mailbox. How can I look at the timestamps and check them? I opened my database with sqlite3 and entered "select * from expires;" this showed only one line: christoph|

Re: [Dovecot] Quotas from LDAP

2011-02-22 Thread Timo Sirainen
On 23.2.2011, at 0.17, Sven Hartge wrote: > user_attrs = homeDirectory=home,quotaBytes=quota_rule=*:bytes=%$ > > get the quota from LDAP into dovecot? What are the LDAP attributes used quotaBytes is the LDAP attribute name which contains the quota limit in bytes. > and what does %$ mean? It's

[Dovecot] Quotas from LDAP

2011-02-22 Thread Sven Hartge
Hi all! I have been reading http://wiki2.dovecot.org/Quota/Configuration over and over for the last two days, but something totally escapes my brain right now: How does user_attrs = homeDirectory=home,quotaBytes=quota_rule=*:bytes=%$ get the quota from LDAP into dovecot? What are the LDAP attr

Re: [Dovecot] Segmentation fault running doveadm import

2011-02-22 Thread Maria Arrea
I also have a core file (952 k), Timo, may I send it to you off-list? Regards Maria - Original Message - From: Timo Sirainen Sent: 02/22/11 01:38 PM To: Maria Arrea Subject: Re: [Dovecot] Segmentation fault running doveadm import On Tue, 2011-02-22 at 12:07 +, Maria Arrea wrote:

Re: [Dovecot] Segmentation fault running doveadm import

2011-02-22 Thread Maria Arrea
Timo, with debug symbols enabled: GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Timo Sirainen
On 22.2.2011, at 23.28, Nikolaos Milas wrote: > Feb 22 23:02:35 vmail dovecot: POP3(tester): Quota rule: root=User quota > mailbox=* bytes=102400 messages=0 Looks right. > No warning mail was sent, at any point, even when the last mail was received, > which exceeded the quota. That log was fr

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Nikolaos Milas
Here is a session logged with mail_debug=yes; the mailbox has already exceeded quota (I set it to 100K for testing). Note that I have only changed IP addresses (actual ones are public) and main domain name: Feb 22 23:02:31 vmail dovecot: POP3(tester): Disconnected: Logged out top=0/0, retr=1/8

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Nikolaos Milas
I forgot to cc the list in my subsequent question in this thread, so that question and Timo's reply has not been included in the mailing list. I am submitting for thread completeness, thanking Timo for his invaluable help. Nick On 22/2/2011 6:23 μμ, Timo Sirainen wrote: On 22.2.2011, at 18

Re: [Dovecot] shared folder

2011-02-22 Thread Robert Schetterer
Am 22.02.2011 17:43, schrieb Eric Broch: > Hello list, > > I have dovecot-1.2.3 installed on my mail server upgrade to 2.x . I created a shared > directory which works fine show conf , however, this shared directory has over 16GB very small > of email and when users, 40 to 50 of them, login

[Dovecot] shared folder

2011-02-22 Thread Eric Broch
Hello list, I have dovecot-1.2.3 installed on my mail server. I created a shared directory which works fine, however, this shared directory has over 16GB of email and when users, 40 to 50 of them, login to their IMAP account and download of the contents of this shared folder begins on their

Re: [Dovecot] Configuration of LMTP Reject Code

2011-02-22 Thread Petter Urkedal
On 2011-02-22, Timo Sirainen wrote: > On Tue, 2011-02-22 at 11:02 +0100, Petter Urkedal wrote: > > userdb { > > driver = passwd > > args = home=/srv/mail/nbi.ku.dk/%1n/%n mail=maildir:~/Maildir > > } > > The problem with passwd is that it can't separate "user doesn't exist" > f

Re: [Dovecot] Segmentation fault running doveadm import

2011-02-22 Thread Timo Sirainen
On Tue, 2011-02-22 at 12:07 +, Maria Arrea wrote: > gdb --args doveadm import -u ox...@us.es > mdbox:/backup/bacula-restores/buzones/mysite/15/b1/ox101/ "" all Look good. > Reading symbols from /usr/bin/doveadm...(no debugging symbols > found)...done. But this doesn't. So: > Program rec

Re: [Dovecot] Dovecot 1.2, problem with SQL quota and mail aliases

2011-02-22 Thread Jacek Osiecki
On Tue, 22 Feb 2011, Timo Sirainen wrote: On Thu, 2011-02-17 at 14:10 +0100, Jacek Osiecki wrote: And my question is: what is used as "username"? Always the username given wher user logs in? Is there a way to provide some dictionary to translate all aliases to the real username? Username shoul

Re: [Dovecot] Rejected mails

2011-02-22 Thread Jerry
On Tue, 22 Feb 2011 10:37:58 +0800 sunhux G articulated: > Sending outgoing emails from this dovecot/postfix server is Ok > (ie emails received at destination) but incoming mails keep > getting the logs below : > > smtp.myportaltech.com[202.6.163.31]:25: Connection timed out > Feb 21 16:37:04 ho

Re: [Dovecot] Segmentation fault running doveadm import

2011-02-22 Thread Maria Arrea
I have followed the instructions about bug reports /generating cores located at http://dovecot.org/bugreport.html . You should consider adding additional info for cores & Red Hat Systems to your wiki, this link was very informative: http://www.akadia.com/services/ora_enable_core.html As user "

[Dovecot] systemd socket and service

2011-02-22 Thread Vasiliy G Tolstov
Hello. I'm use systemd and have some questions: 1) Why dovecot.socket contains only imap ListenStream? [Unit] Description=Dovecot IMAP/POP3 email server activation socket [Socket] #dovecot expects separate IPv4 and IPv6 sockets BindIPv6Only=ipv6-only ListenStream=0.0.0.0:143 ListenStream=[::]:143

Re: [Dovecot] Sharing mails with other users without copying data

2011-02-22 Thread Timo Sirainen
On Tue, 2011-02-22 at 11:06 +0100, Ernesto Revilla Derksen wrote: > We would like to share mails without copying the data to another mailbox. What do you mean by "share"? Share how? Via IMAP protocol and shared mailboxes? > The problem is that we use exim4 for delivery and maildir++ format. > >

Re: [Dovecot] Configuration of LMTP Reject Code

2011-02-22 Thread Timo Sirainen
On Tue, 2011-02-22 at 11:02 +0100, Petter Urkedal wrote: > userdb { > driver = passwd > args = home=/srv/mail/nbi.ku.dk/%1n/%n mail=maildir:~/Maildir > } The problem with passwd is that it can't separate "user doesn't exist" from "temporary error". http://wiki2.dovecot.org/User

[Dovecot] Sharing mails with other users without copying data

2011-02-22 Thread Ernesto Revilla Derksen
Hello. We would like to share mails without copying the data to another mailbox. The problem is that we use exim4 for delivery and maildir++ format. Would it be feasible to create a symlink or hardlink using the COPY or COPYlike (extension) command? Regards. Erny Ernesto Revilla Yaco Sistemas

Re: [Dovecot] Configuration of LMTP Reject Code

2011-02-22 Thread Petter Urkedal
On 2011-02-22, Timo Sirainen wrote: > On Mon, 2011-02-21 at 11:05 +0100, Petter Urkedal wrote: > > Is it possible to change the reject codes from the Dovecot LMTP agent? > > In particular I would like to change the "550 5.1.1 <...> User doesn't > > exist." to a temporary failure, since we already v

Re: [Dovecot] [Q] A mix-up between /%d/%u/ and /%d/%n for virtual users

2011-02-22 Thread J4K
On 02/22/2011 10:38 AM, J4K wrote: > On 02/22/2011 09:53 AM, Timo Sirainen wrote: >> On Mon, 2011-02-21 at 16:53 +0100, J4K wrote: >>> As a result I have maildirs being created for both (e.g): >>> /var/vmail/bigdomain.com/d...@bigdomain.com >>> /var/vmail/bigdomain.com/dirk >>> >>> >>> The actual e

Re: [Dovecot] need help with public namespaces

2011-02-22 Thread Pierfrancesco Caci
:-> "Timo" == Timo Sirainen writes: > On Fri, 2011-02-18 at 12:39 +0100, Pierfrancesco Caci wrote: >> │ ├── dovecot.shared > dovecot-shared, not dovecot.shared head -> desk :-( Thanks Pf -- -

[Dovecot] [SOLVED ]Re: imap-login ESTABLISHED client sessions not timed out by server

2011-02-22 Thread J4K
On 02/22/2011 10:37 AM, Timo Sirainen wrote: > On Tue, 2011-02-22 at 09:50 +0100, J4K wrote: >> Good morning everyone, >> >> I noticed some mobile client connections that I know should have >> timed out at least 20 mins ago, yet these are still there. The device >> in question lost its 3G conn

Re: [Dovecot] [Q] A mix-up between /%d/%u/ and /%d/%n for virtual users

2011-02-22 Thread J4K
On 02/22/2011 09:53 AM, Timo Sirainen wrote: > On Mon, 2011-02-21 at 16:53 +0100, J4K wrote: >> As a result I have maildirs being created for both (e.g): >> /var/vmail/bigdomain.com/d...@bigdomain.com >> /var/vmail/bigdomain.com/dirk >> >> >> The actual email is placed in >> /var/vmail/bigdomain.co

[Dovecot] http://www.linuxquestions.org/questions/showthread.php?p=4266798#post4266798

2011-02-22 Thread Asiri
Hi, We set up a new mail server and moved users' "cur,new and tmp" folders only into new mail server from old server.In other words we did not copy and paste dovecot.index,dovecot-uidlist,etc into new server from old server because they were created automatically.After bringing the new server up,

Re: [Dovecot] imap-login ESTABLISHED client sessions not timed out by server

2011-02-22 Thread Timo Sirainen
On Tue, 2011-02-22 at 09:50 +0100, J4K wrote: > Good morning everyone, > > I noticed some mobile client connections that I know should have > timed out at least 20 mins ago, yet these are still there. The device > in question lost its 3G connection and never re-established it. I know, > beca

Re: [Dovecot] passwd userbase and multiple email adresses

2011-02-22 Thread Timo Sirainen
You probably only want alias forwards, so yes, I'd say you should do this entirely on Postfix side and nothing on Dovecot. On Tue, 2011-02-15 at 00:53 +0100, spamv...@googlemail.com wrote: > do i have to use the virtual_alias_maps for that ? > > t...@example.com test > i...@example.com test > ...

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Timo Sirainen
Auth binding is done ONLY for passdb lookup. After that it's unbound. Userdb lookups can't do auth binding, because they don't know the password. So userdb lookups bind to the "dn" setting to do the lookup. You need to set "dn" setting. On Tue, 2011-02-22 at 11:07 +0200, Nikolaos Milas wrote: > Th

Re: [Dovecot] Dovecot 1.2, problem with SQL quota and mail aliases

2011-02-22 Thread Timo Sirainen
On Thu, 2011-02-17 at 14:10 +0100, Jacek Osiecki wrote: > And my question is: what is used as "username"? Always the username given > wher user logs in? Is there a way to provide some dictionary to translate > all aliases to the real username? Username should uniquely identify the user's mailbo

Re: [Dovecot] need help with public namespaces

2011-02-22 Thread Timo Sirainen
On Fri, 2011-02-18 at 12:39 +0100, Pierfrancesco Caci wrote: > │ ├── dovecot.shared dovecot-shared, not dovecot.shared

Re: [Dovecot] Dovecot doesn't show any e-mails, while there are a lot in the maildir

2011-02-22 Thread Timo Sirainen
On Fri, 2011-02-18 at 11:52 +0100, Attila Nagy wrote: > So, he logs in, and sees nothing. The strange thing is Dovecot doesn't > create any of the above directories nor indexes. The only reason for this that I can think of is: The user didn't really log in to that server, at least using that us

Re: [Dovecot] [PATCH] Add Install section to dovecot.service, so it can be used independently from dovecot.socket

2011-02-22 Thread Timo Sirainen
On Fri, 2011-02-18 at 17:22 +0500, Mike Kazantsev wrote: > Following patch allows dovecot.service to be enabled via usual > systemctl command. Committed.

Re: [Dovecot] dovecot permission problems

2011-02-22 Thread Timo Sirainen
On Fri, 2011-02-18 at 09:34 -0800, Calvin23 wrote: > Feb 18 18:22:48 mail dovecot: imap(a): Error: > open(/home/a/Maildir/cur/1298049758.V54Ie8f326M541264.mail:2,) failed: > Permission denied (euid=5000() egid=5000() missing +r perm: > /home/a/Maildir/cur/1298049758.V54Ie8f326M541264.mail:2,, e

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Nikolaos Milas
Thank you Timo, dovecot-ldap.conf works fine - obviously thanks to auth_bind_userdn, so it authenticates as the binding user: auth_bind_userdn = uid=%u,ou=people,dc=example,dc=com I've tried to use a similar configuration (using auth_bind_userdn) in the new configuration in dovecot-usrdb-

Re: [Dovecot] Problem with expire plugin and expunge

2011-02-22 Thread Timo Sirainen
On Sat, 2011-02-19 at 10:10 +0100, Christoph Pleger wrote: > I started to use the expire plugin about one month ago. Since then, > using "doveadm search -A mailbox Trash savedbefore " with different > values for , I could see every day how the messages were getting older. > > Yesterday was th

Re: [Dovecot] Configuration of LMTP Reject Code

2011-02-22 Thread Timo Sirainen
On Mon, 2011-02-21 at 11:05 +0100, Petter Urkedal wrote: > Is it possible to change the reject codes from the Dovecot LMTP agent? > In particular I would like to change the "550 5.1.1 <...> User doesn't > exist." to a temporary failure, since we already validate email > addresses on the mail front-

Re: [Dovecot] [Q] A mix-up between /%d/%u/ and /%d/%n for virtual users

2011-02-22 Thread Timo Sirainen
On Mon, 2011-02-21 at 16:53 +0100, J4K wrote: > > As a result I have maildirs being created for both (e.g): > /var/vmail/bigdomain.com/d...@bigdomain.com > /var/vmail/bigdomain.com/dirk > > > The actual email is placed in > /var/vmail/bigdomain.com/d...@bigdomain.com, which I am happy with. > >

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Timo Sirainen
On Mon, 2011-02-21 at 22:02 +0200, Nikolaos Milas wrote: > I am trying to enable per user quotas, but I get the following error: > > Feb 18 23:59:20 vmail dovecot: auth(default): > ldap(tester,10.10.100.150): ldap_search((uid=tester)) failed: No such object > > It seems as if ldapsearch for

[Dovecot] imap-login ESTABLISHED client sessions not timed out by server

2011-02-22 Thread J4K
Good morning everyone, I noticed some mobile client connections that I know should have timed out at least 20 mins ago, yet these are still there. The device in question lost its 3G connection and never re-established it. I know, because in this case it was my 'phone ;) Why should the imap-

Re: [Dovecot] Rewrite the mailbox copy functions works in imap but don't work in doveadm import command

2011-02-22 Thread Timo Sirainen
On Wed, 2011-01-19 at 15:48 -0200, Alex Baule wrote: > But, when i use a doveadm import command, the part > "(zmail->super.get_stream(mail, NULL, NULL, &input) >= 0)" fails, with no > error message, only a segfault Use mail_get_stream() instead here, otherwise your plugin may break with other

Re: [Dovecot] Segmentation fault running doveadm import

2011-02-22 Thread Timo Sirainen
On Tue, 2011-02-22 at 06:58 +, Maria Arrea wrote: > Some more info: I am running dovecot 2.0.9 on Red Hat Enterprise Linux 5 > > Another question I would like to ask: I run the command doveadm import as > "entrega" user (see dovecot -n output in my previous mail ). If I run the > command as

Re: [Dovecot] Segmentation fault running doveadm import

2011-02-22 Thread Timo Sirainen
On Tue, 2011-02-22 at 06:58 +, Maria Arrea wrote: > Some more info: I am running dovecot 2.0.9 on Red Hat Enterprise Linux 5 > > Another question I would like to ask: I run the command doveadm > import as "entrega" user (see dovecot -n output in my previous mail ). > If I run the command as r