sysconfig/dovecot.git
19 months agoHost-independent kerberos keytab
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.

19 months agoRe-add some configs we need with dovecot-vmail
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

19 months agoDisable replication for now
Alex Dehnert [Mon, 17 Jul 2023 12:54:01 +0000 (12:54 +0000)]
Disable replication for now

19 months agoMerge remote-tracking branch 'origin/master' into chankillo
Alex Dehnert [Mon, 17 Jul 2023 12:53:46 +0000 (12:53 +0000)]
Merge remote-tracking branch 'origin/master' into chankillo

19 months agosieve: Use more convenient path and autocreate mailboxes rpi
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.

21 months agoIgnore secrets dir
Alex Dehnert [Thu, 25 May 2023 07:02:32 +0000 (07:02 +0000)]
Ignore secrets dir

2 years 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

4 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 agoIgnore ucf-dist files, rather than deleting them all
Alex Dehnert [Thu, 28 May 2020 20:35:47 +0000 (20:35 +0000)]
Ignore ucf-dist files, rather than deleting them all

4 years agoFix and comment the LMTP config better
Alex Dehnert [Thu, 28 May 2020 20:35:22 +0000 (20:35 +0000)]
Fix and comment the LMTP config better

4 years agoSet up LMTP so Postfix can deliver locally too
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.

4 years agoOld tweaks to Dovecot config to put mail in the right place
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

5 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

5 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

5 years agoUse a single user for accounts on replica server
Alex Dehnert [Mon, 11 Mar 2019 07:49:38 +0000 (07:49 +0000)]
Use a single user for accounts on replica server

5 years agoMore upstream changes
Alex Dehnert [Mon, 11 Mar 2019 07:49:18 +0000 (07:49 +0000)]
More upstream changes

5 years agoMore Raspbian config changes
Alex Dehnert [Mon, 11 Mar 2019 07:36:28 +0000 (07:36 +0000)]
More Raspbian config changes

5 years agoIgnore cert files
Alex Dehnert [Sun, 10 Mar 2019 04:44:50 +0000 (04:44 +0000)]
Ignore cert files

5 years agoNew dovecot config from Raspbian
Alex Dehnert [Sun, 10 Mar 2019 04:42:16 +0000 (04:42 +0000)]
New dovecot config from Raspbian

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.

8 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

8 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

8 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)

8 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.

10 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)

12 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...

12 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.)

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

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

12 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)

12 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.

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