Re: [Dovecot] Command died with signal 11: amp;amp ; amp; quot; /usr/libexec/dovecot/dovecot-lda amp;amp; amp; quot;

2010-10-27 Thread Xiiph
Timo Sirainen tss at iki.fi writes:

 
 On 26.10.2010, at 9.38, Xiiph wrote:
 
  In order to avoid flooding I uploaded the gdb backtrace.
  You can find it here: http://bit.ly/9WqDkM
 
 That looks exactly like the problem that was fixed in 2.0.6. I don't think
you're using 2.0.6's
 dovecot-lda. That backtrace couldn't happen with it.
 
 

Doh! You are 100% correct, I had compiled 2.0.6 but had not executed the final
install command. While waiting for a good time to take the production server
down, I forgot all about it. 

Thanks a lot for making me aware of this, and for trying to solve a non-existent
issue!

Best regards,

X





Re: [Dovecot] Dovecot 2.0.5 crash when It cannot remove maildir

2010-10-27 Thread Len7hir

W dniu 2010-10-14 17:53, Timo Sirainen pisze:
 On Mon, 2010-10-11 at 11:22 +0200, Len7hir wrote:
 This is scenario that cause segmentation fault in my Dovecot.

 Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/a3e40c6b14fe


This fix is not working property.
Now I have this in logs:

465354 Oct 27 10:53:09 imap(i...@onet.eu): Error: Folder Junk(3941) is 
already open


And this is server answer:
o NO [SERVERBUG] Internal error occurred. Refer to server log for more 
information. [2010-10-27 10:53:09]



Junk is example folder that Dovecot can't remove.


--
Len7hir


[Dovecot] Problem with namespace (maybe bug?)

2010-10-27 Thread l.chelchowski

Hi!

Could you tell me what is wrong with an existence of mailbox?
Please see the two examples:

   . list  *
   * LIST (\HasNoChildren) / Trash
   * LIST (\HasNoChildren) / Junk
   * LIST (\HasNoChildren) / Sent
   * LIST (\HasNoChildren) / Drafts
   * LIST (\HasNoChildren) / Archives
   * LIST (\HasNoChildren) / INBOX
   * LIST (\HasNoChildren) / Public/AddressBook
   * LIST (\HasNoChildren) / Public/PublicMails
   * LIST (\Noselect \HasChildren) / Shared/dziobak
   * LIST (\Noselect \HasChildren) / Shared/tester2
   * LIST (\HasNoChildren) / Shared/dziobak/root
   * LIST (\HasChildren) / Shared/tester2/sdfgsg
   * LIST (\HasChildren) / Shared/tester2/sdfgsg/gsdfgf
   * LIST (\HasChildren) / Shared/tester2/sdfgsg/gsdfgf/vtyjyfgj
   * LIST (\HasChildren) / 
Shared/tester2/sdfgsg/gsdfgf/vtyjyfgj/rtdhrthxs
   * LIST (\HasNoChildren) / 
Shared/tester2/sdfgsg/gsdfgf/vtyjyfgj/rtdhrthxs/zhfhg

   . OK List completed.

This looks OK.

   . list (subscribed)  *
   * LIST (\Subscribed) / Trash
   * LIST (\Subscribed) / Junk
   * LIST (\Subscribed) / Sent
   * LIST (\Subscribed) / Drafts
   * LIST (\Subscribed \NonExistent) / Public/AddressBook
   * LIST (\Subscribed \NonExistent) / Public/PublicMails
   * LIST (\Subscribed \NonExistent) / Public/
   * LIST (\Subscribed) / Archives
   * LIST (\Subscribed \NonExistent) / Shared/dziobak/root
   * LIST (\Subscribed \NonExistent) / Shared/tester2/sdfgsg
   * LIST (\Subscribed \NonExistent) / Shared/tester2/sdfgsg/gsdfgf
   * LIST (\Subscribed \NonExistent) / 
Shared/tester2/sdfgsg/gsdfgf/vtyjyfgj
   * LIST (\Subscribed \NonExistent) / 
Shared/tester2/sdfgsg/gsdfgf/vtyjyfgj/rtdhrthxs
   * LIST (\Subscribed \NonExistent) / 
Shared/tester2/sdfgsg/gsdfgf/vtyjyfgj/rtdhrthxs/zhfhg

   * LIST (\Subscribed \NonExistent) / Shared/
   . OK List completed.

Why the public and shared mailboxes have flag \NonExistent?

