Some of the mail on the server to duplicate.

2014-11-04 Thread オーエフ・テック 榊
I am using dovecot in mbox format.
I'm going to set to leave the 30-day mail to the server with the mail
client.

The other day, some of email was received duplicate When receive mail.
Mail does not arrive between Nov 4 11:09:03 and Nov 4 11:13:25.
There should be the 259 (274-15) messages at the time of Nov 4 11:09:03
on the server from the log.
But there were the 280 messages at the time of Nov 4 11:13:25 and 21
messages was a duplicate.

Do you know the cause?

/var/log/maillog
--
Nov  4 11:08:14  dovecot: POP3(): Loading modules from
directory: /usr/lib/dovecot/pop3
Nov  4 11:08:14  dovecot: POP3(): Module loaded:
/usr/lib/dovecot/pop3/drac.so
Nov  4 11:08:14  dovecot: POP3(): Effective uid=1000, gid=1000
Nov  4 11:08:14  dovecot: POP3(): [drac]: login by  from
153.219.140.xxx
Nov  4 11:08:14  dovecot: POP3(): mbox:
data=/home/xxx/mail:INBOX=/var/spool/mail/xxx
Nov  4 11:08:14  dovecot: POP3(): mbox: root=/home/xxx/mail,
index=/home/xxx/mail, inbox=/var/spool/mail/xxx
Nov  4 11:09:03  dovecot: POP3(): Disconnected: Logged out
top=0/0, retr=32/209178, del=15/274, size=3554823
Nov  4 11:13:25  dovecot: POP3(): Loading modules from
directory: /usr/lib/dovecot/pop3
Nov  4 11:13:25  dovecot: POP3(): Module loaded:
/usr/lib/dovecot/pop3/drac.so
Nov  4 11:13:25  dovecot: POP3(): Effective uid=1000, gid=1000
Nov  4 11:13:25  dovecot: POP3(): [drac]: login by  from
153.219.140.xxx
Nov  4 11:13:25  dovecot: POP3(): mbox:
data=/home/xxx/mail:INBOX=/var/spool/mail/xxx
Nov  4 11:13:25  dovecot: POP3(): mbox: root=/home/xxx/mail,
index=/home/xxx/mail, inbox=/var/spool/mail/xxx
Nov  4 11:13:27  dovecot: POP3(): Disconnected: Logged out
top=0/0, retr=42/279598, del=0/280, size=3346231
--

dovecot -n
--
# 1.0.7: /etc/dovecot.conf
protocols: imaps pop3s
ssl_ca_file: /etc/mail/certs/mail..co.jp.cacert.pem
ssl_cert_file: /etc/mail/certs/mail..co.jp.crt
ssl_key_file: /etc/mail/certs/mail..co.jp.key
ssl_cipher_list: ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:!LOW
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_greeting: ready.
mail_access_groups: mail
mail_privileged_group: mail
mail_location: mbox:~/mail:INBOX=/var/spool/mail/%u
mail_debug: yes
mbox_write_locks: dotlock fcntl
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/pop3
mail_plugins(default): drac mail_log
mail_plugins(imap): drac mail_log
mail_plugins(pop3): drac
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
mail_log_max_lines_per_sec: 0
pop3_reuse_xuidl(default): no
pop3_reuse_xuidl(imap): no
pop3_reuse_xuidl(pop3): yes
pop3_lock_session(default): no
pop3_lock_session(imap): no
pop3_lock_session(pop3): yes
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd
plugin:
  drac_host: xxx.xxx.xxx.xxx
--

uname -a
--
Linux .co.jp 2.6.18-371.9.1.el5PAE #1 SMP Tue Jun 10 19:05:56
EDT 2014 i686 i686 i386 GNU/Linux
--


sieve replication and .dovecot.lda-dupes

2014-11-04 Thread Jan Behrend
Hello list,

I have a replicated dovecot with two servers.
People seem to get vacation responses more often then it is specified in
days: XX, depending on which dovecot instance they receive the
incoming mail.  Is .dovecot.lda-dupes replicated?

