:: Re: [DNG] Pin Dovecot NOW!
Top Page
Delete this message
Reply to this message
Author: Marjorie Roome
Date:  
To: dng
Subject: Re: [DNG] Pin Dovecot NOW!
On Mon, 2025-08-04 at 17:56 +1200, Daniel Reurich (Centurion) wrote:
> <snip>
>
> > Yeah, I'm looking for alternative IMAP servers that store via a
> > standard Maildir: Something I can plug in to directly replace
> > Dovecot.
> >
> <snip>
>
> Cyrus Imap - far superior in every way - even does JMAP, WebDav,
> CalDAV and CardDAV and a basic HTTP(S) server for aiding
> autoconfiguration of email clients out of the mail server.  
> It's biggest challenge is the setup of saslauthd which is annoying
> but not impossible.
>

We used to use Cyrus before we switched to using Dovecot in 2020.

As you mention saslauthd can be an issue.

In our case a misconfiguration led to making possible an open relay,
which after some years was exploited by spammers in 2020. 
Not a happy situation at the time as I was on holiday when it happened.

Prior to rebuilding our postfix mail server with Dovecot and a much
more restrictive postfix main.cf we fixed the relay problem by
following this note:

> https://languor.us/cyrus-sasld-testsaslauthd-connect-no-such-file-or-directory-0
>
> Cyrus sasld testsaslauthd connect() : No such file or directory 0
> Submitted by Druss on Wed, 2012-07-11 01:22
>
> While trying to debug a postfix authentication issue in Debian 6, I
> had to use testsaslauthd to test things out:
> testsaslauthd -s smtp -u [usermame@???] -p [user_password]
>
> only to get the following error:
> connect() : No such file or directory 0
>
> This is apparently because a lot of people (and authors) follow the
> same guide for configuring postfix and saslauthd. One of the steps
> missing is to symlink and saslauthd directory to a location within
> postfix. To fix:
>
>     Go to /var/run.
>     Move the saslauthd directory to saslauthd.bak (just as a note):
>     sudo mv saslauthd saslauthd.bak
>     Run the following command to create the symlink:
>     sudo ln -s /var/spool/postfix/var/run/saslauthd
> /var/run/saslauthd
>     Restart saslauthd for good measure:
>     sudo /etc/init.d/saslauthd restart

>
> This should fix the error. Good luck!


Nevertheless I share Kevin Chadwick's concern as to the safety of Cyrus
compared to the then, and my current, version of Dovecot.

It would be nice to have a good solution before Excalibur becomes the
new stable and we get 'upgraded' to the new version of Dovecot.

--
Marjorie