Hi there,
Was re-setting up my web server and decided to give Virtualmin --minimal a go. Using DigitalOcean VPS and Ubuntu 16.04 on a LEMP installation.
Everything works fine and I am very satisfied with the setup. I am configuring an SSL-enabled website with LetsEncrypt and have setup Dovecot and Postfix to use the LE generated cert. Webmail works fine with Usermin, but SMTP and IMAP refuses to work properly no matter what I do. I noted that saslauthd wasn’t installed, so I went to apt install sasl2-bin. Still, I am getting the following errors in my log:
Sep 25 13:47:54 buyfromwhere dovecot: imap-login: Login: user=<buyfromwhere>, method=PLAIN, rip=2406:3003:2064:4d3:e497:4468:fc82:5ff5, lip=2400:6180:0:d0::21:1, mpid=28129, TLS, session=<4GI5zgNaOcokBjADIGQE0+SXRGj8gl/1> Sep 25 13:47:55 buyfromwhere dovecot: imap(buyfromwhere): Logged out in=8 out=395 Sep 25 13:47:59 buyfromwhere dovecot: imap-login: Login: user=<buyfromwhere>, method=PLAIN, rip=2406:3003:2064:4d3:e497:4468:fc82:5ff5, lip=2400:6180:0:d0::21:1, mpid=28131, TLS, session=<bPCCzgNaO8okBjADIGQE0+SXRGj8gl/1> Sep 25 13:47:59 buyfromwhere dovecot: imap(buyfromwhere): Error: open(/var/mail/buyfromwhere) failed: Permission denied (euid=1000(buyfromwhere) egid=1000(buyfromwhere) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0$ Sep 25 13:47:59 buyfromwhere dovecot: imap(buyfromwhere): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-09-25 13:47:59] Sep 25 13:48:12 buyfromwhere postfix/smtpd[28127]: connect from unknown[2406:3003:2064:4d3:e497:4468:fc82:5ff5] Sep 25 13:48:15 buyfromwhere postfix/smtpd[28127]: warning: SASL authentication failure: Password verification failed Sep 25 13:48:15 buyfromwhere postfix/smtpd[28127]: warning: unknown[2406:3003:2064:4d3:e497:4468:fc82:5ff5]: SASL PLAIN authentication failed: authentication failure Sep 25 13:48:16 buyfromwhere postfix/smtpd[28127]: warning: unknown[2406:3003:2064:4d3:e497:4468:fc82:5ff5]: SASL LOGIN authentication failed: authentication failure
I have triple-checked my username and password credentials and they are correct. But somehow, something is preventing me from logging in when I use Thunderbird or my Android email client. I tried re-imaging another copy of Ubuntu 16.04 with the same issue.
However, if I re-image and run a full Virtualmin installation without --minimal, everything works fine… It seems as though the --minimal install is not setting some things up properly?
Any help would be greatly appreciated.