The other problem is that the vacation response is coming from the wrong
address depending on which field the recipient was listed: to: or
cc:

Here is my test example:

g9-rz has the vacation rule set up:

date | mail -s test -r jbehr...@mpifr-bonn.mpg.de -c
g9...@mpifr-bonn.mpg.de j...@flatpick.de

and this returns this vacation response:

### snip ###
Return-Path: 
Delivered-To: jbehr...@mpifr-bonn.mpg.de
Received: from mail2.mpifr-bonn.mpg.de ([134.104.18.60]) by
 mailbox2.mpifr-bonn.mpg.de (Dovecot) with LMTP id
+pgPDzm1WFSn9wAAvl5QjA
 for jbehr...@mpifr-bonn.mpg.de; Tue, 04 Nov 2014 12:16:13 +0100
X-Sieve: Pigeonhole Sieve 0.4.2
Message-ID:
dovecot-sieve-1415099773-54151...@mailbox1.mpifr-bonn.mpg.de
Date: Tue, 04 Nov 2014 12:16:13 +0100
From: j...@flatpick.de
To: jbehr...@mpifr-bonn.mpg.de
Subject: Vacation
In-Reply-To: e1xlc5t-0001lt...@jb1.mpifr-bonn.mpg.de
References: e1xlc5t-0001lt...@jb1.mpifr-bonn.mpg.de
Auto-Submitted: auto-replied (vacation)
Precedence: bulk
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Evolution-Source: 1385020682.6450.3@jb1

Ain't here!  Go away or something ...

Cheers
### snip ###


I would expect g9...@mpifr-bonn.mpg.de in the from: field.  Is this
correct?

Cheers Jan

-- 
MAX-PLANCK-INSTITUT fuer Radioastronomie
Jan Behrend - Rechenzentrum

Auf dem Huegel 69, D-53121 Bonn  
Tel: +49 (228) 525 359, Fax: +49 (228) 525 229
jbehr...@mpifr-bonn.mpg.de http://www.mpifr-bonn.mpg.de


# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.7 xfs
auth_gssapi_hostname = imap.mpifr-bonn.mpg.de
auth_krb5_keytab = /etc/krb5-ha.keytab
auth_mechanisms = plain login gssapi
auth_verbose = yes
default_process_limit = 1024
default_vsz_limit = 512 M
dict {
  acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
doveadm_password = xxx
doveadm_port = 50222
listen = 134.104.18.77
lmtp_save_to_detail_mailbox = yes
mail_location = mdbox:/var/mail/%Ln/maildrop
mail_plugins = acl zlib notify replication
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 imapflags notify
mdbox_rotate_size = 10 M
namespace mpifr_private {
  inbox = yes
  location = 
  prefix = 
  separator = .
}
namespace mpifr_shared {
  inbox = no
  list = children
  location = mdbox:/var/mail/%%n/maildrop
  prefix = shared.%%n.
  separator = .
  subscriptions = no
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-ldap-passdb.conf.ext
  driver = ldap
}
plugin {
  acl = vfile
  acl_defaults_from_inbox = yes
  acl_shared_dict = proxy::acl
  mail_replica = tcp:192.168.42.173:50222
  sieve = ~/.dovecot.sieve
  sieve_after = /var/mail/global-after.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +notify +imapflags
  sieve_global_dir = /var/mail
  zlib_save = gz
  zlib_save_level = 6
}
protocols =  imap lmtp sieve pop3
replication_dsync_parameters = -d -l 30 -U -n mpifr_private -n mpifr_shared
replication_max_conns = 6
service aggregator {
  fifo_listener replication-notify-fifo {
user = vmail
  }
  unix_listener replication-notify {
user = vmail
  }
}
service anvil {
  client_limit = 8192
}
service auth {
  client_limit = 8192
  unix_listener auth-userdb {
group = vmail
user = vmail
  }
}
service dict {
  unix_listener dict {
group = vmail
user = vmail
  }
}
service doveadm {
  inet_listener {
address = 192.168.42.105
port = 50222
  }
}
service imap-login {
  process_min_avail = 5
  service_count = 1
}
service imap {
  vsz_limit = 512 M
}
service indexer-worker {
  client_limit = 1
  process_limit = 10
  user = root
}
service lmtp {
  inet_listener lmtp {
address = 134.104.18.105
port = 24
  }
}
service managesieve-login {
  inet_listener sieve {
address = 134.104.18.77
port = 4190
  }
  service_count = 1
}
service pop3-login {
  process_min_avail = 5
}
service replicator {
  process_min_avail = 1
  unix_listener replicator-doveadm {
mode = 0666
  }
}
ssl = required
ssl_cert = /etc/dovecot/imap.pem
ssl_cipher_list = ALL:HIGH:!SSLv2:!LOW:!EXP:!RC4:!MD5:!aNULL
ssl_key = /etc/dovecot/private/imap.key
ssl_protocols = !SSLv2 !SSLv3
userdb {
  args = /etc/dovecot/dovecot-ldap-userdb.conf.ext
  driver = ldap
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins = acl zlib notify replication sieve
}
protocol imap {
  imap_client_workarounds = tb-lsub-flags
  mail_max_userip_connections = 20
  mail_plugins = acl zlib notify replication imap_acl imap_zlib
  ssl_cert = /etc/dovecot/imap.pem
  ssl_key = 

Re: 2.2.15 Panic in mbox_sync_read_next_mail()

2014-11-04 Thread Matthias Egger

Has someone of you just found any kind of solution to this problem?

We first had only one user with this problem. But now there are two more
users expecting the same problems. And as Jernej said, doveadm index
and force-resync do not solve the problem at all. After a few hours
these users have the same kind of errors and crashes.

We have now reverted back to 2.2.13 but that could not be a permanent
solution.

Timo Sirainen, have you maybe given a look to this or any hint?

Best regards
Matthias
-- 
Matthias Egger
ETH Zurich
Department of Information Technology  maeg...@ee.ethz.ch
and Electrical Engineering
IT Support Group (ISG.EE), ETL/F/24.1 Phone +41 (0)44 632 03 90
Physikstrasse 3, CH-8092 Zurich   Fax   +41 (0)44 632 11 95



smime.p7s
Description: S/MIME Cryptographic Signature


Re: 2.2.15 Panic in mbox_sync_read_next_mail()

2014-11-04 Thread Teemu Huovila
On 11/04/2014 01:38 PM, Matthias Egger wrote:
 
 Has someone of you just found any kind of solution to this problem?
Could the people experiencing this please send at least a) output of doveconf 
-n b) anonymized mbox content for an affected mbox
( http://www.dovecot.org/tools/mbox-anonymize.pl ). Other details can not hurt 
either.

br,
Teemu Huovila


Re: Example records for SQL AUTH

2014-11-04 Thread deoren

On 11/3/2014 4:29 PM, Jorge Bastos wrote:
 Hi,



 Where can I get examples for the records for the users table?

If I understand your question properly and you're looking for examples
of creating new virtual users, then this guide covers that:

https://www.linode.com/docs/email/email-with-postfix-dovecot-and-mysql

You would have to adjust to fit your chosen schema of course as theirs
is a much simpler setup that excludes the uid, gid, and home values.


 For SHA512-CRYPT, I tried:



 replace into users values ('a...@a.com','a.com',ENCRYPT('b', CONCAT('$6$',
 SUBSTRING(SHA(RAND()), -16))),'',0,0,'true');



 schema is:

 CREATE TABLE `users` (

   `username` varchar(255) NOT NULL,

   `domain` varchar(255) NOT NULL,

   `password` varchar(255) NOT NULL,

   `home` varchar(255) NOT NULL,

   `uid` int(11) NOT NULL,

   `gid` int(11) NOT NULL,

   `active` enum('true','false') NOT NULL DEFAULT 'true',

   PRIMARY KEY (`username`)

 ) ENGINE=InnoDB DEFAULT CHARSET=utf8



 Password_query:

 password_query = select username, domain,password from users where
 username='%u' and domain='%d' and active='true'

What does your auth-sql-conf.ext file look like? With as much
information as you already have in your database schema you may want to
look at using the Prefetch userdb.

http://wiki2.dovecot.org/UserDatabase/Prefetch

P.S.

Apologies for the duplication. I forgot to reply to the list with my 
last response.


Re: authentication issues with ipad / mac email client

2014-11-04 Thread Rajesh M.
hi

i am using dovecot version2.2.7 provided by qmailtoaster - 64 bit on centos 6.5 
64 bit system - 16 gb ram with a hex core processor.

i was using qmail pop3 on a 32 bit system for the past over 7 years and had 
absolutely no issues.

with dovecot pop3 i have started receiving a variety of problems

mac machines and ipads -- port 110 does not work at all. i have to use port 995 
only.

i have allowed plain text auth.

thunderbird works perfectly -- both imap and pop3 with port 110 and port 995

outlook 2010 also works but incase of one customer the mail download is very 
slow. i have a windows servers with mailenable mail server and the same 
customer could download perfectly from those windows servers.

i am using the default service pop3 settings

Do i need to increase the memory settings /  for pop3 login similar to imap 
login which i am missing out like what is configured for imap. (pl see config 
file below)

My mail server is busy with around 4000 mailboxes and transacting over 200k 
emails per day. atleast around 250 simultaneous pop3 connections during peak 
hours.



# dovecot -a | grep pop3_uidl_format
pop3_uidl_format = %08Xu%08Xv


[root@ns1 spamassassin]# dovecot -n
# 2.2.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.29.2.el6.x86_64 x86_64 CentOS release 6.5 (Final)
auth_cache_negative_ttl = 0
auth_cache_size = 32 M
auth_cache_ttl = 30 mins
auth_mechanisms = plain login digest-md5 cram-md5
default_login_user = vpopmail
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
log_path = /var/log/dovecot.log
login_greeting = ready.
mail_max_userip_connections = 50
mail_plugins =  quota
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
namespace {
  inbox = yes
  location =
  prefix =
  separator = .
  type = private
}
passdb {
  args = cache_key=%u webmail=127.0.0.1
  driver = vpopmail
}
plugin {
  quota = maildir:ignore=Trash
  quota_rule = ?:storage=0
}
protocols = imap pop3

service imap-login {
  client_limit = 256
  process_limit = 400
  process_min_avail = 4
  service_count = 0
  vsz_limit = 384 M
}
ssl_cert = /var/qmail/control/servercert.pem
ssl_dh_parameters_length = 2048
ssl_key = /var/qmail/control/servercert.pem
userdb {
  args = cache_key=%u quota_template=quota_rule=*:backend=%q
  driver = vpopmail
}
protocol imap {
  imap_client_workarounds = delay-newmail
  mail_plugins =  quota imap_quota
}
protocol pop3 {
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_fast_size_lookups = yes
  pop3_lock_session = no
  pop3_no_flag_updates = yes
}


i am really puzzled because dovecot was highly recommended by all.

thanks for all your help


rajesh


- Original Message -
From: Daniel Parthey [mailto:p...@posteo.de]
To: 24x7ser...@24x7server.net,dovecot@dovecot.org
Sent: Sat, 01 Nov 2014 09:34:53 +0100
Subject: Re: authentication issues with ipad / mac email client

Hi,

please post
* output of doveconf -n
* error log messages from dovecot for failed vs. succeeded login

Regards
Daniel


doveadm index message-decoder assertion failed

2014-11-04 Thread cs+dovecot

Hi,

I've setup FTS using lucene and it should be working, the lucene index 
is updated when mail arrives.


I also managed to reindex my INBOX: doveadm index -u foo -q INBOX

However, when I try to index an Archives folder: doveadm index -u foo -q 
Archives, the index-work crashed with this log message:


dovecot: indexer-worker(foo): Panic: file message-decoder.c: line 363 
(message_decode_body): assertion failed: (ctx-translation_size = 
sizeof(ctx-translation_buf))
dovecot: indexer: Error: Indexer worker disconnected, discarding 1 
requests for foo
dovecot: indexer-worker(foo): Fatal: master: service(indexer-worker): 
child 28730 killed with signal 6 (core dumps disabled)


The Archives folder has 22317 messages.

Please help.


dovecot --version
2.2.15


dovecot -n
# 2.2.15: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 10.0-STABLE i386
auth_username_format = %Ln
first_valid_gid = 1000
first_valid_uid = 1000
login_trusted_networks = xxx.xxx.xxx.x/24
mail_location = maildir:~/Maildir
mail_plugins =  fts fts_lucene
mail_privileged_group = mail
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 duplicate

namespace inbox {
  inbox = yes
  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 = pam
}
plugin {
  antispam_backend = spool2dir
  antispam_spam = Junk
  antispam_spool2dir_notspam = 
/var/spool/dovecot-antispam/queue/ham-%%020lu-%u-%%05lu
  antispam_spool2dir_spam = 
/var/spool/dovecot-antispam/queue/spam-%%020lu-%u-%%05lu

  antispam_trash = Trash
  fts = lucene
  fts_autoindex = yes
  fts_lucene = whitespace_chars=@.
}
protocols = imap lmtp sieve
service imap-login {
  inet_listener imap {
address = xxx.xxx.xxx.x
  }
  inet_listener imaps {
address = xxx.xx.xx.xx
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
address = xxx.xx.xx.xx xxx.xxx.xx.x
port = 4190
  }
}
ssl_cert = /var/ssl/crts/mail.crt
ssl_key = /var/ssl/keys/ssl-npp.key
userdb {
  driver = passwd
}
protocol lmtp {
  mail_plugins =  fts fts_lucene sieve
}
protocol imap {
  mail_max_userip_connections = 20
  mail_plugins =  fts fts_lucene antispam
}


Re: Corrupted index cache after migrating from maildir to mdbox

2014-11-04 Thread Karl O. Pinc
On 11/01/2014 07:15:40 AM, Tim wrote:
 Hi Karl
 
 On 31.10.2014 12:58, Karl O. Pinc wrote:
  I was poking around in the code and I think there's
  only 1 last_indexed_uid in the data structure.  
  I have no clue if this value is used outside of fts
  but you could poke it with a stick and
 
 what exactly do you mean?
 
  try the doveadm fts rescan command to reset this to 0.
 
 
 I did doveadm fts rescan -u myaccount but after that I still see 
 the
 errors in the log :(

What you did is what I thought might be worth trying.



Karl k...@meme.com
Free Software:  You don't pay back, you pay forward.
 -- Robert A. Heinlein


error using fts/tika

2014-11-04 Thread Infoomatic
Hi,

I played around a bit and tried to get tika to run with dovecot. In the end I 
was at least a bit successful.
However, when I tried to index my inbox with doveadm index -A '*'

I get:
doveadm(infoomatic): Error: fts_tika: PUT http://localhost:8081/tika failed: 
500 Server Error
doveadm(infoomatic): Warning: I/O leak: 0x7f4f697bb170 (line 127, fd 24)
doveadm(infoomatic): Panic: file ioloop-iolist.c: line 22: unreached
doveadm(infoomatic): Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0(+0x67f30) [0x7f4f697e8f30] - 
/usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7f4f697e8f9a] 
- /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f4f6979c515] - 
/usr/lib/dovecot/libdovecot.so.0(+0x79b0d) [0x7f4f697fab0d] - 
/usr/lib/dovecot/libdovecot.so.0(io_loop_handle_add+0x3b) [0x7f4f697fb2ab] - 
/usr/lib/dovecot/libdovecot.so.0(+0x78cf1) [0x7f4f697f9cf1] - 
/usr/lib/dovecot/libdovecot.so.0(io_loop_move_io+0x3e) [0x7f4f697fa93e] - 
/usr/lib/dovecot/libdovecot.so.0(connection_switch_ioloop+0x14) 
[0x7f4f697e6df4] - 
/usr/lib/dovecot/libdovecot.so.0(http_client_switch_ioloop+0x28) 
[0x7f4f697bf8e8] - /usr/lib/dovecot/libdovecot.so.0(+0x36a86) [0x7f4f697b7a86] 
- 
/usr/lib/dovecot/modules/lib21_fts_solr_plugin.so(solr_connection_post_more+0x29)
 [0x7f4f68d9f069] - /usr/lib/dovecot/modules/lib21_fts_solr_plugin.so(+0x3547) 
