Re: [Dovecot] version 2.2.6 breaks compiling on Solaris 10 sparc

2013-09-28 Thread Timo Sirainen
On 28.9.2013, at 1.29, Jake Goerzen jgoer...@opencsw.org wrote:

  I maintain the dovecot package at opencsw.org.  The latest release of 
 dovecot verison 2.2.6 has some changes to lib-http which is breaking 
 compiling on Solaris 10 sparc (though x86 builds successfully).  Here is part 
 of the compiler output while building:
 
 
   libtool: compile:  /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I../..
   -I../../src/lib -I../../src/lib-test -I../../src/lib-dns
   -I../../src/lib-ssl-iostream -I/opt/csw/include/mysql
   -I/opt/csw/include/postgresql -I/opt/csw/include -xO3 -m32
   -xarch=sparc -I/opt/csw/include -c http-header-parser.c  -KPIC -DPIC
   -o .libs/http-header-parser.o
   http-header-parser.c, line 264: warning: statement not reached
   http-header-parser.c, line 281: warning: argument #3 is
   incompatible with prototype:
prototype: pointer to unsigned int :
   ../../src/lib/istream.h, line 152argument : pointer to
   unsigned long long

http://hg.dovecot.org/dovecot-2.2/rev/83e74b3a0d10 fixes this.




Re: [Dovecot] New install not working.

2013-09-28 Thread Timo Sirainen
On 28.9.2013, at 6.31, Rhorer, Leslie leslie.rho...@twtelecom.com wrote:

I need some help.  I was running uw-imap on my IMAP server (so I am 
 using mbox email files), but I was having trouble with Outlook 2013, so I 
 decided to move to dovecot.  At first things were looking much better, except 
 that most of my folders, other than the Inbox, were not showing up.  I 
 started changing both the dovecot configuration and the folder structure of 
 my mail files, but now I can't even get the Inbox to populate.  Outlooks says 
 it is there, along with any folders I create new in Outlook, plus the Trash 
 folder, which is the only non-local folder with anything in it.  Try what I 
 might, I can't get my Inbox to populate or any of the existing folders to 
 show up at all.  Here is the current output from dovecot -n:

Set mail_debug=yes and check that the path Dovecot reports is equal to what you 
expect it to be.



Re: [Dovecot] New install not working.

2013-09-28 Thread Joseph Tam

Rhorer, Leslie leslie.rho...@twtelecom.com writes:


At first things were looking much better, except that most of my
folders, other than the Inbox, were not showing up.  I started changing
both the dovecot configuration and the folder structure of my mail
files, but now I can't even get the Inbox to populate.  Outlooks says
it is there, along with any folders I create new in Outlook, plus the
Trash folder, which is the only non-local folder with anything in it.
Try what I might, I can't get my Inbox to populate or any of the
existing folders to show up at all.  Here is the current output from
dovecot -n:

mail_location = mbox:/RAID/home/%u/mail


Maybe try

mail_location = mbox:/RAID/home/%n/mail:INBOX=/RAID/home/%n/mail/inbox

(%n does not include the domain part, but it might be the same as %u).

Joseph Tam jtam.h...@gmail.com


Re: [Dovecot] Conditional jump or move depends on uninitialised value(s)

2013-09-28 Thread Tamsy
Tamsy wrote the following on 28.09.2013 07:21:
 Timo Sirainen wrote the following on 27.09.2013 22:22:
 On 26.9.2013, at 8.17, Tamsy dovecot-l...@mohtex.net wrote:

 Dovecot 2.2.6 compiled on Ubuntu 10.04 fails on make check with the
 following errors.
 make install is finishing just fine and Dovecot itself works
 flawlessly so far.
 Yeah, the problem is only with 32bit systems. It's only in lib-http though, 
 so you're probably not using it unless you're using fts-solr. 
 http://hg.dovecot.org/dovecot-2.2/rev/83e74b3a0d10

 Thank you Timo.
 Yes, I'm with 32bit systems und yes, I'm using fts-solr. Will try the
 patch later today and report back.
