[Dovecot] Using Dovecot with nsswitch for LDAP on Solaris

2008-01-31 Thread Laurent Blume
Hello all, I'm having some issues configuring dovecot 1.0.10 on a Solaris 10 box, that uses LDAP¨for its accounts. The local accounts (in /etc/passwd) are authenticated properly and work as expected, but all accounts from the LDAP fail authentication. Those are declared for the system using PAM

Re: [Dovecot] More efficient Deleting of a whole folder (or Purging Trash)

2008-01-31 Thread Daniel Watts
Hi Timo, On Jan 29, 2008, at 6:03 PM, Daniel Watts wrote: Is there not a more efficient way to do this? If Dovecot knows the whole folder is being deleted (ie a Trash purge), could it do something clever with the filesystem to just remove the whole folder? If you use IMAP DELETE command, it

Re: [Dovecot] sa learning from an imap spam folder

2008-01-31 Thread Evaggelos Balaskas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just because i am too boring to fix it correctly (move old spam to another location etc - etc), i have just done this: crontab -l 10 */1 * * * /bin/ls -1 /var/mail/folders/ebalaskas/.spam/cur | xargs /usr/local/bin/sa-learn --spam PS: sorry for

[Dovecot] Plugin Trash don't work ?

2008-01-31 Thread Sebastien Andreatta
Hello, I have a problem with the trash plugin. i'm not English, but if i ave understand this http://wiki.dovecot.org/Plugins/Trash , if a mailbox is full (90% for example) and i want to delete a mail, the plugin Tras, delete a mail in mailbox specified in a file ... I have this :

Re: [Dovecot] Multiple copies of a message

2008-01-31 Thread Anne Wilson
On Wednesday 30 January 2008 23:16, Benjamin R. Haskell wrote: X-UID: 2041 X-KMail-Filtered: 65016 Status: RO X-Status: OAC and X-UID: 2042 X-KMail-Filtered: 65017 Status: RO X-Status: OAC Have you changed anything recently with your kmail filters? KMail filters

Re: [Dovecot] Multiple copies of a message

2008-01-31 Thread Anne Wilson
On Wednesday 30 January 2008 23:16, Benjamin R. Haskell wrote: Dovecot doesn't add the X-UID field, so I suspect it wouldn't be changing it, either. It may also be relevant that while I was checking a couple of these message by opening in kwrite I got the message that one of the messages had

Re: [Dovecot] SSL certificate?

2008-01-31 Thread Bjørn T Johansen
On Thu, 31 Jan 2008 01:33:32 +0300 Nikolay Shopik [EMAIL PROTECTED] wrote: On 31.01.2008 1:27, Bjørn T Johansen wrote: When I install an SSL certificate, I can't find a config option to set configure the Server Certificate Chain file... Is this not possible or can I do it another way?

Re: [Dovecot] SSL certificate?

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 13:48 +0100, Bjørn T Johansen wrote: I have now tried every combination I can think of but my mail client still tells me..: Certificate for hostname is unknown. and Signature status: unable to get local issuer certificate. I am trying to install a GoDaddy

Re: [Dovecot] Multiple copies of a message

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-30 at 20:20 +, Anne Wilson wrote: X-UID: 2039 X-KMail-Filtered: 65014 Status: RO X-Status: OC and X-UID: 2040 X-KMail-Filtered: 65015 Status: RO X-Status: OC I think this shows pretty clearly that kmail adds those duplicates. I doubt anything else would

Re: [Dovecot] SSL certificate?

2008-01-31 Thread Egbert Jan van den Bussche
Bjørn T Johansen wrote: When I install an SSL certificate, I can't find a config option to set configure the Server Certificate Chain file... Is this not possible or can I do it another way? (When I connect, I am being told the Signature status is uncheckable...) Regards, BTJ Hi Bjørn,

Re: [Dovecot] More efficient Deleting of a whole folder (or Purging Trash)

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 10:01 +, Daniel Watts wrote: Hi Timo, On Jan 29, 2008, at 6:03 PM, Daniel Watts wrote: Is there not a more efficient way to do this? If Dovecot knows the whole folder is being deleted (ie a Trash purge), could it do something clever with the filesystem to

