Mailbox alias plugin and INBOX. folders

2017-01-22 Thread James White
Hi,

I'm trying to workaround the lack of IMAP folder mapping settings on
Windows 10 Mobile in regards to controlling the Sent, Trash etc folder
my device uses. Currently, my device creates its own "Sent Items" folder
"Deleted Items" folder along with others, this is pain when using
clients like Thunderbird which places such them in the correct places,
because it can be configured this way.

While this is a Microsoft issue, its looking very unlikely they will add
IMAP mapping control, as its been like this since Windows Phone 7. So I
was looking for performing a workaround at the server level.

I came across the Dovecot Mailbox alias plugin, which sounds like a
decent workaround, to at least allow sent email messages from my Windows
10 mobile device to show up in the right place, I'm aware of the
potential for double cache etc, but I have enough storage for it.

http://wiki2.dovecot.org/Plugins/MailboxAlias

What I'm having difficulty with, is expressing the mailbox_alias to an
existing INBOX. folder. My email server uses the INBOX prefix setup, so
my configured folders are:

INBOX\INBOX.Sent
INBOX\INBOX.Drafts
INBOX\INBOX.Trash
INBOX\INBOX.Spam

Most examples seem to indicate doing at the root folder level i.e. Sent
Items -> Sent not Sent Items -> INBOX\INBOX.Sent.

Is it possible to use the alias plugin in this way? If so how would I
express this using mailbox_alias_old, I tried INBOX/Sent, but this seems
to send all items to a blackhole, as they can no longer be found in any
folder.

It does appear to work at the root folder level, but as my setup is
using the older INBOX prefix, I don't want to do that.

Any hints/tips would be appreciated!

Thanks,

James



signature.asc
Description: OpenPGP digital signature


Re: fts_solr and connection via https://

2017-01-22 Thread Stephan Bosch
Op 1/22/2017 om 10:01 AM schreef Jan Vonde:
> I tried adding the following settings but that didn't help:
>   ssl_ca = < /etc/ssl/certs/ca-certificates.crt
>   ssl_client_ca_dir = /etc/ssl/certs
>
> Can you give me a hint how I can get the ssl certificate accepted?

That should normally have done the trick. However, the sources tell me
that no ssl_client settings are propagated to the http_client used by
fts-solr, so SSL is not currently supported it seems.

I'll check how easy it is to add that.

Regards,

Stephan.


fts_solr and connection via https://

2017-01-22 Thread Jan Vonde
Hi,

I am trying to get fts_solr working and my index server is available via
HTTPS only. Dovecot is running on a Debian Jessie system and the Solr
server has a letsencrypt certificate.


My dovecot version is:
  2.2.devel (a9ed8ae)


The current setup is:

10-mail.conf:
  mail_plugins = fts fts_solr

90-fts.conf:
  plugin {
   fts = solr
   fts_autoindex = yes
   fts_solr = url=https://foo.example.com/solr/dovecot/
  }


When I try to index the mailboxes I am getting error messages like this:
  doveadm(user@host): Error: fts_solr: Lookup failed: 9002 Couldn't
initialize SSL context: Can't verify remote server certs without trusted
CAs (ssl_client_ca_* settings)
  doveadm(user@host): Error: Mailbox INBOX: Status lookup failed:
Internal error occurred. Refer to server log for more information.
[2017-01-22 09:52:38]
  Segmentation fault


Contacting the index server via curl on the command line on the same
host works, it returns HTTP 200:

user@host ~ $  curl -s -o /dev/null -w "%{http_code}"
https://foo.example.com/solr/
200
user@host ~ $



Currently I have the following ssl related settings:
user@host ~ $   doveconf -n -P | grep -i ssl
ssl_cert =