Re: Dovecot 2.2.25 fails on SSL

2016-09-05 Thread Edgar Pettijohn
Do you have multiple OpenSSL's installed?

Sent from my iPhone

> On Sep 5, 2016, at 10:38 PM, Michael A. Peters  wrote:
> 
> 
> 
>> On 09/02/2016 12:50 PM, Joseph Tam wrote:
>> Aki Tuomi wrote:
>> 
>> ldd /usr/local/Dovecot-2.2.25/lib/dovecot/libdcrypt_openssl.so
>>linux-gate.so.1 =>  (0x00dca000)
>>libcrypto.so.1.0.0 => not found
>> ...
>>> 
>>> Well, then it leaves only option of using /etc/ld.so.conf
>>> so basically add your libssl location there.
>> 
>> You can also affect where shared libraries are loaded using the
>> LD_LIBRARY_PATH environment variable.  Try adding
>> 
>>LD_LIBARY_PATH=/location/of/libdir; export LD_LIBARY_PATH
>> 
>> to your service boot scripts.
> 
> would an rpath solve the problem?
> 
> I believe chrpath command can probably be used to set the rpath if it isn't 
> set at compile time.


Re: Dovecot 2.2.25 fails on SSL

2016-09-05 Thread Michael A. Peters



On 09/02/2016 12:50 PM, Joseph Tam wrote:

Aki Tuomi wrote:


ldd /usr/local/Dovecot-2.2.25/lib/dovecot/libdcrypt_openssl.so
linux-gate.so.1 =>  (0x00dca000)
libcrypto.so.1.0.0 => not found
...


Well, then it leaves only option of using /etc/ld.so.conf
so basically add your libssl location there.


You can also affect where shared libraries are loaded using the
LD_LIBRARY_PATH environment variable.  Try adding

LD_LIBARY_PATH=/location/of/libdir; export LD_LIBARY_PATH

to your service boot scripts.


would an rpath solve the problem?

I believe chrpath command can probably be used to set the rpath if it 
isn't set at compile time.


Re: Dovecot 2.2.25 fails on SSL

2016-09-05 Thread Andreas M. Kirchwitz
Joseph Tam  wrote:

> You can also affect where shared libraries are loaded using the
> LD_LIBRARY_PATH environment variable.  Try adding
>
>   LD_LIBARY_PATH=/location/of/libdir; export LD_LIBARY_PATH
>
> to your service boot scripts.

Thanks for the advice. It's fine for a temporary working around
problems (like this one, so you're absolutely right :-)

However, no program should require that for regular use because
you never know exactly if somebody in the chain of executed code
removes certain environment variables. And also the opposite way,
if Dovecot runs external programs, those might not play well
with an existing LD_LIBARY_PATH and incompatible SSL libraries.

For every program I compile myself, I link it against my custom
OpenSSL library (always newest version; distributions usually tend
to stick with a specific version and only apply security fixes).
For most packages (eg, Exim, Apache HTTP, BIND, INN, OpenSSH,
Mutt, wget etc.) it pretty straightforward. Even if not, usually
I can find a quick solution myself.

Dovecot is the only package I know of where there are like a thousand
places to put additional libs in the Makefile.am files, but most of
them are totally ignored by configure. And even if I modify the
Makefile files after configure, again most of the additional options
get ignored. Never seen it that complicated.

As Dovecot is my favorite IMAP daemon, there's no way I'm giving up. :-)

I'm totally confident that the developers will find a good solution.
And I'm happy to test every patch they come up with.

Greetings, Andreas  


[SOLVED] Error: istream-seekable: safe_mkstemp(/tmp/dovecot.imap.) failed

2016-09-05 Thread Thomas Leuxner
* Thomas Leuxner  2016.03.02 09:54:

> * Timo Sirainen  2016.03.01 23:03:
> 
> > > I'm seeing these recently:
> > > 
> > > Feb 27 09:24:01 nihlus dovecot: imap(t...@leuxner.net): Error: 
> > > istream-seekable: safe_mkstemp(/tmp/dovecot.imap.) failed: No such file 
> > > or directory
> > 
> > You don't have a /tmp directory or imap is chrooted somewhere where there 
> > is no /tmp?..

Finally got down to the issue. The messages occur if the systemd-*service 
temporary directory gets deleted inside /tmp

$l -d systemd*
drwx-- 3 root root 60 Sep  5 09:29 
systemd-private-37bbda70211940c593ef885fdfc1a1dc-dovecot.service-II7xjd

Case solved.


signature.asc
Description: Digital signature


Strange result searching over fts_solr

2016-09-05 Thread Davide Marchi
Hi to all, i have a strange issue if i search a series of messages
through normal index on Sent folder my result is correct but if i make
same search thrpough fts_solr result is much smaller on number of mails:


- My solr version is 5.5.2 

doveadm -Dv index -u davide.mar...@mail.cgilfe.it '*' no error 

this is my dovecot version and my doveconf 

- 2.2.23 (806d709) 