Re: [Dovecot] viewing a subset of folders in dumb IMAP clients

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-30 at 22:51 -0500, Amitai Schlair wrote: My world-weary, clunkier, but seemingly working solution: 1) have the alternate login yield my existing permissions, but a different mail folder and metadata 2) create that mail folder, make its cur/new/tmp symlinks to the real

Re: [Dovecot] SSL certificate?

2008-01-31 Thread Bjørn T Johansen
On Thu, 31 Jan 2008 15:25:47 +0200 Timo Sirainen [EMAIL PROTECTED] wrote: On Thu, 2008-01-31 at 13:48 +0100, Bjørn T Johansen wrote: I have now tried every combination I can think of but my mail client still tells me..: Certificate for hostname is unknown. and Signature

Re: [Dovecot] Shared inbox

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-30 at 13:16 -0800, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hello all, I am using dovecot with maildir storage. I want to share a inbox of one user with another user. I read the page http://wiki.dovecot.org/SharedMailboxes but it does not deal with

Re: [Dovecot] viewing a subset of folders in dumb IMAP clients

2008-01-31 Thread Amitai Schlair
On Jan 31, 2008, at 8:40 AM, Timo Sirainen wrote: On Wed, 2008-01-30 at 22:51 -0500, Amitai Schlair wrote: My world-weary, clunkier, but seemingly working solution: 1) have the alternate login yield my existing permissions, but a different mail folder and metadata 2) create that mail folder,

Re: [Dovecot] Apple Mail for 10.4/Shadow/SSL - Problem.

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-30 at 13:09 -0500, Phredd Groves wrote: Jan 29 17:20:01 paradox dovecot: [ID 107833 mail.info] imap-login: Disconnected: rip=X.X.X.X, lip=Y.Y.Y.Y, TLS handshake This means the client disconnected in the middle of SSL/TLS handshake. Have you looked at the network traffic to see

Re: [Dovecot] Dovecot-auth crash

2008-01-31 Thread Timo Sirainen
On Tue, 2008-01-29 at 00:05 +0100, otik wrote: I wrote mail as different used few minutes ago... Here is better result from strace. .. 23:56:02.689715 --- SIGSEGV (Segmentation fault) @ 0 (0) --- strace doesn't help much in figuring out why something crashes. Could you get a gdb backtrace

[Dovecot] Dovecot, LDAP and something akin to Postfix' table search order from virtual deliver.

2008-01-31 Thread Maciej Paczesny
hi, i've found this topic while looking for a solution for the way to use 'mail groups' with dovecot an postfix, using dovecot as LDA. i'm not sure if this patch is implemented into the source or not. or maybe there is a 'special' way to have multilpe mailboxes served by postfix/dovecot? --

Re: [Dovecot] Deliver a message marked as read.

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-30 at 10:47 -0200, Fábio M. Catunda wrote: Hi. Is there a way to deliver a message already marked as read. I would like to configure my MTA to deliver a copy of all sent messages to a folder named Sent in the user Maildir, I believe that it would be interesting to keep

Re: [Dovecot] Plugin Trash don't work ?

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 13:15 +0100, Sebastien Andreatta wrote: I have a problem with the trash plugin. .. Jan 28 15:49:37 soez dovecot: child 28398 (imap) killed with signal 11 It crashes. What Dovecot version? If anything older than v1.0.0, upgrade first and try again. If it's a newer version,

Re: [Dovecot] SQL user_query question

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-24 at 06:10 -0600, John Dubchak wrote: I would have expected the above %d to contain the domain SELECT value from the password_query, but that doesn't seem to be the case. Your password_query most likely dropped the domain by returning user field as Dovecot's user field. Have

Re: [Dovecot] proxy logging

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-24 at 23:38 -0200, diego wrote: Hi, I'm testing dovecot 1.1.beta14 on two debian etch with drbd+ocfs2[active/active], I use qmail+vpopmail(userdb) and three front-end with openbsd 4.2 with dovecot 1.1.beta14 as proxy with passdb sql through vpopmail database. Is posible to

