I'm trying to create a new user (that can access email) with useradd. My command is
useradd --shell /bin/bash --create-home --password <password> <username>
However, I cannot login to email. When I use adduser
to create an account, I can login to the mail just fine.
I am creating a home directory because my dovecot.conf
has mail_location = mbox:~/mail:INBOX=/var/mail/%u
my mail.err
file just has this repeated
Feb 21 15:52:46 server dovecot: auth-worker(3609): Error: pam(test,<myip>):
pam_authenticate() failed: Authentication failure
How can I connect to the email (imap) with useradd? (or at least with one line)