-# 2.2.23 (806d709): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.10
auth_master_user_separator = *
auth_mechanisms = plain digest-md5
debug_log_path = /var/log/dovecot/dovecot-debug.log
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
imap_hibernate_timeout = 1 mins
imap_id_log = *
imap_idle_notify_interval = 1 mins
info_log_path = /var/log/dovecot/dovecot.log
last_valid_gid = 89
last_valid_uid = 89
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = 0.0.0.0
lmtp_rcpt_check_quota = yes
log_path = /var/log/dovecot/dovecot-err.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_log_format_elements = %u method=%m rip=%r lip=%l mpid=%e %c %k
session=<%{session}>
mail_fsync = never
mail_gid = 89
mail_location = maildir:~/Maildir
mail_plugins = " notify zlib quota fts fts_solr stats acl"
mail_prefetch_count = 100
mail_uid = 89
mailbox_list_index = yes
maildir_very_dirty_syncs = yes
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 index ihave duplicate mime foreverypart
extracttext
mmap_disable = yes
namespace {
inbox = yes
location =
prefix =
separator = /
type = private
}
namespace {
location = maildir:/home/public/:INDEX=/mnt/ramdisk/public
prefix = Public/
separator = /
subscriptions = no
type = public
}
passdb {
args = /usr/local/etc/dovecot/passwd.masterusers
driver = passwd-file
master = yes
pass = yes
}
passdb {
driver = shadow
}
passdb {
args = webmail=127.0.0.1 cache_key=%u%s
driver = vpopmail
}
plugin {
acl = vfile:/usr/local/etc/dovecot/dovecot-acl
antispam_backend = crm114
antispam_crm_args =
-u;/opt/crm114;--fileprefix=/opt/crm114/;--config=/usr/share/crm114/mailfilter.cf
antispam_crm_binary = /usr/share/crm114/mailreaver.crm
antispam_crm_notspam_arg = --good
antispam_crm_spam_arg = --spam
antispam_signature = X-CRM114-CacheID
antispam_spam_pattern_ignorecase = crm-spam*
antispam_trash_pattern_ignorecase = Trash*
antispam_unsure_pattern_ignorecase = crm-unsure*
mail_log_events = delete undelete expunge copy
mail_log_fields = uid box msgid size
mail_log_group_events =
quota = maildir:User quota
quota_rule = ?:storage=0
quota_rule2 = Trash:storage=+20%%
quota_vsizes = yes
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = ~/.dovecot.sieve
sieve_before = /usr/local/lib/dovecot/sieve/default.sieve
sieve_default = /usr/local/lib/dovecot/sieve/default.sieve
sieve_dir = ~/sieve
sieve_global_dir = /usr/local/lib/dovecot/sieve/
stats_command_min_time = 1 mins
stats_domain_min_time = 12 hours
stats_ip_min_time = 12 hours
stats_memory_limit = 16 M
stats_refresh = 30 secs
stats_session_min_time = 15 mins
stats_track_cmds = yes
stats_user_min_time = 1 hours
zlib_save = gz
zlib_save_level = 9
}
protocols = imap sieve lmtp
service anvil {
client_limit = 2048
}
service auth {
client_limit = 2048
unix_listener auth-master {
group = vchkpw
mode = 0600
user = vpopmail
}
unix_listener auth-userdb {
group = vchkpw
mode = 0600
user = vpopmail
}
}
service decode2text {
executable = script /usr/local/libexec/dovecot/decode2text.sh
unix_listener decode2text {
mode = 0666
user = dovecot
}
}
service imap-hibernate {
unix_listener imap-hibernate {
group = vchkpw
mode = 0600
user = vpopmail
}
user = vpopmail
}
service imap-login {
executable = /usr/local/libexec/dovecot/imap-login
inet_listener imaps {
address = 192.168.10.50
}
process_limit = 1024
process_min_avail = 2
service_count = 0
}
service imap {
executable = /usr/local/libexec/dovecot/imap
unix_listener imap-master {
group = vchkpw
mode = 0600
user = vpopmail
}
}
service lmtp {
executable = lmtp -L
inet_listener lmtp {
address = 192.168.10.50 127.0.0.1 ::1
port = 24
}
process_min_avail = 5
unix_listener lmtp {
group = vchkpw
mode = 0600
user = vpopmail
}
}
service managesieve-login {
executable = managesieve-login
inet_listener sieve {
address = 0.0.0.0
port = 4190
}
process_min_avail = 2
service_count = 0
}
service managesieve {
process_limit = 10
}
service quota-warning {
executable = script /usr/local/libexec/dovecot/quota-warning
unix_listener quota-warning {
mode = 0660
user = vpopmail
}
user = vpopmail
}
service stats {
fifo_listener stats-mail {
group = vchkpw
mode = 0600
user = vpopmail
}
}
ssl_cert = -<%s>-%m: %$
hostname = mail.cgilfe.it
info_log_path = /var/log/dovecot/dovecot-lmtp.log
log_path = /var/log/dovecot/dovecot-lmtp-err.log