[0x7f4f68d9b547] - 
/usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_build_mail+0x35c) 
[0x7f4f68faaffc] - /usr/lib/dovecot/modules/lib20_fts_plugin.so(+0xd3ee) 
[0x7f4f68fb03ee] - 
/usr/lib/dovecot/libdovecot-storage.so.0(mail_precache+0x19) [0x7f4f69ac3c39] 
- doveadm() [0x419501] - doveadm() [0x4153c3] - 
doveadm(doveadm_mail_try_run+0x48c) [0x4162ac] - doveadm(main+0x3d8) 
[0x412588] - /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) 
[0x7f4f693dcec5] - doveadm() [0x4127a4]
Aborted (core dumped)

The last messages of the tika-server:
Nov 04, 2014 10:18:17 PM org.apache.tika.server.TikaResource logRequest
INFO: tika (video/x-ms-wmv)
Nov 04, 2014 10:18:17 PM org.apache.tika.server.TikaResource$3 write
WARNING: tika: Text extraction failed
org.apache.tika.exception.TikaException: Unexpected RuntimeException from 
org.apache.tika.server.TikaResource$1@44742f73
Nov 04, 2014 10:18:17 PM org.apache.cxf.jaxrs.utils.JAXRSUtils 
logMessageHandlerProblem
SEVERE: Problem with writing the data, class 
org.apache.tika.server.TikaResource$3, ContentType: text/plain
Nov 04, 2014 10:18:17 PM 
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
WARNING: javax.ws.rs.WebApplicationException: HTTP 415 Unsupported Media Type

