Re: [Dovecot] dovecot LDA: "temporary failure"

2011-03-17 Thread David Koski
Additional information: I created a script to get the return code from deliver: 1 #!/bin/bash 2 3 cat "cur/1300037582.P7332Q0M221160.brusco-mail:2,S" | /usr/lib/dovecot/deliver -f dko...@somedomain.com -d dko...@domainhidden.com 4 5 case $? in 6 0) echo "0" 7 ;; 8 64)

[Dovecot] dovecot LDA: "temporary failure"

2011-03-17 Thread David Koski
This really has me stumped and desperate. I upgraded Debian from 5 to 6 (squeeze) and now Dovecot LDA fails. I have checked permissions and the usual. Postfix SMTP, Dovecot POP3 and Dovecot IMAP work. Having to upgrade MySQL from 5.0 to 5.1 made me question that. Logging is of little help. I h

[Dovecot] Request - please uncomment !include_try /etc/dovecot/local.conf in example config

2011-03-17 Thread Ng Oon-Ee
Hi, could I request that the example config in doc/dovecot/example-config/dovecot.conf be slightly altered to uncomment the last line? The point of include_try is that it only includes if such a file exists, and doesn't break anything if the file does not exist. My distro (Arch) has a policy not

Re: [Dovecot] Virtual and system users with public mailboxes

2011-03-17 Thread Kendall Shaw
On Thu, 2011-03-17 at 18:35 +0200, Timo Sirainen wrote: > On Wed, 2011-03-16 at 11:54 -0700, Kendall Shaw wrote: > > Hi, > > > > I am running dovecot 1.2.9 and postfix, and I am trying to setup a > > public mailbox. My thought is that there would be one system user with > > a sieve script to deli

Re: [Dovecot] maildir location

2011-03-17 Thread upen
On Thu, Mar 17, 2011 at 4:59 PM, Jim Knuth wrote: > am 17.03.11 22:33 schrieb upen : > >>> >>> If you expect to have any folders with lots of messages, I would use >>> mdbox rather than Maildir. NFS tends to have performance problems with >>> lots of small files, and Maildir uses one file per mess

Re: [Dovecot] maildir location

2011-03-17 Thread Jim Knuth
am 17.03.11 22:33 schrieb upen : If you expect to have any folders with lots of messages, I would use mdbox rather than Maildir. NFS tends to have performance problems with lots of small files, and Maildir uses one file per message, where mdbox has a sort of compromise between lots of files and

Re: [Dovecot] maildir location

2011-03-17 Thread upen
> > If you expect to have any folders with lots of messages, I would use > mdbox rather than Maildir. NFS tends to have performance problems with > lots of small files, and Maildir uses one file per message, where mdbox > has a sort of compromise between lots of files and the huge files that > mbox

Re: [Dovecot] maildir location

2011-03-17 Thread Patrick McLean
On 17/03/11 12:19 PM, upen wrote: > Hello, > > I am trying to use dovecot (v. 2.0.11) and postfix (v. 2.7.3) > together. The email server is an ldap client and user's home > directories on NFS server are mounted using autofs. > > As I understand, Maildir performance is better than mbox type, s

[Dovecot] Problem with recompiling sieve scripts after migrating to Dovecot 2.0 from 1.2

