Sunday, October 30, 2022

Re: [new] stalwart-jmap & stalwart-imap: JMAP server written in rust

Le Fri, Oct 07, 2022 at 04:44:05PM +0200, Landry Breuil a écrit :
> hi,
>
> here's two new wip ports for https://jmap.stalw.art/ and its counterpart
> https://imap.stalw.art/ which serves as an IMAP proxy in front of the
> JMAP server.
>
> cf https://jmap.io/software.html for more details about JMAP.
>
> i've had quite a struggle with some rust bits but in the end it builds,
> packages and starts fine. Not properly tested yet, as its mandatory to
> setup TLS certs for it.
>
> it cant work yet with the mail/meli submission i've sent but it's being worked
> on upstream.
>
> as for the uids ive reused the ones from prelude/pfflowd:
>
> 561 _rbldns _rbldns net/rbldnsd
> 562 _smokeping _smokeping net/smokeping
> 563 _postgrey _postgrey mail/postgrey
> -#564 _prelude _prelude security/prelude
> -#565 _pfflowd _pfflowd net/pfflowd
> +564 _stalwart-jmap _stalwart-jmap mail/stalwart-jmap
> +565 _stalwart-imap _stalwart-imap mail/stalwart-imap
> 566 _tor _tor net/tor
> #567 _dk-milter _dk-milter mail/dk-milter
> 568 _milter-greylist mail/milter-greylist

New version of the port:
- used subdirs to factorize most bits in Makefile.inc
- also includes stalwart-cli port to manage the jmap server
- tweaked the rc script to log to syslog, a bit ugly with control chars..
- tweaked the default conf for stalwart-imap, since it runs as an
unprivileged user it cant bind to 143/993
- tweaked the conf to disable most certs as they're a pain to deal with
when one wants to quickly prototype, and TLS should be handled by a
reverse proxy anyway
- written a README with all the bits & tweaks i've found so far to have
something running
- tested:
- created domain/account, imported mbox
- mutt against stalwart-imap -> works, shows mails
- thunderbird against stalwart-imap -> lists mails, doesnt show mail
content
- toyed with curl to query jmap server, works
- meli over jmap chokes, reported upstream at
https://git.meli.delivery/meli/meli/issues/162
- wrangled with https://cypht.org JMAP support, being debugged in
https://github.com/jasonmunro/cypht/issues/180

feedback on the ports welcome, testing too. Oks too :)

Landry

No comments:

Post a Comment