Re: [Dovecot] Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location

2008-01-31 Thread Timo Sirainen
On Sun, 2008-01-27 at 19:25 +0100, Patrick Ben Koetter wrote: It is my understanding that mail_location only gets uses if no mail attribute is specified. In any case, it appears that the above perhaps should read mailHomeDirectory=mail. Also making the home and the mail directory the

Re: [Dovecot] Using Dovecot with nsswitch for LDAP on Solaris

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 09:58 +0100, Laurent Blume wrote: Currently, there are WU-IMAP and Qpopper installed and working, and neither of them needed any special configuration to use the login, they're just using Unix auth. What service name do they use? If they already work, make Dovecot use the

Re: [Dovecot] multiple ports, different characteristics

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-30 at 11:09 -0800, WJCarpenter wrote: The wiki http://wiki.dovecot.org/Iptables leads me to believe that the only way to configure dovecot to listen for the same protocol on multiple ports is via external redirection (iptables or similar). Is that so, or can dovecot be

Re: [Dovecot] Dovecot + Windows AD + Postfix + quota

2008-01-31 Thread Timo Sirainen
On Mon, 2008-01-28 at 00:52 +0100, Maciej Paczesny wrote: user_attrs = uidNumber=uid,gidNumber=gid,postOfficeBox=home,carLicense=quota It appears none of these fields exists in LDAP: Jan 28 00:37:40 gentoo dovecot: auth(default): ldap(xxx,10.10.10.29): user search: base=dc=lpr,dc=com,dc=pl

Re: [Dovecot] Static list of users with passdb pam

2008-01-31 Thread Timo Sirainen
On Tue, 2008-01-29 at 11:48 +0100, Koen Vermeer wrote: While this solution works fine for imap purposes, I cannot get this to work the way I want with postfix and deliver. What I would like to have is that if a message is sent to a non-existing user, it gets rejected. Instead, I can see in the

Re: [Dovecot] appending domain based on port

2008-01-31 Thread Timo Sirainen
On Mon, 2008-01-28 at 12:11 -0500, Eric Hester wrote: I am looking for a way to append a domain to unqualified user names based on the port that the client connected to. Like this: port 9110 - @test.com port 9111 - @other.com port 9112 - @third.com it looks like auth-default-realm does

Re: [Dovecot] Using dovecot proxy as multi-account aggregator?

2008-01-31 Thread Timo Sirainen
On Mon, 2008-01-28 at 17:03 +0200, Mika Boström wrote: - mails from different remote accounts combined to the single client connection What exactly does this mean? You'd want to serve multiple mail accounts to a client using a single IMAP connection? That would require some kind of virtual

Re: [Dovecot] 1.1beta14 cache bug ?

2008-01-31 Thread Timo Sirainen
On Tue, 2008-01-22 at 14:20 -0200, Raphael Bittencourt S. Costa wrote: After enable auth_cache_size = 20480 and auth_cache_ttl = 0, dovecot stops working for users that are in cache. See the log bellow: Show your dovecot-ldap.conf? It seems cache key contains wrong information.

Re: [Dovecot] Using Dovecot with nsswitch for LDAP on Solaris

2008-01-31 Thread Laurent Blume
Timo Sirainen a écrit : What service name do they use? If they already work, make Dovecot use the same service name (e.g. passdb pam { args = imap }). They're not using PAM directly, only the system login, so they don't have a service name. See if PAM also logged something

Re: [Dovecot] login_processes_count login_max_processes_count question

2008-01-31 Thread Timo Sirainen
On Tue, 2008-01-22 at 07:58 -0600, Ken A wrote: re: # Maximum number of login processes to create. The listening process count # usually stays at login_processes_count, but when multiple users start logging # in at the same time more extra processes are created. To prevent

Re: [Dovecot] I/O leak: 0x804d580

2008-01-31 Thread Timo Sirainen
On Mon, 2008-01-21 at 15:15 +0100, Frank Elsner wrote: Jan 21 14:54:27 mailbox dovecot: imap(mich0731): Connection closed Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1455) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1255) .. These I/O leaks happen only when Dovecot is

