summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Alex Dehnert [Sat, 5 Aug 2023 20:22:48 +0000 (20:22 +0000)]
Better disable replication
Alex Dehnert [Fri, 21 Jul 2023 06:35:02 +0000 (06:35 +0000)]
Host-independent kerberos keytab
Also of note: default_realm needs to be set to DEHNERTS.COM in krb5.conf, and
we may also need to map hostnames to realms.
Alex Dehnert [Tue, 18 Jul 2023 04:25:15 +0000 (04:25 +0000)]
Re-add some configs we need with dovecot-vmail
- Specify default UID/GID
- Allow delivery to users as low as 500
Alex Dehnert [Mon, 17 Jul 2023 12:54:01 +0000 (12:54 +0000)]
Disable replication for now
Alex Dehnert [Mon, 17 Jul 2023 12:53:46 +0000 (12:53 +0000)]
Merge remote-tracking branch 'origin/master' into chankillo
Alex Dehnert [Mon, 17 Jul 2023 04:12:27 +0000 (04:12 +0000)]
sieve: Use more convenient path and autocreate mailboxes
Apparently Mailbox autocreate used to be on by default, and at least testing
now it seems useful to leave it on.
Alex Dehnert [Thu, 25 May 2023 07:02:32 +0000 (07:02 +0000)]
Ignore secrets dir
Alex Dehnert [Sun, 10 Jul 2022 17:54:47 +0000 (13:54 -0400)]
Add POP3 support for GMail syncing
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
Alex Dehnert [Thu, 28 May 2020 20:35:47 +0000 (20:35 +0000)]
Ignore ucf-dist files, rather than deleting them all
Alex Dehnert [Thu, 28 May 2020 20:35:22 +0000 (20:35 +0000)]
Fix and comment the LMTP config better
Alex Dehnert [Fri, 27 Mar 2020 06:23:51 +0000 (06:23 +0000)]
Set up LMTP so Postfix can deliver locally too
Previously mail was just getting replicated here, but if we want this to
be a viable backup MX, we should support receiving mail, which means
Postfix integration. Apparently LMTP is better than LDA, so use it.
Alex Dehnert [Fri, 27 Mar 2020 06:25:00 +0000 (06:25 +0000)]
Old tweaks to Dovecot config to put mail in the right place
Alex Dehnert [Sun, 2 Feb 2020 00:39:24 +0000 (19:39 -0500)]
Bump memory limits to help with large folders
Alex Dehnert [Mon, 6 May 2019 05:34:43 +0000 (01:34 -0400)]
Dovecot updates for Bionic (18.04)
Alex Dehnert [Sun, 5 May 2019 08:43:40 +0000 (04:43 -0400)]
Revert "Temporarily adding ucf-dist files"
This reverts commit
146dd93649e655f1bad2fd48c094bef60bf4e7bd.
Alex Dehnert [Sun, 5 May 2019 08:43:28 +0000 (04:43 -0400)]
Temporarily adding ucf-dist files
Alex Dehnert [Sun, 5 May 2019 08:42:49 +0000 (04:42 -0400)]
Updated dovecot config for Xenial
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.
Alex Dehnert [Fri, 15 Mar 2019 17:14:52 +0000 (13:14 -0400)]
Ignore cert files
Alex Dehnert [Fri, 15 Mar 2019 17:14:26 +0000 (13:14 -0400)]
Set up replication
Alex Dehnert [Mon, 11 Mar 2019 07:49:38 +0000 (07:49 +0000)]
Use a single user for accounts on replica server
Alex Dehnert [Mon, 11 Mar 2019 07:49:18 +0000 (07:49 +0000)]
More upstream changes
Alex Dehnert [Mon, 11 Mar 2019 07:36:28 +0000 (07:36 +0000)]
More Raspbian config changes
Alex Dehnert [Sun, 10 Mar 2019 04:44:50 +0000 (04:44 +0000)]
Ignore cert files
Alex Dehnert [Sun, 10 Mar 2019 04:42:16 +0000 (04:42 +0000)]
New dovecot config from Raspbian
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.
Alex Dehnert [Sun, 7 Aug 2016 04:15:50 +0000 (00:15 -0400)]
Oops, apparently we didn't need that symlink
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
Alex Dehnert [Sun, 7 Aug 2016 04:01:43 +0000 (00:01 -0400)]
Config updates with new dovecot version (I assume, anyway)
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.
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.
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.
Alex Dehnert [Thu, 28 Mar 2013 03:36:24 +0000 (23:36 -0400)]
Ignore the keytab
We, uh, don't want to commit that...
Alex Dehnert [Thu, 28 Mar 2013 03:35:59 +0000 (23:35 -0400)]
Add README (from upstream, I think)
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...
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.)
Alex Dehnert [Sat, 15 Sep 2012 08:33:23 +0000 (04:33 -0400)]
Ignore extra-users.passwd
Alex Dehnert [Mon, 27 Aug 2012 05:15:35 +0000 (01:15 -0400)]
(Re-)Add dovecot-sieve
Alex Dehnert [Mon, 27 Aug 2012 03:58:19 +0000 (23:58 -0400)]
Merge branch 'upstream' (Lucid->Precise transition)
Alex Dehnert [Mon, 27 Aug 2012 03:55:33 +0000 (23:55 -0400)]
Upstream configuration (as of 1:2.0.19-0ubuntu1)
Alex Dehnert [Mon, 7 Mar 2011 05:15:30 +0000 (00:15 -0500)]
Change the cert path
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.
Alex Dehnert [Fri, 21 Jan 2011 10:59:36 +0000 (05:59 -0500)]
Dovecot config