[11:55] <blackflow> Mmmmmh. iron-clad, locked down, systemd-cgroup-containerized, apparmored, unprivileged (no root master) nginx server running on Bionic.     Tastes like a million dollars. With a side dish of occasional CVE corrosion in that iron, but eh...
[11:56] <blackflow> Ooh! Ooh! Running atop of LUKS encrypted ZFS root.
[13:55] <taylan> can someone help me troubleshoot my mail server?  I tried to configure postfix and courier with ldap, but thunderbird can't connect to a user I defined in ldap...  no idea what debugging tools are available to pinpoint the problem.  they are listening on 465 and 993 on all interfaces and I can open a TCP connection to these ports from the computer with thunderbird on it.
[13:56] <compdoc> thunderbird supports ldap? i had no idea
[14:02] <taylan> compdoc: no, postfix and courier do
[14:04] <taylan> my problem description was crap.  in thunderbird, I'm trying to add an ccount.  I entered the smtp and imap hostnames, selected ssl/tls for both, but when I click on "Re-test" it says "Thunderbird failed to find the settings for your mail account"
[14:05] <compdoc> seems like an odd error. like its trying to autoconfigure instead of accepting your settings
[14:05] <taylan> by the way, the reason I'm trying to set up courier is that "apt-get install dovecot" fails.  the install scripts seem not to add some users and groups they should be adding...  anyone know this problem?
[14:05] <taylan> I'm on LTS
[14:07] <compdoc> anyway, Im no expert on ldap, and its early yet. hang out and ask again. maybe someone will know. mught also ask in  ##networking
[14:07] <taylan> oh, when I manually select some auth options in thunderbird, the error message becomes "username or password invalid".  I guess that's a step forward
[14:07] <taylan> ok thanks :)
[14:10] <blackflow> taylan: begin with postfix and dovecot errors, they must've logged what went wrong
[14:10] <blackflow> ohwait... courier....
[14:11] <taylan> blackflow: see above: I couldn't install dovecot :(
[14:11] <blackflow> taylan: ok one problem at a time. dovecot installed just fine here on bionic. dovecot-imapd thatis
[14:12] <taylan> it first erred out because the "dovecot" group didn't exist.  I added it manually.  then it said the user "dovenull" doesn't exist, and I didn't want to continue trying to fix things manually...
[14:12] <blackflow> which package though? dovecot per se doesn't exist, you must be explicit about which compoentn you install
[14:13] <taylan> I think it was the core package that caused the errors already.  let me retry.
[14:13] <blackflow> bionic or xenial? because it just installed fine on bionic
[14:14] <taylan> silly question but what's the quickest way to find out?  I think I'm on 16.04, whatever codename that has.
[14:14] <jelly> lsb_release -sc
[14:14] <taylan> thanks.  xenial it is.
[14:18] <blackflow> doesn't seem like anything like this has been reported for dovecot as bug. I wonder if there's a permission problem preventing install scripts from creating the group and the user
[14:19] <blackflow> at any rate, dovecot is strongly recommended for postfix, especially for sasl.
[14:20] <taylan> I just found this: https://www.mail-archive.com/ubuntu-server-bugs@lists.ubuntu.com/msg147608.html
[14:22] <taylan> sadly the mails by the original reporter don't seem to be in the archive.  the subsequent reply indicates that they were able to solve the problem somehow
[14:23] <blackflow> status: Invalid, no wonder it didn't show for me in search
[14:23] <blackflow> bug #1785584
[14:24] <taylan> ah neat, that has the full contents
[14:26] <taylan> hmm, it's not the same issue though.  my /etc/group and /etc/passwd are clean.
[14:35] <taylan> oh damn, found the problem, and it's crazy
[14:35] <blackflow> taylan: what is it?
[14:36] <taylan> I have a ~/bin/adduser and ~/bin in my PATH.  it does something completely different than /usr/sbin/adduser
[14:37] <taylan> hmm, one could say 'apt-get' shouldn't be affected by that...  anyway, I'll rename it.
[14:44] <blackflow> taylan: it reminds me of the Dwarf Fortress game causing havoc in Debian, because its binary is `df` and was in PATH before /bin/df
[14:44] <taylan> hahaha
[14:45] <blackflow> so now that you got to the root of it, pun intended, install dovecot. dovecot > courier, especially for sasl. then check the logs, enable auth verbosity for dovecot.
[14:49] <taylan> yeah, installed it already.  checking out how to configure it for ldap