dovecot -n:
# 2.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-39-generic x86_64 Ubuntu 14.04.1 LTS ext4
auth_username_format = %n
disable_plaintext_auth = no
mail_gid = vmail
mail_home = /var/lib/vmail/home/%u
mail_location = mdbox:/var/lib/vmail/mail/%u
mail_plugins = fts fts_solr
mail_uid = vmail
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 duplicate 
imapflags
mdbox_rotate_size = 32 M
namespace inbox {
  inbox = yes
  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 {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  fts = solr
  fts_autoindex = yes
  fts_solr = url=http://localhost:8080/solr/ break-imap-search
  fts_tika = http://localhost:8081/tika
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +imapflags
}
protocols =  imap sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
user = vmail
  }
}
service managesieve-login {
  inet_listener sieve_deprecated {
port = 2000
  }
}
ssl_cert = /etc/dovecot/dovecot.pem
ssl_key = /etc/dovecot/private/dovecot.pem
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lda {
  mail_plugins = fts fts_solr sieve
}

Has anyone hints? Or do the devs want some more information for debugging?

best regards,

infoomatic


Can I take mail from Maildir mailbox and deliver it as new?

2014-11-04 Thread James Pryor

Hello list,
I have a need for someone to point me in the right direction.

Our old email system (system A) had an account that acted as a mailing 
list accumulator/archiver. This account was a member of every list and 
mail would be sent to it's address. The strange part is that email was 
not delivered to system A because there was a . (dot) forward alias to 
another machine (system B) that runs sendmail. System B's sendmail then 
slurped up the incoming mail and processed it in some fashion which I do 
not care about.


