I could be doing something wrong, but I donât see how to make the short name, I am selecting the virtual server I created and when I click âadd email userâ (or any other user as far as I can tell) Virtualmin adds the domain on its own (and username@my.domain is what lands in both users and shadow files).
But I donât think short names would work in general, as of now I have one virtual server, but I want to host 4 domains and assign emails to them separately, so some mechanism of differentiating between feedback@firstdomain and feedback@seconddomain will be necessary
parts of the log that I think are important:
when I try to fetch mails using my email client:
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/lib20_auth_var_expand_crypt.so
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth: Debug: Read auth token secret from /run/dovecot/auth-token-secret.dat
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth: Debug: auth client connected (pid=744554)
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: pop3-login: Debug: SSL: where=0x10, ret=1: before SSL initialization
(âŠjust some SSL messagesâŠ)
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: pop3-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth: Debug: client in: AUTH 1 PLAIN service=pop3 secured=tls session=1EbSvpRDix9Q7mQn lip=167.114.115.4 rip=my.ip.xxx.xxx lport=995 rport=8075 local_name=mail.my.domain resp=>
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth: Debug: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): Performing passdb lookup
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: Module loaded: /usr/lib/dovecot/modules/auth/lib20_auth_var_expand_crypt.so
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): Server accepted connection (fd=13)
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): Sending version handshake
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<1>: Handling PASSV request
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<1>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): Performing passdb lookup
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<1>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): lookup service=dovecot
Nov 14 21:33:15 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<1>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): #1/1 style=1 msg=Password:
Nov 14 21:33:15 vps.domain.name.ext auth[744559]: pam_unix(dovecot:auth): check pass; user unknown
Nov 14 21:33:15 vps.domain.name.ext auth[744559]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=username rhost=my.ip.xxx.xxx
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth-worker(744559): conn unix:auth-worker (pid=744555,uid=109): auth-worker<1>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): pam_authenticate() failed: Authentication failure (Password mismatch?) (given password: mypassword)
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth: Debug: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): Finished passdb lookup
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth: Debug: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): Performing passdb lookup
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<1>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): Finished passdb lookup
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<1>: Finished: password_mismatch
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<2>: Handling PASSV request
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<2>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): Performing passdb lookup
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<2>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): lookup service=dovecot
Nov 14 21:33:18 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<2>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): #1/1 style=1 msg=Password:
Nov 14 21:33:18 vps.domain.name.ext auth[744559]: pam_unix(dovecot:auth): check pass; user unknown
Nov 14 21:33:18 vps.domain.name.ext auth[744559]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=username rhost=my.ip.xxx.xxx
Nov 14 21:33:19 vps.domain.name.ext dovecot[604424]: auth-worker(744559): conn unix:auth-worker (pid=744555,uid=109): auth-worker<2>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): pam_authenticate() failed: Authentication failure (Password mismatch?) (given password: mypassword)
Nov 14 21:33:19 vps.domain.name.ext dovecot[604424]: auth-worker(744559): Debug: conn unix:auth-worker (pid=744555,uid=109): auth-worker<2>: pam(username,my.ip.xxx.xxx,<1EbSvpRDix9Q7mQn>): Finished passdb lookup
testing if dovecot accepts me as a user:
sudo doveadm auth test username@my.domain mypassword
passdb: username@my.domain auth succeeded
extra fields:
user=username@my.domain
and the log reads
Nov 14 21:38:45 vps.domain.name.ext proftpd[746347]: pam_listfile(proftpd:auth): Refused user root for service proftpd
Nov 14 21:38:45 vps.domain.name.ext proftpd[746347]: pam_unix(proftpd:auth): authentication failure; logname= uid=0 euid=0 tty=/dev/ftpd746347 ruser=root rhost=120.26.239.198 user=root
Nov 14 21:38:45 vps.domain.name.ext sudo[746389]: debian : TTY=pts/0 ; PWD=/home/debian ; USER=root ; COMMAND=/usr/bin/doveadm auth test username@my.domain mypassword
Nov 14 21:38:45 vps.domain.name.ext sudo[746389]: pam_unix(sudo:session): session opened for user root(uid=0) by debian(uid=1000)
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth: Debug: auth client connected (pid=0)
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth: Debug: client in: AUTH 1 PLAIN service=doveadm debug resp=Ym9yZWtAcmVmcmFjdG9tZXRlci5wbABib3Jla0ByZWZyYWN0b21ldGVyLnBsAHB0ZXJvY3luZG9z (previous base64 data may contain sensitive data)
NNov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth: Debug: pam(username@my.domain): Performing passdb lookup
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: Module loaded: /usr/lib/dovecot/modules/auth/lib20_auth_var_expand_crypt.so
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): Server accepted connection (fd=13)
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): Sending version handshake
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): auth-worker<1>: Handling PASSV request
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): auth-worker<1>: pam(username@my.domain): Performing passdb lookup
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): auth-worker<1>: pam(username@my.domain): lookup service=dovecot
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): auth-worker<1>: pam(username@my.domain): #1/1 style=1 msg=Password:
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): auth-worker<1>: pam(username@my.domain): Finished passdb lookup
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth: Debug: pam(username@my.domain): Finished passdb lookup
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth: Debug: auth(username@my.domain): Auth request finished
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth: Debug: client passdb out: OK 1 user=username@my.domain
Nov 14 21:38:45 vps.domain.name.ext dovecot[604424]: auth-worker(746392): Debug: conn unix:auth-worker (pid=746374,uid=109): auth-worker<1>: Finished
Nov 14 21:38:45 vps.domain.name.ext sudo[746389]: pam_unix(sudo:session): session closed for user root