Here is a cut of dovecot -n

   # 1.2.14: /usr/local/etc/dovecot.conf
   # OS: FreeBSD 7.2-RELEASE i386

   namespace:
 type: private
 separator: /
 inbox: yes
 list: yes
 subscriptions: yes
   namespace:
 type: public
 separator: /
 prefix: Public/
 location: 
maildir:/home/public/Maildir:CONTROL=~/Maildir/control/public:INDEX=~/Maildir/index/public

 list: children
   namespace:
 type: shared
 separator: /
 prefix: Shared/%%u/
 location: maildir:%%h/Maildir:INDEX=~/Maildir/index/shared/%%u
 list: children

   plugin:
 autocreate: Trash
 autocreate2: Junk
 autocreate3: Sent
 autocreate4: Drafts
 autocreate5: Archives
 autosubscribe: Trash
 autosubscribe2: Junk
 autosubscribe3: Sent
 autosubscribe4: Drafts
 autosubscribe5: Public.AddressBook
 autosubscribe6: Public.PublicMails
 autosubscribe7: Archives

 acl: vfile:/usr/local/etc/dovecot/acls
 acl_shared_dict: 
file:/usr/local/etc/dovecot/shared/shared-mailboxes.db



Could you tell me where is the problem, is it a bug or my config 
mistake?


--
Pozdrawiam
Łukasz


[Dovecot] Help with implementing quota warning

2010-10-27 Thread Joy
Dear All,
   I am using the latest version of doveot-2.0.6 and using
dovecot-lda to deliver mail in to Maildir. I have successfully
implemented the global quota as well as per user quota using ldap for
storing per user quota. Now i am trying to send warning message when
user exceed quota limit of 80% and 95% but unable to implement the
same.

Here is the output of doveconf -n

# 2.0.6: /usr/local/dovecot/etc/dovecot/dovecot.conf
# OS: Linux 2.6.35-22-generic i686 Ubuntu 10.10
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
hostname = mail.example.net
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = *
log_path = /var/log/imap
login_greeting = IMAP4 and POP3 server ready to serve you.
mail_location = maildir:~/Maildir
mail_plugins =  acl quota
passdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile:/usr/local/dovecot-acl/acl:cache_secs=3600
  autocreate = Sent Items
  autocreate2 = Drafts
  autocreate3 = Spam
  autocreate4 = Deleted Items
  autosubscribe = Sent Items
  autosubscribe2 = Drafts
  autosubscribe3 = Spam
  autosubscribe4 = Deleted Items
  quota = maildir:User quota
  quota_rule = *:storage=1G
  quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 %u
  quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80 %u
}
postmaster_address = ad...@example.net
protocols = imap pop3
service imap-login {
  inet_listener imap {
port = 143
  }
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = vmail
  }
  user = dovecot
}
ssl = no
userdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lda {
  mail_plugins =  acl quota
}
protocol imap {
  mail_plugins =  acl quota autocreate imap_acl imap_quota
}
protocol pop3 {
  mail_plugins =  acl quota
}


Here is quota-warning.sh content

#!/bin/sh
PERCENT=$1
USER=$2
cat  EOF | /usr/local/dovecot/libexec/dovecot/dovecot-lda -d $USER
-o plugin/quota=maildir:User quota:noenforcing
From: postmas...@teamgenesys.net
Subject: quota warning

Your mailbox is now $PERCENT% full.

Please delete unnecessary mail or request more space.

This is an automated message, please do not respond.
EOF


All the users are virtual users and running under vmail id.

I am getting the following error in log file when user reaches 80% of
defined quota limit

Error: quota: net_connect_unix(/usr/local/bin/quota-warning.sh)
failed: Connection refused

Is it configuration issue or anyting else ??

Thanks hoping to get response 


Re: [Dovecot] Corrupted transaction log file

2010-10-27 Thread Andre Nathan
On Tue, 2010-10-26 at 23:52 -0200, Andre Nathan wrote:
 They're not happening all the time. It showed up two or three times in
 the logs during the night.

A few errors of this kind appeared in the logs last night. The Log
synchronization error appears more frequently than Corrupted
transaction log file, but I assume the former is a consequence of the
latter.

This really seems to be related to the shared accounts. Our load
balancer makes no attempt to send the same users to the same server; it
just sends connections based on server load. This allows two
simultaneous connections to access an account, one on each server. Given
a distributed FS, this should be OK, right? At least in theory it's no
different than two CPU cores accessing the same account in a single
server.

Best regards,
Andre



[Dovecot] blackberry emails

2010-10-27 Thread dhottinger
Does anyone have clients using blackberrys to access their emails on a  
dovecot server?  If so are there any gotcha's that I need to configure  
in dovecot for this to work?  Looks like all emails go to and from a  
blackberry server before getting to clients.


