sysconfig/dovecot.git
21 months agoAdd POP3 support for GMail syncing master
Alex Dehnert [Sun, 10 Jul 2022 17:54:47 +0000 (13:54 -0400)]
Add POP3 support for GMail syncing

3 years agoFix the "nobody" replication problem
Alex Dehnert [Sat, 24 Oct 2020 03:30:31 +0000 (23:30 -0400)]
Fix the "nobody" replication problem

dovecot by default only considers users with UIDs over 500. For normal mail
serving, this is a supplement to the "can you actually log in?" check, so it's
okay if it's a little too broad. For replication, though, dovecot enumerates
all the users and tries to replicate them all. If a user doesn't *really* exist
(nonexistent homedir, say), this produces annoying errors. Sadly, "nobody" is
treated as a real user by this default dovecot config, and mildly breaks some
stuff. I've been using "doveadm replicator remove nobody" to skip "nobody", but
this needs to be run every boot.

I've poked at various other solutions:
- I discovered a while ago the username_filter setting, which became available
  in Dovecot 2.2.30+. I'm finally running that, but it appears to be only for
  passdb's, and can't be set on userdb's. Since userdb's are responsible for
  the enumeration, this doesn't help.
- I found the result_success setting, and tried adding a userdb driven off of
  /etc/dovecot/deny-users with result_sucess = return-fail. After some
  confusing failures due to having initially used return_sucess instead, I got
  the config to parse, but it seems this doesn't exclude the user from the user
  list.