Re: [Dovecot] Dovecot PAM problem

2008-01-31 Thread Timo Sirainen
On Sun, 2008-01-20 at 12:00 -0500, Sean Smitz wrote: pam(test,:::128.8.244.15): pam_authenticate() failed: Authentication failure .. type=USER_AUTH msg=audit(1200848003.207:195): user pid=29718 uid=0 auid=0 subj=root:system_r:dovecot_auth_t:s0 msg='PAM: authentication acct=test :

Re: [Dovecot] Dovecot + Windows AD + Postfix + quota

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 17:02 +0200, Timo Sirainen wrote: I guess I should make LDAP log clearly what it received from LDAP server though.. Actually it does that already. Only if the server returns no fields it doesn't log anything. Fixes that now: http://hg.dovecot.org/dovecot/rev/ace71babd1ec

Re: [Dovecot] Rename file opened for read-write -- cannot edit subscriptions

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-23 at 09:20 -0500, Jack Schmidt wrote: On a linux system's CIFS mounted filesystem, it is not possible to rename a file opened read-write: $ sleep 5 .subscriptions.lock mv .subscriptions.lock .subscriptions mv: cannot move `.subscriptions.lock' to `.subscriptions': Text

Re: [Dovecot] Plugin Trash don't work ?

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 16:54 +0100, Sebastien Andreatta wrote: [EMAIL PROTECTED] soez]$ rpm -qa | grep dovecot dovecot-1.0-1.2.rc15.el5 Trash plugin is known to be broken with rc15. Upgrade to v1.0.0 or newer. You can have rpms from http://atrpms.net/dist/el5/dovecot/ signature.asc

Re: [Dovecot] Plugin Trash don't work ?

2008-01-31 Thread Sebastien Andreatta
[EMAIL PROTECTED] soez]$ rpm -qa | grep dovecot dovecot-1.0-1.2.rc15.el5 On centos... I have installed gdb, change dovecot.conf but i don't understand the part with core... [EMAIL PROTECTED] lib]# cat /proc/sys/kernel/core_pattern core Thanks for your help Number :-)

Re: [Dovecot] PATCH: compile dovecot-1.1.beta14 with gcc 2.95

2008-01-31 Thread Timo Sirainen
On Wed, 2008-01-23 at 16:57 +0100, Sven Anderson wrote: I patched dovecot-1.1.beta14 to compile under gcc 2.95. __builtin_expect and __attribute__((malloc)) are only available since gcc 3.0, and __builtin_types_compatible_p since 3.1. Thanks, committed. Also the flexible array members (char

Re: [Dovecot] Multiple copies of a message

2008-01-31 Thread Bill Cole
At 12:07 PM + 1/31/08, Anne Wilson wrote: On Wednesday 30 January 2008 23:16, Benjamin R. Haskell wrote: X-UID: 2041 X-KMail-Filtered: 65016 Status: RO X-Status: OAC and X-UID: 2042 X-KMail-Filtered: 65017 Status: RO X-Status: OAC Have you changed anything recently

Re: [Dovecot] appending domain based on port

2008-01-31 Thread Eric Hester
I use sql for my passwd db. So are you saying use some kind of conditional in my select that checks for @ in the username and if not found appends the domain based on the %l variable (using something like a join to a table that has port to domain mappings). Interesting. Im worried that might add

Re: [Dovecot] appending domain based on port

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 10:32 -0500, Eric Hester wrote: I use sql for my passwd db. So are you saying use some kind of conditional in my select that checks for @ in the username and if not found appends the domain based on the %l variable (using something like a join to a table that has port to

Re: [Dovecot] 1.1beta14 cache bug ?

2008-01-31 Thread Raphael Bittencourt S. Costa
Timo, Here is dovecot-ldap.conf: uris = ldap://10.0.x.x:389/ dn = cn=, o=xxx dnpass = sasl_bind = no auth_bind = yes ldap_version = 2 base = ou=%d,ou=accounts,o= deref = never scope = onelevel pass_attrs =

Re: [Dovecot] 1.1beta14 cache bug ?

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 13:42 -0200, Raphael Bittencourt S. Costa wrote: Here is dovecot-ldap.conf: .. pass_attrs = uid=user,userPassword=password,mailMessageStore=userdb_home,qmailUID=userdb_uid,qmailGID=userdb_gid,mailQuotaSize=userdb_quota_rule=*:bytes,qmailUID=proxy_maybe,mailHostAddress=host

Re: [Dovecot] Multiple copies of a message

2008-01-31 Thread Anne Wilson
On Thursday 31 January 2008 15:31, Bill Cole wrote: At 12:07 PM + 1/31/08, Anne Wilson wrote: On Wednesday 30 January 2008 23:16, Benjamin R. Haskell wrote: X-UID: 2041 X-KMail-Filtered: 65016 Status: RO X-Status: OAC and X-UID: 2042 X-KMail-Filtered:

Re: [Dovecot] 1.1beta14 cache bug ?

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 17:55 +0200, Timo Sirainen wrote: On Thu, 2008-01-31 at 13:42 -0200, Raphael Bittencourt S. Costa wrote: Here is dovecot-ldap.conf: .. pass_attrs =

[Dovecot] Gnus and dovecot time out

2008-01-31 Thread Richard G Riley
Could someone suggest what the solution here is? Dovecot is terminating the connection to Gnus after a certain period of activity. It's my own mail server so no need to worry about hogging resources. Should/could Dovecot be configured to keep the connection alive, or should Gnus be programmed to

Re: [Dovecot] I/O leak: 0x804d580

2008-01-31 Thread Frank Elsner
On Thu, 31 Jan 2008 17:24:47 +0200 Timo Sirainen wrote: On Mon, 2008-01-21 at 15:15 +0100, Frank Elsner wrote: Jan 21 14:54:27 mailbox dovecot: imap(mich0731): Connection closed Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1455) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580

[Dovecot] signal 6 crash (1.0.10)

2008-01-31 Thread Ralf Hildebrandt
Jan 31 17:47:43 postamt dovecot: IMAP(rbauer): Corrupted transaction log file /home/r/b/rbauer/Maildir/.listen.genome/dovecot.index.log: Append with UID 476, but next_uid = 477 Jan 31 17:47:43 postamt dovecot: IMAP(rbauer): Corrupted transaction log file

Re: [Dovecot] 1.1beta14 cache bug ?

2008-01-31 Thread Raphael Bittencourt S. Costa
Timo, Follows dovecot -n: protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no shutdown_clients: no login_dir: /usr/local/var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login

Re: [Dovecot] Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 20:36 +0100, Patrick Ben Koetter wrote: # Mail delivery Jan 31 20:28:20 mail deliver(p): Loading modules from directory: /usr/lib/dovecot/modules/lda Jan 31 20:28:20 mail deliver(p): Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so Jan 31 20:28:20

Re: [Dovecot] sa learning from an imap spam folder

2008-01-31 Thread mouss
Evaggelos Balaskas wrote: Just because i am too boring to fix it correctly (move old spam to another location etc - etc), i have just done this: crontab -l 10 */1 * * * /bin/ls -1 /var/mail/folders/ebalaskas/.spam/cur | xargs /usr/local/bin/sa-learn --spam PS: sorry for being lazy but not

Re: [Dovecot] Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location

2008-01-31 Thread Patrick Ben Koetter
* Timo Sirainen dovecot@dovecot.org: On Thu, 2008-01-31 at 20:36 +0100, Patrick Ben Koetter wrote: # Mail delivery Jan 31 20:28:20 mail deliver(p): Loading modules from directory: /usr/lib/dovecot/modules/lda Jan 31 20:28:20 mail deliver(p): Module loaded:

Re: [Dovecot] Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location

2008-01-31 Thread Patrick Ben Koetter
Timo, thanks for picking up on this. Read the logs and my considerations below: * Timo Sirainen [EMAIL PROTECTED]: On Sun, 2008-01-27 at 19:25 +0100, Patrick Ben Koetter wrote: It is my understanding that mail_location only gets uses if no mail attribute is specified. In any case, it