thanks,

ddh


--
Dwayne Hottinger
Network Administrator
Harrisonburg City Public Schools

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein

The hottest places in Hell are reserved for those who, in times of moral
crisis, preserved their neutrality.
-- Dante



Re: [Dovecot] blackberry emails

2010-10-27 Thread Donny Brooks

On 10/27/2010 8:17 AM, dhottin...@harrisonburg.k12.va.us wrote:
Does anyone have clients using blackberrys to access their emails on a 
dovecot server?  If so are there any gotcha's that I need to configure 
in dovecot for this to work?  Looks like all emails go to and from a 
blackberry server before getting to clients.


thanks,

ddh


If you are referring to using a BES (Blackberry Enterprise Server) then 
I don't think it will work with dovecot. As far as I know BES only works 
with Exchange and Novell groupwise. If you want to forward the emails to 
a standard BIS account though that should work except replying to those 
emails will come from the carrier network and not your own.


Donny B.


Re: [Dovecot] Corrupted transaction log file

2010-10-27 Thread Andre Nathan
On Tue, 2010-10-26 at 23:52 -0200, Andre Nathan wrote:
 On Tue, 2010-10-26 at 22:39 +0200, Timo Sirainen wrote:
  Have you set mmap_disable=yes?
 
 Yep.

Just out of curiosity, is this setting really needed, or is it for
performance reasons? OCFS2 claims to support mmap:

  http://www.oracle.com/us/technologies/linux/025995.htm

Regards,
Andre



Re: [Dovecot] Dovecot 2.0.5 - multiple auth processes.

2010-10-27 Thread Marek Miska

W dniu 20.10.2010 16:35, Timo Sirainen pisze:

On Wed, 2010-10-20 at 16:11 +0200, Marek Miska wrote:


On Dovecot 1.2.x it is possible to run multiple auth daemons.
Is it possible on dovecot 2.0.x ?

Not really..



Any plan to support it in future?
Or at least multiple LDAP connections from one auth process?

Problem of course is with bind requests (they can be send only one at time).
It can be problem on a busy server.
(2 connections for userdb and passdb is not enough, bind request still 
go through one connection).


Of  course auth_bind = no will help, but it lowers security.

Any other idea?