- The replication wiki page (https://wiki2.dovecot.org/Replication) notes that
  you can disable a user by providing the noreplicate database field.
  Unfortunately, that's not available until 2.3.1, which I still don't have.

Finally, I started wondering "so why is this only a problem with 'nobody', and
not, say, 'postfix'? Can I get that filtering to exclude 'nobody' as well?" I
pretty quickly found first_valid_uid and its friend last_valid_uid, which
worked.

Ubuntu seems to start UIDs at 1000, so I increased first_valid_uid accordingly.
last_valid_uid is pretty flexible ("alex" is the only user I care much
about[1], so really anything above 1000 and below 65534 would be fine), so I
picked 2000 to give plenty of room for additional users.

(As an additional note: it appears that once the replication engine learns
about a user, it may continue to store replication state for that user, even if
the user is removed from the userdb, and even across reboots, which makes it a
little hard to diagnose whether a user is being successfully excluded. It's
possible one of my other fixes did work, since I didn't discover this failure
mode until late. However, removing the user from the userdb, then manually
removing the user from replication, and finally rebooting, seems to keep it
gone.  In any case, the first/last UID technique seems better than the other
three I listed, at least for "nobody", so I'm not trying the other ones again.)

[1] There's a couple other users that it's marginally useful to replicate too

4 years agoBump memory limits to help with large folders
Alex Dehnert [Sun, 2 Feb 2020 00:39:24 +0000 (19:39 -0500)]
Bump memory limits to help with large folders

4 years agoDovecot updates for Bionic (18.04)
Alex Dehnert [Mon, 6 May 2019 05:34:43 +0000 (01:34 -0400)]
Dovecot updates for Bionic (18.04)

5 years agoRevert "Temporarily adding ucf-dist files"
Alex Dehnert [Sun, 5 May 2019 08:43:40 +0000 (04:43 -0400)]
Revert "Temporarily adding ucf-dist files"

This reverts commit 146dd93649e655f1bad2fd48c094bef60bf4e7bd.

5 years agoTemporarily adding ucf-dist files
Alex Dehnert [Sun, 5 May 2019 08:43:28 +0000 (04:43 -0400)]
Temporarily adding ucf-dist files

5 years agoUpdated dovecot config for Xenial
Alex Dehnert [Sun, 5 May 2019 08:42:49 +0000 (04:42 -0400)]
Updated dovecot config for Xenial

5 years agoRemove hostname from cert filename
Alex Dehnert [Sun, 10 Mar 2019 02:38:49 +0000 (02:38 +0000)]
Remove hostname from cert filename

We tentatively want matching filenames across VMs, which means removing the hostname.

5 years agoIgnore cert files
Alex Dehnert [Fri, 15 Mar 2019 17:14:52 +0000 (13:14 -0400)]
Ignore cert files

5 years agoSet up replication
Alex Dehnert [Fri, 15 Mar 2019 17:14:26 +0000 (13:14 -0400)]
Set up replication

7 years agoOops, apparently we didn't need that symlink
Alex Dehnert [Sun, 7 Aug 2016 04:15:50 +0000 (00:15 -0400)]
Oops, apparently we didn't need that symlink

7 years agoClean up git status info
Alex Dehnert [Sun, 7 Aug 2016 04:14:57 +0000 (00:14 -0400)]
Clean up git status info

- Ignore our keytab
- Add the symlink for the public cert

7 years agoConfig updates with new dovecot version (I assume, anyway)
Alex Dehnert [Sun, 7 Aug 2016 04:01:43 +0000 (00:01 -0400)]
Config updates with new dovecot version (I assume, anyway)

7 years agoAllow / in dovecot usernames
Alex Dehnert [Sun, 7 Aug 2016 04:01:06 +0000 (00:01 -0400)]
Allow / in dovecot usernames

I think this was to allow kerberos principals to auth against dovecot.

9 years agoBump max connections
Alex Dehnert [Thu, 4 Dec 2014 16:16:03 +0000 (11:16 -0500)]
Bump max connections

It sounds like maybe K-9 mail has an issue where it'll open lots of
connections, which was leaving Thunderbird spewing a lot of "couldn't
authenticate" errors. Hopefully this'll fix that.

11 years agoChange keytab names to reflect smtp/ principal
Alex Dehnert [Thu, 28 Mar 2013 03:50:42 +0000 (23:50 -0400)]
Change keytab names to reflect smtp/ principal

In order to get kerberized SMTP by Postfix backending onto Dovecot's SASL
implementation, Dovecot needs to have access to an smtp/olinda.dehnerts.com key
(as well as an imap/olinda.dehnerts.com key for the IMAP). Sticking
smtp/olinda.dehnerts.com in a file named imap.keytab seemed silly, so I renamed
that file to olinda.keytab and added the smtp/ key. Getting and using the new
principal (and reconfiguring the MUA's like Thunderbird) turns out to be the
only config change required.

11 years agoIgnore the keytab
Alex Dehnert [Thu, 28 Mar 2013 03:36:24 +0000 (23:36 -0400)]
Ignore the keytab

We, uh, don't want to commit that...

11 years agoAdd README (from upstream, I think)
Alex Dehnert [Thu, 28 Mar 2013 03:35:59 +0000 (23:35 -0400)]
Add README (from upstream, I think)

11 years agoEnable "login" auth for WP7
Alex Dehnert [Wed, 31 Oct 2012 10:24:00 +0000 (06:24 -0400)]
Enable "login" auth for WP7

Judging by http://forums.gentoo.org/viewtopic-t-898610-start-0.html, apparently
Windows Phone 7 requires that "login" auth be enabled to send messages via a
Postfix server (that's authenticating using Dovecot). I have no idea how I was
supposed to figure that one out...

11 years agoEnable GSSAPI/Kerberized IMAP
Alex Dehnert [Wed, 31 Oct 2012 10:23:19 +0000 (06:23 -0400)]
Enable GSSAPI/Kerberized IMAP

Whoo Kerberos. Whoo DEHNERTS.COM. (Actual change dates from a couple months
ago.)

11 years agoIgnore extra-users.passwd
Alex Dehnert [Sat, 15 Sep 2012 08:33:23 +0000 (04:33 -0400)]
Ignore extra-users.passwd

11 years ago(Re-)Add dovecot-sieve
Alex Dehnert [Mon, 27 Aug 2012 05:15:35 +0000 (01:15 -0400)]
(Re-)Add dovecot-sieve

11 years agoMerge branch 'upstream' (Lucid->Precise transition)
Alex Dehnert [Mon, 27 Aug 2012 03:58:19 +0000 (23:58 -0400)]
Merge branch 'upstream' (Lucid->Precise transition)

11 years agoUpstream configuration (as of 1:2.0.19-0ubuntu1)
Alex Dehnert [Mon, 27 Aug 2012 03:55:33 +0000 (23:55 -0400)]
Upstream configuration (as of 1:2.0.19-0ubuntu1)

13 years agoChange the cert path
Alex Dehnert [Mon, 7 Mar 2011 05:15:30 +0000 (00:15 -0500)]
Change the cert path

13 years agoAdd extra password file
Alex Dehnert [Mon, 7 Mar 2011 05:15:13 +0000 (00:15 -0500)]
Add extra password file

This allows, e.g., Quickbooks to send ET treasury email.

13 years agoDovecot config
Alex Dehnert [Fri, 21 Jan 2011 10:59:36 +0000 (05:59 -0500)]
Dovecot config