On our new mail server (system C (OS is RHEL6.5, 
dovecot-2.0.9-7.el6_5.1.x86_64, postfix-2.6.6-6.el6_5.x86_64)), I 
performed a bulk Linux account and mailbox migration from system A to 
system C using postfix/dovecot/imapsync. But I forgot to put the alias 
in place on system C to send all incoming that special account's mail on 
system B. So mail started to get delivered to local user ar_list on 
system C.


So now I have a Maildir format mailbox on system C that has mail in it 
and I want to be able to manipulate and/or re-send those emails as new 
mail to system B. Once it is received by sendmail on system B, then I 
don't care about it any more.


Is there a way to take mail sitting on disk in a mailbox and deliver it 
as if it was new mail to some other machine?

Thanks,
James

-bash-4.1$ ls -l
total 566
drwx-- 2 ar_list users   2048 Aug  7 21:29 cur
-rw--- 1 ar_list users  12556 Oct  8 17:09 dovecot.index
-rw--- 1 ar_list users 378880 Oct  9 14:41 dovecot.index.cache
-rw--- 1 ar_list users   2580 Oct  9 14:41 dovecot.index.log
-rw--- 1 ar_list users  65549 Oct  9 14:41 dovecot-uidlist
-rw--- 1 ar_list users  8 Aug  7 19:38 dovecot-uidvalidity
-r--r--r-- 1 ar_list users  0 Aug  7 19:38 dovecot-uidvalidity.53e40ddc
drwx-- 2 ar_list users 100352 Oct  9 14:41 new
drwx-- 2 ar_list users   2048 Oct  9 14:41 tmp