FYI: After applying your patch make check finishes without problems.
All good now. Thank you again, Timo.


0x5DC8E7D9.asc
Description: application/pgp-keys


Re: [Dovecot] Using MailDir but local messages still save in mbox format

2013-09-28 Thread Axel Luttgens
Le 27 sept. 2013 à 09:35, Mike Edwards a écrit :

 I think I just fixed the problem but I am not sure if I did it the right 
 way..It seems that it is postfix that did it, not dovecot.   I found this 
 in the log for every local message...
 
 Sep 26 11:10:10 zeus postfix/local[14565]: 9B0294AA15E: 
 to=vm...@my.domain.com, orig_to=vmail, relay=local, delay=9, 
 delays=9/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
 
 So, I went to the postfix master.cf and commented out this line...
 
 #local unix  -   n   n   -   -   local
 
 Was that the correct way to do it?

Hello Mike,

You probably have cured the symptoms... ;-)

Your cron command has very likely been built for making use of the sendmail 
command.
When facing a naked recipient address such as vmail, Postfix' sendmail will 
look for an alias, then for a system user bearing that name.
There's probably no alias for vmail, but you clearly have a system user named 
vmail; so, sendmail will proceed with a local delivery for user vmail.

So, you could for example define an alias:

vmail: yourself@your.virtual.domain

since you're potentially more interested than user vmail in the messages 
emitted by the cron job.

Or add such a line to your crontab:

MAIL=yourself@your.virtual.domain

so as to override the default recipient, ie the user the job runs as.

HTH,
Axel



[Dovecot] Panic: file mail-storage.c: line 834 (mailbox_verify_name): assertion failed

2013-09-28 Thread Kamil Andrusz
Hello List!

I've encountered an error after upgrading my system and dovecot. I guess it's 
probably a result of a configuration problem, however after quite some 
tinkering with configuration I am still missing the source of the problem.

Sep 28 16:57:21 shwurzbung dovecot: imap(wizz): Panic: file mail-storage.c: 
line 834 (mailbox_verify_name): assertion failed: (strncmp(vname, ns-prefix, 
ns-prefix_len-1) == 0)
Sep 28 16:57:21 shwurzbung dovecot: imap(wizz): Fatal: master: service(imap): 
child 23203 killed with signal 6 (core not dumped - set service imap { 
drop_priv_before_exec=yes })

The problem above appears with both dovecot 2.2.5 and 2.2.6. It did not happen 
while using dovecot 2.1.12.
Operating system is OpenBSD 5.4-current and AMD64. FS type is FFS (default for 
OpenBSD).

Output of dovecot -n:

# 2.2.6: /etc/dovecot/dovecot.conf
# OS: OpenBSD 5.4 amd64  
auth_mechanisms = plain login
default_process_limit = 200
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
mbox_write_locks = fcntl
mmap_disable = yes
namespace {
  hidden = yes
  inbox = yes
  list = no
  location = mbox:~/mail:INBOX=/var/mail/%u
  prefix = inbox/
  type = private
}
namespace inbox {
  location = 
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox Sent Messages {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = 
}
passdb {
  driver = bsdauth
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
protocols = imap pop3 lmtp sieve
service auth {
  unix_listener /var/run/dovecot/auth-master {
group = virtuals
mode = 0600
user = virtuals
  }
  unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = _postfix
  }
  user = root
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
  inet_listener sieve_deprecated {
port = 2000
  }
}
ssl_cert = /etc/ssl/ssl.crt
ssl_key = /etc/ssl/private/ssl.key
userdb {
  driver = passwd
  override_fields = mail_home=/home/%u
}
protocol lmtp {
  mail_plugins =  sieve
}
protocol lda {
  mail_plugins =  sieve
}
protocol imap {
  imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
  mail_max_userip_connections = 64
}

Thanks in advance for any pointers to a resolution.

Best regards,
Kamil Andrusz

-- 
It's just a matter of opinion.