2011-03-17 Thread Andrés Yacopino
I saw this in log file of dovecot: Error: sieve: binary save: failed to create temporary file: open(/usr/local/etc/sieve/after/after.dovecot.svbin.acamail.acasalud.com.ar.13528.) failed: Permission denied (euid=40(vmail) egid=41(vmail) missing +w perm: /usr/local/etc/sieve/after, euid is not dir o

Re: [Dovecot] segmentation fault with doveadm search

2011-03-17 Thread Nick Rosier
Timo Sirainen wrote: On Thu, 2011-03-17 at 17:54 +0100, Nick Rosier wrote: Hope this is better: #1 0x00080231ab21 in fts_build_deinit (_ctx=0x801ea2640) at fts-storage.c:551 Yes, much better. Easy fix: http://hg.dovecot.org/dovecot-2.0/rev/3d48418b0501 Thanks, fixed :-)

Re: [Dovecot] Unconfigured dictionary name 'quotadict'

2011-03-17 Thread Simone Caruso
On 17/03/2011 17:22, Timo Sirainen wrote: On Thu, 2011-03-17 at 17:06 +0100, Simone Caruso wrote: plugin { quota = dict:User quota::proxy::quotadict Here you say "quotadict". dict { quota = mysql:/etc/dovecot/dovecot-dict-sql.conf Here you say "quota". Change either on

Re: [Dovecot] maildir location

2011-03-17 Thread upen
On Thu, Mar 17, 2011 at 12:01 PM, upen wrote: >> If Postfix delivers the mails, rather than Dovecot LDA, then yes you'll >> need to configure Postfix also to deliver correctly. Maybe it would be >> easier to just switch to Dovecot LDA: http://wiki2.dovecot.org/LDA > > Thanks Timo for quick confirm

Re: [Dovecot] Migrating to mdbox

2011-03-17 Thread Chris Wilson
Hi Timo, On Thu, 17 Mar 2011, Timo Sirainen wrote: > > SQL just for one user? That seems a bit wasteful. You could instead use > http://wiki2.dovecot.org/AuthDatabase/PasswdFile Good idea, I hadn't thought of that, I've switched to passwd file now and it seems to be working. > dovecot-lda doe

Re: [Dovecot] segmentation fault with doveadm search

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 17:54 +0100, Nick Rosier wrote: > Hope this is better: > > #1 0x00080231ab21 in fts_build_deinit (_ctx=0x801ea2640) at > fts-storage.c:551 Yes, much better. Easy fix: http://hg.dovecot.org/dovecot-2.0/rev/3d48418b0501

Re: [Dovecot] maildir location

2011-03-17 Thread upen
> If Postfix delivers the mails, rather than Dovecot LDA, then yes you'll > need to configure Postfix also to deliver correctly. Maybe it would be > easier to just switch to Dovecot LDA: http://wiki2.dovecot.org/LDA Thanks Timo for quick confirmation and the link for setting up dovecot as LDA. I

Re: [Dovecot] SSL Compatibility? SNI vs SAN (Subject Alternative Names) and multiple domains

2011-03-17 Thread Charles Marcus
On 2011-03-17 12:10 AM, Thomas Harold wrote: > Not terribly interested in the free certs because this SSL cert would > also be used for non-company users and we don't want browser warnings to > pop up. Starcom free SSL certs won't do that... -- Best regards, Charles

Re: [Dovecot] problems with public (sub)folders

2011-03-17 Thread Timo Sirainen
On Wed, 2011-03-09 at 18:25 +0100, frederik.sch...@gmx.net wrote: > Hi, > > i am trying to share a maildir++ mailbox to other users but i can only > subscribe to the root directory. The subfolders of the public mailbox > do not appear in the exported list. > > Does anyone has an idea how i can sh

Re: [Dovecot] Dove cot+Kerberos

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-10 at 08:36 +0200, Rostislav Matyusha wrote: > > Mar 10 08:27:23 srv-mail dovecot: auth(default): gssapi(?,10.0.0.5): > authn_name: Username contains disallowed character: 0x2f > Why username "host/srv-mail.cn.energy@CN.ENERGY" ??? I have no idea about anything related to Kerber

Re: [Dovecot] dict crashes with multiple map definitions

2011-03-17 Thread Timo Sirainen
On Fri, 2011-03-11 at 22:57 +0100, Birger Brunswiek wrote: > Mar 9 02:27:52 xxx dovecot: dict: Panic: file driver-pgsql.c: line 529 > (do_query): assertion failed: (db->sync_result == NULL) There have been several fixes done to pgsql backend in v2.0 and this is most likely fixed in v2.0.11. I do

Re: [Dovecot] Virtual and system users with public mailboxes

2011-03-17 Thread Timo Sirainen
On Wed, 2011-03-16 at 11:54 -0700, Kendall Shaw wrote: > Hi, > > I am running dovecot 1.2.9 and postfix, and I am trying to setup a > public mailbox. My thought is that there would be one system user with > a sieve script to deliver messages to the public mailbox. And, I would > like to give virtu

Re: [Dovecot] dovecot 1.2 quota with local users

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 09:07 +0100, i...@promax.media.pl wrote: > All other information are now sourced from PAM ( users info, passwords etc.). PAM has only passwords. User info (uid, gid, home) is in passwd. > Is that possible to deliver some information about user as it is now (PAM) > and only

Re: [Dovecot] maildir location

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 11:19 -0500, upen wrote: > Question : Can I change mail_location for maildir to be somewhere > other than ~/.maildir. ( like /var/mail/%u/Maildir, where /var/mail is > local storage). Sure. > By the way, I am confused about one setting in postfix : home_mailbox > = .maildi

Re: [Dovecot] Unconfigured dictionary name 'quotadict'

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 17:06 +0100, Simone Caruso wrote: > plugin { > quota = dict:User quota::proxy::quotadict Here you say "quotadict". > dict { > quota = mysql:/etc/dovecot/dovecot-dict-sql.conf Here you say "quota". Change either one of them so they match.

Re: [Dovecot] inetd config - dovecot doesn't exits

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 16:37 +0100, Kamil Jońca wrote: > Is there any option for dovecot to exit when is unneded? No. > But sometimes I want to use it remotely via tcp and I run dovecot via > inetd. I guess you could write a cronjob that checks if any imap processes exist, and if not kills doveco

[Dovecot] maildir location

2011-03-17 Thread upen
Hello, I am trying to use dovecot (v. 2.0.11) and postfix (v. 2.7.3) together. The email server is an ldap client and user's home directories on NFS server are mounted using autofs. As I understand, Maildir performance is better than mbox type, so I'd like to use Maildir instead of mbox. Howeve

[Dovecot] Unconfigured dictionary name 'quotadict'

2011-03-17 Thread Simone Caruso
Currently i'm migrating an existing dovecot 1.2 server to dovecot 2.0.11, once configured the 2.0 server works, auth works... but i get these messages in mail.log: dict: Error: dict client: Unconfigured dictionary name 'quotadict' Mar 17 16:46:14 penny dovecot: imap(mail...@example.com): Error:

[Dovecot] inetd config - dovecot doesn't exits

2011-03-17 Thread Kamil Jońca
Is there any option for dovecot to exit when is unneded? I mostly use dovecot via shell process (ie. something like /usr/sbin/dovecot --exec-mail imap) But sometimes I want to use it remotely via tcp and I run dovecot via inetd. --8<---cut here---start->8---

Re: [Dovecot] Attachment file size error in SIS

2011-03-17 Thread Timo Sirainen
On Wed, 2011-03-16 at 14:51 -0700, Daniel L. Miller wrote: > I've got an attachment that triggers a "smaller than expected" error. > It was a pdf I received some time ago. I copied the file from the > dovecot storage, renamed it to something close to the original name (I > don't remember what

Re: [Dovecot] search for attachment hash

2011-03-17 Thread Timo Sirainen
On Wed, 2011-03-16 at 14:20 -0700, Daniel L. Miller wrote: > How can I determine what message(s) are linked to a given attachment hash? That's difficult.. There is no index for that. So you'll have to grep it from all users' storage/m.* files. Right next to that metadata entry should be message's

Re: [Dovecot] doveadm expunge info message in std.error

2011-03-17 Thread Timo Sirainen
On Wed, 2011-03-16 at 12:00 -0700, Kui Zhang wrote: > doveadm expunge -u "user@domain" mailbox ".namespace/*" savedbefore 7d > > writes these messages to std.error > > doveadm(user@domain): Info: expunge: box=.namespace/INBOX, uid=5932, > msgid=, size=1824 You should be able to get rid of these

Re: [Dovecot] segmentation fault with doveadm search

2011-03-17 Thread Nick Rosier
Timo Sirainen wrote: On Thu, 2011-03-17 at 14:38 +0100, Nick Rosier wrote: # doveadm search -A body dead_beef [1]34789 segmentation fault doveadm search -A body dead_beef How can I (help) troubleshoot this? With the use of DTrace I was able to track that the last Folder it searched was a

Re: [Dovecot] segmentation fault with doveadm search

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 14:38 +0100, Nick Rosier wrote: > > # doveadm search -A body dead_beef > > [1]34789 segmentation fault doveadm search -A body dead_beef > > > > How can I (help) troubleshoot this? > > > With the use of DTrace I was able to track that the last Folder it > searched was a V

Re: [Dovecot] Configuration of LMTP Reject Code

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 14:49 +0100, Petter Urkedal wrote: > > I think I'll do a bit larger change here that replaces all getpwnam(), > > getpwuid() and maybe other calls. Dovecot doesn't need thread-safe > > getpw*() so I can do an easier to use wrapper function. > > Sounds good. Added to hg: http

Re: [Dovecot] Configuration of LMTP Reject Code

2011-03-17 Thread Petter Urkedal
On 2011-03-17, Timo Sirainen wrote: > On Thu, 2011-03-17 at 14:16 +0100, Petter Urkedal wrote: > > > I think there is a better solution. It seems that getpwnam_r is POSIX > > and does the right thing. > > Oh, weird. I knew about that function but I never realized it fixed the > error handling

Re: [Dovecot] segmentation fault with doveadm search

2011-03-17 Thread Nick Rosier
Nick Rosier wrote: Configuration: Dovecot 2.0.11 on FreeBSD 8.2 When I run a search to generate the FTS search indexes I get following error: # doveadm search -A body dead_beef [1]34789 segmentation fault doveadm search -A body dead_beef How can I (help) troubleshoot this? With the use

Re: [Dovecot] Configuration of LMTP Reject Code

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 14:16 +0100, Petter Urkedal wrote: > I think there is a better solution. It seems that getpwnam_r is POSIX > and does the right thing. Oh, weird. I knew about that function but I never realized it fixed the error handling problem. Also everything I saw discussing the getp

Re: [Dovecot] Migrating to mdbox

2011-03-17 Thread Timo Sirainen
On Thu, 2011-03-17 at 11:26 +, Chris Wilson wrote: > Now I'm trying to migrate just my user account to mdbox, without affecting > other users. I think I figured out that I have to use a SQL userdb with > just an entry for me, falling back to the passwd userdb for everyone else. SQL just fo

Re: [Dovecot] Configuration of LMTP Reject Code

2011-03-17 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] Migrating to mdbox

2011-03-17 Thread Chris Wilson
Hi Timo, On Wed, 16 Mar 2011, Timo Sirainen wrote: > On Wed, 2011-03-16 at 15:23 +, Chris Wilson wrote: > > > chris@one-mail(~)$ sudo dsync -v -u chris backup mdbox:/home/chris/mdbox > > [sudo] password for chris: > > dsync(chris): Error: open() failed with mbox file /home/chris/mail/admin:

Re: [Dovecot] Using dovecot with wordpress/phpass passwords?

2011-03-17 Thread Joan
To sum up: >> Wordpress and others are using phpass to authenticate >> (http://www.openwall.com/phpass/), it is basically a salted md5 hash. >> Basically, after the process, a hash like this is obtained. >> >>  $P$BiWISc3IsqRHxeEjq4VJP1Vi8gy4mg1 (for test123 password) >> >> I would like to know if

Re: [Dovecot] SSL Compatibility? SNI vs SAN (Subject Alternative Names) and multiple domains

2011-03-17 Thread Ed W
On 17/03/2011 00:03, Rick Romero wrote: > > So you're not having acceptance issues with godaddy certs? I moved away from > them because there was virtually no recognition for mail clients at the time. > Although I do believe they changed root certs since then... Been using them for 2 years wi

Re: [Dovecot] dovecot 1.2 quota with local users

2011-03-17 Thread iti
> On Wed, 2011-03-16 at 11:38 +0100, i...@promax.media.pl wrote: >> I got problem with setting quota from mysql for local users. In database >> are only information with quota. Password are store in passwd/shadow. > > You mean you only want quota limits to be listed in SQL, right? Then you > don't

Re: [Dovecot] SSL Compatibility? SNI vs SAN (Subject Alternative Names) and multiple domains

2011-03-17 Thread Willie Gillespie
On 03/16/2011 10:10 PM, Thomas Harold wrote: Leaning towards DigiCert at the moment, personally not a GoDaddy fan (and that's a whole different topic). Verisign and Thawte were rather pricey compared to DigiCert. Not terribly interested in the free certs because this SSL cert would also be used f

Re: [Dovecot] Problems with pam+ldap + quota

2011-03-17 Thread Stéphane Wartel
Hi, Just take a look on pam_ldap for authentification of user against pam in LDAP Database so that your dovecot settings should only be based on Ldap attributes for both user and password. Regards, Stephane Le 15 mars 2011 à 20:26, Antonio Perez-Aranda a écrit : > Ok I will try to use pass