-bash-4.1$ ls new/ | wc -l
1020

-bash-4.1$ ls cur | wc -l
25


Re: doveadm index message-decoder assertion failed

2014-11-04 Thread Hiromi Kimura

cs+dove...@ctzen.com wrote:


Hi,

I've setup FTS using lucene and it should be working, the lucene  
index is updated when mail arrives.


I also managed to reindex my INBOX: doveadm index -u foo -q INBOX

However, when I try to index an Archives folder: doveadm index -u  
foo -q Archives, the index-work crashed with this log message:


dovecot: indexer-worker(foo): Panic: file message-decoder.c: line  
363 (message_decode_body): assertion failed: (ctx-translation_size  
= sizeof(ctx-translation_buf))
dovecot: indexer: Error: Indexer worker disconnected, discarding 1  
requests for foo
dovecot: indexer-worker(foo): Fatal: master:  
service(indexer-worker): child 28730 killed with signal 6 (core  
dumps disabled)


The Archives folder has 22317 messages.

Please help.


dovecot --version
2.2.15


dovecot -n
# 2.2.15: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 10.0-STABLE i386


Last week, I faced same error on FreeBSD10.0 with solr index setup.
This is a FreeBSD10 specific problem due to iconv library (in libc).
So, solution is install the converters/libiconv package and
recompile dovecot package.
Edit mail/dovecot2/Makefile,
from
 USES=   cpe iconv libtool
to
 USES=   cpe iconv:translit libtool

Hope this helps you.

-=-=-=-=-
Hiromi KIMURA http://www.tac.tsukuba.ac.jp/~hiromi/


Re: Can I take mail from Maildir mailbox and deliver it as new?

2014-11-04 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 4 Nov 2014, James Pryor wrote:

Is there a way to take mail sitting on disk in a mailbox and deliver it as if 
it was new mail to some other machine?


If you don't care about the Recieved and probable Delivered-To lines the 
delivery on system C has added, you can resent it via:


for f in new/* cur/*; do
 sendmail final_recipient_on_system_B  $f
done

However, first test if a message sent from command line takes the route 
you want it to take :-)


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBVFnIQ3z1H7kL/d9rAQJX/AgAwyooFEWpVbc5g2mjcgSGnTgRQrnIlnag
v0Hxr0ZHunYCQc9mXhGEOPsr3zCPEUxANDWf03H1jvUFxj37iCAp0X6MpMk13+x0
2U8pFx4bqEy82+71gh8r/UB/9KPUsgG32WLcE8xKqF8avtr4yJBazOScmtnbF/f/
cPzIFxf90eP/8VAlh3epRR1bwLVxnm1f+V0PqYry9zJ+ruVUL0DoJJiYOYxUg4Mz
684NDhz2DA8eDcf+Edrfy+UiRROR85idBWnj173lO0KL/K6bsyzfHtkqfaXgObO7
BjZdMelKTrVTTXmjSZaO0fOtbgQ6irZU5B1IxCbMAN12/l4RMFlxLw==
=O7Rc
-END PGP SIGNATURE-