Quote:
Originally Posted by Biggen
I now Slack doesn't use Pam so I need to use shadow for auth correct? Just not sure what lines to comment out in the config file as it doesn't seem very self explanatory.
|
I'm sure you've read the the
documentation but I urge you to read it couple of times. I actually read it a few times (I didn't have any background experience in running servers) to understand the whole authentication thing.
There are authentication schemes so you need to decide to use plain-text or non-plaintext authentication. Once you decide that, then you can choose a password scheme (like plain, md5-based or sha-based). Finally you can choose the password database and user database.
I'll give you my setup:
I'm using a self-signed SSL certificate for the entire imap traffic so using plain-text authentication works for me. For the actual passwords, I'm using SHA256 scheme and i'm using /etc/dovecot_passwd file as both password database and user database.
Code:
auth default {
mechanisms = plain
}
passdb passwd-file {
args = /etc/dovecot_passwd
}
userdb passwd-file {
args = /etc/dovecot_passwd
}
The advantage of using passwd-file is that you can include a lot of other config items with usernames and passwords. Have a look at the
sample file in the docs.
Hope that helps,