Sample configuration for dovecot 1.2.8:
auth default {
count = 10

Hmm. Did this really work? I remember there were at least some problems
with this .. possibly only when using auth-workers (i.e. with some
passdbs/userdbs, but not with e.g. ldap).



It seems to work on 1.2.8.


Re: [Dovecot] blackberry emails

2010-10-27 Thread Rick Romero

There is a BES that works with IMAP.

You can also get a 'real' Java IMAP client for blackberry -
http://www.logicprobe.org/proj/logicmail

Rick
Quoting Donny Brooks dbro...@mdah.state.ms.us:

On 10/27/2010 8:17 AM, dhottin...@harrisonburg.k12.va.us wrote:

   Does anyone have clients using blackberrys to access their emails on
   a dovecot server?  If so are there any gotcha's that I need to
   configure in dovecot for this to work?  Looks like all emails go to
   and from a blackberry server before getting to clients.
  
   thanks,
  
   ddh
  
  
   If you are referring to using a BES (Blackberry Enterprise Server)
   then I don't think it will work with dovecot. As far as I know BES
   only works with Exchange and Novell groupwise. If you want to forward
   the emails to a standard BIS account though that should work except
   replying to those emails will come from the carrier network and not
   your own.
  
   Donny B.


Re: [Dovecot] Dovecot 2.0.5 - multiple auth processes.

2010-10-27 Thread Timo Sirainen
On 27.10.2010, at 15.47, Marek Miska wrote:

 On Dovecot 1.2.x it is possible to run multiple auth daemons.
 Is it possible on dovecot 2.0.x ?
 Not really..
 
 
 Any plan to support it in future?

Maybe, but it's not simple.

 Or at least multiple LDAP connections from one auth process?

That's easier to do. I was planning on making LDAP code more flexible anyway at 
some point.. Maybe for v2.1.

 Problem of course is with bind requests (they can be send only one at time).
 It can be problem on a busy server.
 (2 connections for userdb and passdb is not enough, bind request still go 
 through one connection).

Right.

Re: [Dovecot] Corrupted transaction log file

2010-10-27 Thread Timo Sirainen
On 27.10.2010, at 15.48, Andre Nathan wrote:

 On Tue, 2010-10-26 at 23:52 -0200, Andre Nathan wrote:
 On Tue, 2010-10-26 at 22:39 +0200, Timo Sirainen wrote:
 Have you set mmap_disable=yes?
 
 Yep.
 
 Just out of curiosity, is this setting really needed, or is it for
 performance reasons? OCFS2 claims to support mmap:

If mmap is supported, it's not necessary, but might still be better for 
performance (or might not, depending on filesystem's mmap implementation..)

 This really seems to be related to the shared accounts. Our load
 balancer makes no attempt to send the same users to the same server; it
 just sends connections based on server load. This allows two
 simultaneous connections to access an account, one on each server. Given
 a distributed FS, this should be OK, right? At least in theory it's no
 different than two CPU cores accessing the same account in a single
 server.

In theory sure.. But Dovecot's indexes have already been heavily stress tested 
in local filesystems with multiple CPU cores and it should be stable nowadays. 
If you can easily break it with a clusterfs, the problem is clearly the 
clusterfs itself.

You could easily try this with imaptest http://imapwiki.org/ImapTest by running 
it for the same mailbox in two OCFS2 nodes at the same time and see if Dovecot 
immediately starts logging errors.

Re: [Dovecot] anti-spam+anti-malware suggestions

2010-10-27 Thread Henrique Fernandes
I use, spamassassin, postfix ,  mailscanner, dovecot

before i use postgrey, but it was giving to many problens because we scaled
for many host.

I am loking for sqlgrey now to test it.

[]'sf.rique


On Mon, Oct 25, 2010 at 5:52 PM, Robert M. Münch 
robert.mue...@saphirion.com wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA384

 Am 25.10.2010 um 19:40 schrieb Marc Perkel:

  On 10/20/2010 9:20 AM, Jose Luis Faria wrote:
  Hello people,
 
  I am using now qmail in cluster with LDAP + Interscan Messaging Security
 Suite from Trendmicro.
 
  I need to develop a new solution with:
  - postfix
  - dovecot
  - anti-spam
  - anti-malware.
 
  I am thankful any help or suggestion for anti-spam and anti-malware.
 
  Thanks in advance!
 
 
  You can try a front end spam filter service and not have to deal with it
 at all.
  http://www.junkemailfilter.com

 The best anti-spam system is ASSP. Install it, train it and you have 99.8%
 of all spam eliminated on the server. We use it since years with very good
 results.

 - --
 Robert M. Münch
 Mobil: +49 177 245 2802

 http://www.saphirion.com

 Smarter|Better|Faster

 Saphirion Ltd  Co KG
 Schumannstr. 3
 D - 76185 Karlsruhe
 Tel : +49 721 5978501
 Fax: +49 721 5978502

 Registergericht: Amtsgericht Mannheim HRA 105339

 Alleinige persönlich haftende Gesellschafterin: Quiyo Verwaltungs Limited
 Registered Office: 76 High Street, Newport Pagnell, Milton Keynes, MK 16
 8AQ, Great Britain. Company Number: 5705018
 Vertretungsberechtigter Geschäftsführer: Robert M. Münch

 Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz:
 DE 24939452. Inhaltlich Verantwortlicher gemäß § 10 Absatz 3 MDStV:
 Robert M. Münch (Anschrift wie oben)


 -BEGIN PGP SIGNATURE-
 Version: PGP Desktop 10.0.2 (Build 13)
 Charset: iso-8859-1

 wsBVAwUBTMXgEHSQa/BbHGLwAQlZagf/a36cq4Y+sf6dqW8oOcQDBhohDedMEuoi
 HH6MmKw2Xvvcy4g6FS4nvsTwKhQyl7EVd2RP9rfUNbxeaisINnF4HMf7l1bWAzlL
 kjJ8RjKieis2bYBanyaQ7OpWddkvpgvMc0m25c3zNhvMaO26CO8f1/59UcrgOb8r
 F8V1KdJbwcLL/UVHCPVnMwm9uKlEdh5t4YFCjdo2eplgzhaPDYk0mw7N8929ZmlN
 uDVHd2xPMnyNFl3rUsQPCAanDCL/Z3anYo8pXhAR49B6ZxjF11V/zYZj2yOjWXiM
 /I9CVsyyyD4YalCVphZSqZpAa0luVQxMVV7hoOFKlCcmke49CN2a4A==
 =wgDg
 -END PGP SIGNATURE-



[Dovecot] deliver + quota

2010-10-27 Thread Manuel Mausz
Hi list,

can someone please explain me the following behaviour of deliver in
combination with fs-quota and reading from stdin:

 # repquota -a | grep ud_3p5
 ud_3p5--4464   10240   12288 10 0 0
 # stat -c %s /tmp/mymail
 4524853
so there's enough space for this mail

 # su ud_3p5 -s/bin/sh -c cat /tmp/mymail | /usr/libexec/dovecot/deliver -e; 
 echo \$?
 sda6: warning, user block quota exceeded.
 sda6: write failed, user block limit reached.
 Not enough disk space
 77

vs.

 # su ud_3p5 -s/bin/sh -c /usr/libexec/dovecot/deliver -p /tmp/mymail -e; 
 echo \$?
 0

Must have something to do with create_raw_stream inside deliver.c

System is running Dovecot v1.2.13

Thanks,
/ manuel


Re: [Dovecot] dovecot Digest, Vol 90, Issue 102

2010-10-27 Thread Axel Thimm
On Mon, 2010-10-25 at 12:24 -0700, Roderick A. Anderson wrote:
 Alan Brown wrote:
  ATrpms has builds too, but they're usually out of date.
 
 Yeah way of of date.  1.0.7 I think is what I saw.

Hm, ATrpms is usually shipping packages within a few days after a
release as well as packages of beta releases. What makes you think
ATrpms is at 1.0.7?

FWIW ATrpms currently carries the following dovecot versions:

1.0.15-1_74  1.1.20-1_98  1.2.15-1_113  2.0.6-0_121
-- 
http://thimm.gr/ - http://ATrpms.net/


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


Re: [Dovecot] blackberry emails

2010-10-27 Thread Donny Brooks

On 10/27/2010 12:06 PM, Frank Bonnet wrote:



Le 27/10/2010 15:21, Donny Brooks a écrit :

On 10/27/2010 8:17 AM, dhottin...@harrisonburg.k12.va.us wrote:

Does anyone have clients using blackberrys to access their emails on a
dovecot server? If so are there any gotcha's that I need to configure
in dovecot for this to work? Looks like all emails go to and from a
blackberry server before getting to clients.

thanks,

ddh



If you are referring to using a BES (Blackberry Enterprise Server) then
I don't think it will work with dovecot. As far as I know BES only works
with Exchange and Novell groupwise. If you want to forward the emails to
a standard BIS account though that should work except replying to those
emails will come from the carrier network and not your own.

Donny B.


I think Blackberry servers are able to connect to Dovecot as many 
students here use Blackberry and I can see many connections from

RIM on my server , so I think there is some mechanisms to configure
Blackberry to fetch private emails.

Yes you are referring to standard BIS service. That is what any 
blackberry has when you get it from any carrier. There is a way to have 
it connect to a personal email account on an imap server. I actually 
have a dovecot/postfix server doing one of my domains email and have the 
email delivered to my berry. It just is not instantly pushed to the 
phone like it is with BIS/BES hosted emails.


Re: [Dovecot] Released Pigeonhole v0.2.1 for Dovecot v2.0.4

2010-10-27 Thread Axel Thimm
Hi Juan,

sorry for the late reply I just picked this up mentioning ATrpms:

On Mon, 2010-10-04 at 19:05 +0200, Juan C. Blanco wrote:
 Hello Stephan I have some problems to build pigeonhole 0.2.1 over dovect 
 2.0.5, I've had no problems with previous versions; the system is CentOS 
 5.5.

FWIW CentOS is supported at ATrpms and there are packages for 0.2.1
there for CentOS, if you need them.

 I think that is autotools related, but not sure.
 
 I've dounloaded the archive for pigeonhole, once decompressed:
 
 If I do:
 ./configure --with-dovecot=../dovecot-2.0.5
 make
 
 All seems to work fine
 
 But if I do (like the atrpms package spec):
 autoreconf -ifv
 ./configure --with-dovecot=../dovecot-2.0.5
 make
 
 I get the error:

I checked the pigeonhole specfiles at ATrpms, but could not find any
such call, the %build part has been

%build
## crude hack ...
#./autogen.sh
%configure --with-dovecot=%{_libdir}/dovecot \
  --with-managesieve=yes \
  --enable-header-install=yes \
  INSTALL_DATA=install -c -p -m644
make

for quite some time now.

-- 
http://thimm.gr/ - http://ATrpms.net/


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


Re: [Dovecot] Convert Plugin

2010-10-27 Thread Daniel Luttermann

Dr Matthew Williams wrote on 10/27/2010:


Hello,

I have been investigating mailbox conversions and have used the convert
plugin under Dovecot V1.x. I cannot find the plugin in the list on the
wiki for Dovcot V2.x, is it not included for a reason?

I understand that I can do a post-login script to do the conversion,
any guidance on best practices?


you can use dsync instead.

Link: http://wiki2.dovecot.org/Tools/Dsync

--
Daniel



Re: [Dovecot] Per User Quotas with LDAP on Dovecot 1.x

2010-10-27 Thread Camron W. Fox
On 10/10/19 08:01, Timo Sirainen wrote:
 No. The username is sent another way to deliver. Anyway, I think -d
 $RECIPIENT is the right way.
 
Timo,

I modified the mailbox command in /etc/postfix/main.cf:

mailbox_command = /usr/libexec/dovecot/deliver -d ${recipient}

This causes postfix to bounce the message with this error:

Oct 27 09:06:57 rb8 postfix/local[1931]: A99494E0D25:
to=loadt...@subaru.naoj.org, relay=local, delay=10,
delays=0.08/0/0/10, dsn=5.3.0, status=bounced (command line usage error.
Command output: Fatal: Missing -d argument )

Any ideas?

Best Regards,
Camron

-- 
Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu Management Services of America, Inc.
E-mail: cw...@us.fujitsu.com



Re: [Dovecot] Per User Quotas with LDAP on Dovecot 1.x

2010-10-27 Thread Timo Sirainen
On 27.10.2010, at 21.11, Camron W. Fox wrote:

 mailbox_command = /usr/libexec/dovecot/deliver -d ${recipient}
 
   This causes postfix to bounce the message with this error:
 
 Oct 27 09:06:57 rb8 postfix/local[1931]: A99494E0D25:
 to=loadt...@subaru.naoj.org, relay=local, delay=10,
 delays=0.08/0/0/10, dsn=5.3.0, status=bounced (command line usage error.
 Command output: Fatal: Missing -d argument )

-d has no argument, i.e. ${recipient} expands to empty. Maybe it's case 
sensitive? Try ${RECIPIENT} ? If not, find something else from Postfix docs..



Re: [Dovecot] dovecot Digest, Vol 90, Issue 102

2010-10-27 Thread Roderick A. Anderson

Axel Thimm wrote:

On Mon, 2010-10-25 at 12:24 -0700, Roderick A. Anderson wrote:

Alan Brown wrote:

ATrpms has builds too, but they're usually out of date.

Yeah way of of date.  1.0.7 I think is what I saw.


Hm, ATrpms is usually shipping packages within a few days after a
release as well as packages of beta releases. What makes you think
ATrpms is at 1.0.7?


I probably mis-read the YUM output.


FWIW ATrpms currently carries the following dovecot versions:

1.0.15-1_74  1.1.20-1_98  1.2.15-1_113  2.0.6-0_121


Maybe I'm doing the YUM stuff wrong.  When I disabled all the repos and 
enabled ATrpms I got no results.  Better check that I'm using a 
good/current repo file.  :-(



\\||/
Rod
--



[Dovecot] auth crash in 2.0.3

2010-10-27 Thread Mike Abbott
Here's another one-off crash in dovecot-2.0.3's auth process.  Looks like 
request-mech == NULL in auth_request_initial().  I don't see any obvious fixes 
to this code between 2.0.3 and 2.0.6 so it may still be present in 2.0.6.

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0018
0   auth0x00010d89381b auth_request_initial 
+ 85
1   auth0x00010d891844 
auth_penalty_anvil_callback + 207
2   libdovecot.0.dylib  0x00010d8ea44f anvil_client_connect 
+ 364
3   libdovecot.0.dylib  0x00010d8f77e9 io_loop_handler_run 
+ 234
4   libdovecot.0.dylib  0x00010d8f82bb io_loop_run + 56
5   libdovecot.0.dylib  0x00010d8edf98 master_service_run + 
27
6   auth0x00010d89b18a main + 674
7   auth0x00010d88ec14 start + 52

There were several Timeout waiting for handshake from auth server errors from 
imap-login and pop3-login in the minutes before this crash.

Re: [Dovecot] Per User Quotas with LDAP on Dovecot 1.x

2010-10-27 Thread Jerry
On Wed, 27 Oct 2010 09:11:02 -1000
Camron W. Fox cw...@us.fujitsu.com articulated:

 On 10/10/19 08:01, Timo Sirainen wrote:
  No. The username is sent another way to deliver. Anyway, I think -d
  $RECIPIENT is the right way.
  
 Timo,
 
   I modified the mailbox command in /etc/postfix/main.cf:
 
 mailbox_command = /usr/libexec/dovecot/deliver -d ${recipient}
 
   This causes postfix to bounce the message with this error:
 
 Oct 27 09:06:57 rb8 postfix/local[1931]: A99494E0D25:
 to=loadt...@subaru.naoj.org, relay=local, delay=10,
 delays=0.08/0/0/10, dsn=5.3.0, status=bounced (command line usage
 error. Command output: Fatal: Missing -d argument )

See: http://www.postfix.com/postconf.5.html#mailbox_command

If you still cannot get it to work, I would suggest asking on the
Postfix forum since it is issuing the error message.

-- 
Jerry ✌
dovecot.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__


[Dovecot] imap can't reconnect to auth-master after setuid

2010-10-27 Thread Mike Abbott
With service imap { client_limit = 5, service_count = 0 }, when the auth 
process crashes the existing imap processes cannot reconnect to the auth-master 
socket because they have long ago dropped root privileges.  Is the right 
solution to this:
(1) change the perms on the auth-master socket so processes running as 
vmail:vmail can connect to it, or
(2) change the code so that multi-client imap processes stop accepting new 
clients when they notice an auth bounce?

If (1), the wiki should be updated to mention this.

Thanks.

Re: [Dovecot] imap can't reconnect to auth-master after setuid

2010-10-27 Thread Timo Sirainen
On 27.10.2010, at 22.25, Mike Abbott wrote:

 With service imap { client_limit = 5, service_count = 0 },

This still isn't all that recommended, since one connection can hang other 
connections in same process.

 when the auth process crashes

Which of course shouldn't happen :)

 the existing imap processes cannot reconnect to the auth-master socket 
 because they have long ago dropped root privileges.  Is the right solution to 
 this:
 (1) change the perms on the auth-master socket so processes running as 
 vmail:vmail can connect to it, or
 (2) change the code so that multi-client imap processes stop accepting new 
 clients when they notice an auth bounce?

Hmm. I'd prefer (2). I'll see about implementing it next week (I'm traveling 
this week).

[Dovecot] rpath in pigeonhole (was: dovecot-2.0-pigeonhole-0.2.1 installation in wrong lib dir?)

2010-10-27 Thread Axel Thimm
On Wed, 2010-10-06 at 21:49 +0200, wolfgang.frie...@desy.de wrote:
  On Wed, 2010-10-06 at 17:47 +0200, wolfgang.frie...@desy.de wrote:
  Therefore the executable will fail to run:
 
  ldd /usr/libexec/dovecot/managesieve-login
   libdovecot-login.so.0 = not found
   libdovecot.so.0 = not found
  To me this looks like a bug in the generated Makefile.

 Could it be that the missing -R is related to --disable-static and
 --disable-rpath options to configure which I took over from the ATrpms
 dovecot spec file? Then it would rather be my ignorance of the
 dependencies between these options, libtool, dovecot and pigeonhole.

Sorry for picking this up three weeks later, I didn't notice the issue
from the subject.

--disable-rpath is supposed to remove rpath calls. But in dovecot's
build --disable-rpath seems to not have any effect, there are still
-rpath /usr/lib64/dovecot args in the build log (which are needed).

Looking at it a bit deeper --disable-rpath seems to only apply if you
use the macros from lib-link.m4 (as shipped with gettext for example),
so it looks like it's a no-ops for dovecot.

Still managesieve-login manages to be built w/o rpath. But this is in
another specfile altogether, which doesn't even use --disable-rpath. So
the issue is somewhere else. I'll do some more testing and report back.

Best regards to all people in Zeuthen that can still remember me. :)
-- 
http://thimm.gr/ - http://ATrpms.net/


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


Re: [Dovecot] Per User Quotas with LDAP on Dovecot 1.x

2010-10-27 Thread Camron W. Fox
On 10/10/27 09:56, Jerry wrote:
 On Wed, 27 Oct 2010 09:11:02 -1000
 Camron W. Fox cw...@us.fujitsu.com articulated:
 
 On 10/10/19 08:01, Timo Sirainen wrote:
 No. The username is sent another way to deliver. Anyway, I think -d
 $RECIPIENT is the right way.

 Timo,

  I modified the mailbox command in /etc/postfix/main.cf:

 mailbox_command = /usr/libexec/dovecot/deliver -d ${recipient}

  This causes postfix to bounce the message with this error:

 Oct 27 09:06:57 rb8 postfix/local[1931]: A99494E0D25:
 to=loadt...@subaru.naoj.org, relay=local, delay=10,
 delays=0.08/0/0/10, dsn=5.3.0, status=bounced (command line usage
 error. Command output: Fatal: Missing -d argument )
 
 See: http://www.postfix.com/postconf.5.html#mailbox_command
 
 If you still cannot get it to work, I would suggest asking on the
 Postfix forum since it is issuing the error message.
 
Jerry,

Perfect. I was looking for $USER, not $RECIPIENT.

Thank you both for your help.

Best Regards,
Camron

-- 
Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu Management Services of America, Inc.
E-mail: cw...@us.fujitsu.com



[Dovecot] Can quota_rule be inherited by child mailboxes?

2010-10-27 Thread ian+dove...@comtek.co.uk
Is there a way to make quota_rule apply to subfolders? I've got some 
symlinked mailboxes which I want to exclude from quotas. This would 
work, but is verbose:


   quota_rule6 = USERS.aaa:ignore
   quota_rule7 = USERS.bbb:ignore
   ...
   quota_rule = USERS.zzz:ignore

But simply writing this:

   quota_rule7 = USERS:ignore

doesn't apply to USERS.xxx and so on.

The wiki says '*' isn't supported as a wildcard and frankly I'm 
struggling with the source code!


Thanks in advance,

Ian

--
===
Ian Crowther   Tel: +44 845 4501626  Unit 108, 10th Avenue,
IT Dept, ComtekFax: +44 845 4501627  Zone 3, Deeside Industrial
Network Systems UK Ltd   Park, CH5 2UA, Flintshire
===


[Dovecot] problem with folder creation

2010-10-27 Thread John Watson
I am running dovecot 1.2.12 on Free BSD 8.1. We also have postfix and a version 
of squirrelmail for the UI.  We are using MySql database to store the email 
account info. I wrote a script to insert about 100K users into mysql. Those 
accounts seem to work well
and I'm able to see things like 'Drafts', 'Trash' and 'Sent'. Now I am working 
on code to create new accounts - one at a time. The accounts get created and I 
can send and receive email from them but when I go go Drafts, Sent or Trash I 
get an error that says:

ERROR: Could not complete request.
Query: SELECT INBOX.Drafts
Reason Given: Mailbox doesn't exist: INBOX.Drafts

When I go out and look at the mailbox folders for these users I only see cur, 
new, and tmp whereas on other accounts that work well I also see things 
like INBOX.Drafts etc.
I have examined the sql that is inserting the accounts in bulk versus the one 
by one case and can not see any differences (other than a new mailbox 
name/password etc).
Everything that I'm reading online indicates that Dovecot should just create 
these extra folders on the server and there is really nothing for either an 
admin or a user to do.
Does anyone have any more information on this?

 Thanks in Advance
John Watson



[Dovecot] Doveadm-Expunge v2.0.5

2010-10-27 Thread Kui Zhang
Hello

Few questions regarding Doveadm-Expunge.

1.

I have lazy expunge configure with this name space: .EXPUNGED

Storage type: mdbox

doveadm -Dv expunge -u u...@domain mailbox .EXPUNGED/* savedbefore 7d

I get some interesting outputs.

doveadm(u...@domain): Debug: expunge: box=.EXPUNGED/INBOX/mon uid=791
doveadm(u...@domain): Debug: expunge: box=.EXPUNGED/INBOX/mon uid=792
doveadm(u...@domain): Debug: expunge: box=.EXPUNGED/INBOX/mon uid=793

doveadm(u...@domain): Info: expunge: box=INBOX/mon, uid=196,
msgid=e1owjm4-j4...@domain, size=1856
doveadm(u...@domain): Info: expunge: box=INBOX/mon, uid=197,
msgid=e1owjmp-pr...@domain, size=1756
doveadm(u...@domain): Info: expunge: box=INBOX/mon, uid=198,
msgid=e1owjpp-0002hp...@domain, size=1810
doveadm(u...@domain): Info: expunge: box=INBOX/mon, uid=199,
msgid=e1owjqw-0002y7...@domain, size=1766
doveadm(u...@domain): Info: expunge: box=INBOX/mon, uid=200,
msgid=e1owjud-0004ba...@domain, size=1890
...

So what is the diff between Debug: expunge and Info: expunge.
Anything done to Info: expunge? I am assuming the debug: expunge
are the only entries with actions. And Info: expunge is not doing
anything. I ran doveadm purge -u u...@domain after. I did not notice
any missing emails. Sorry for the trivial question, I just want to
make sure not mail would disappear, all of sudden.

1.A.
Would not it be faster not to enumerate for large mailboxes (30-40GB -
Maildir)? Is it possible to add a switch, to select single user
expunge behavior?
ref: http://www.mail-archive.com/dovecot@dovecot.org/msg32322.html

2.
Also. expunge does not appear to remove empty mailboxes, is this a bug
or intentional? If intentional, why? Any way to automated removal of
empty mailboxes?


Thank you
KuiZ