docker-mailserver: [BUG] fresh bare-domain installation, not able to auth - dovecot
Miscellaneous first checks
- I checked that all ports are open and not blocked by my ISP / hosting provider.
- I know that SSL errors are likely the result of a wrong setup on the user side and not caused by DMS itself. I’m confident my setup is correct.
Affected Component(s)
dovecot
What happened and when does this occur?
fresh setup (bare/naked-domain-setup)
configured external certs for my base-domain -> mydomain.org (looks like that is not a issue here)
create a user
try to login with thunderbird
password-check timeout (login not successful)
see the logs
What did you expect to happen?
login successful
How do we replicate the issue?
for bare-domain, i configured 2 things beside default:
- in `docker-compose.yml` # before `domainname:` and set `hostname: mydomain.org`
- create `config/postfix-main.cf` and add `mydestination = localhost.$mydomain, localhost`
1. fresh setup (bare/naked-domain-setup)
2. create a user (username `test` password `password`
3. try to login with thunderbird
DMS version
11.0.0
What operating system is DMS running on?
Linux
What instruction set architecture is DMS running on?
x86_64 / AMD64
What container orchestration tool are you using?
Docker Compose
docker-compose.yml
services:
mailserver:
image: docker.io/mailserver/docker-mailserver:latest
container_name: mailserver
hostname: mydomain.org
env_file: mailserver.env # there is SSL_TYPE, SSL_CERT_PATH and SSL_KEY_PATH defined, beside defaults
ports:
- "25:25" # SMTP (explicit TLS => STARTTLS)
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
- "465:465" # ESMTP (implicit TLS)
- "587:587" # ESMTP (explicit TLS => STARTTLS)
- "993:993" # IMAP4 (implicit TLS)
volumes:
- /mountpointInLocalSystem/mail-data/:/var/mail/
- /mountpointInLocalSystem/mail-state/:/var/mail-state/
- /mountpointInLocalSystem/mail-logs/:/var/log/mail/
- /mountpointInLocalSystem/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
- /mountpointInLocalSystem/ssl/:/tmp/dms/custom-certs/:ro
restart: always
stop_grace_period: 1m
cap_add:
- NET_ADMIN
healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
timeout: 3s
retries: 0
Relevant log output
[ INF ] Welcome to docker-mailserver 11.0.0
[ INF ] Initializing setup
[ INF ] Checking configuration
[ INF ] Configuring mail server
grep: /tmp/docker-mailserver/postfix-accounts.cf: No such file or directory
[ WARNING ] You need at least one email account to start Dovecot (120s left for account creation before shutdown)
grep: /tmp/docker-mailserver/postfix-accounts.cf: No such file or directory
[ WARNING ] You need at least one email account to start Dovecot (110s left for account creation before shutdown)
grep: /tmp/docker-mailserver/postfix-accounts.cf: No such file or directory
[ WARNING ] You need at least one email account to start Dovecot (100s left for account creation before shutdown)
[ WARNING ] No DKIM key(s) provided - check the documentation on how to get your keys
[ INF ] Post-configuration checks
[ INF ] Starting miscellaneous tasks
[ INF ] Starting daemons
[ INF ] mydomain.org is up and running
Jul 7 22:41:28 mydomain postfix/postdrop[535]: warning: unable to look up public/pickup: No such file or directory
Jul 7 22:41:28 mydomain amavis[527]: starting. /usr/sbin/amavisd-new at mydomain.org amavisd-new-2.11.1 (20181009), Unicode aware, LC_CTYPE="C.UTF-8"
Jul 7 22:41:28 mydomain amavis[527]: perl=5.032001, user=, EUID: 112 (112); group=, EGID: 114 114 (114 114)
Jul 7 22:41:28 mydomain amavis[527]: Net::Server: Group Not Defined. Defaulting to EGID '114 114'
Jul 7 22:41:28 mydomain amavis[527]: Net::Server: User Not Defined. Defaulting to EUID '112'
Jul 7 22:41:28 mydomain amavis[527]: No ext program for .zoo, tried: zoo
Jul 7 22:41:28 mydomain amavis[527]: No ext program for .doc, tried: ripole
Jul 7 22:41:28 mydomain amavis[527]: No decoder for .F
Jul 7 22:41:28 mydomain amavis[527]: No decoder for .doc
Jul 7 22:41:28 mydomain amavis[527]: No decoder for .zoo
Jul 7 22:41:31 mydomain postfix/master[1707]: daemon started -- version 3.5.6, configuration /etc/postfix
Jul 7 22:41:31 mydomain postfix/pickup[1712]: <mydockerlocalhostname>: uid=0 from=<root>
Jul 7 22:41:31 mydomain postfix/cleanup[1718]: warning: connect to Milter service inet:localhost:8891: Cannot assign requested address
Jul 7 22:41:31 mydomain postfix/cleanup[1718]: <mydockerlocalhostname>: message-id=<20220707204131.<mydockerlocalhostname>@mydomain.org>
Jul 7 22:41:31 mydomain postfix/qmgr[1713]: <mydockerlocalhostname>: from=<root@mydomain.org>, size=711, nrcpt=1 (queue active)
Jul 7 22:41:31 mydomain postfix/local[1732]: warning: required alias not found: postmaster
Jul 7 22:41:31 mydomain postfix/local[1732]: <mydockerlocalhostname>: to=<postmaster@mydomain.org>, relay=local, delay=2.9, delays=2.9/0.01/0/0, dsn=2.0.0, status=sent (discarded)
Jul 7 22:41:31 mydomain postfix/qmgr[1713]: <mydockerlocalhostname>: removed
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1856]: connect from <mythunderbirdsystem>[83.83.83.83]
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1856]: warning: connect to Milter service inet:localhost:8891: Cannot assign requested address
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1863]: connect from <mythunderbirdsystem>[83.83.83.83]
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1863]: warning: connect to Milter service inet:localhost:8891: Cannot assign requested address
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1866]: connect from <mythunderbirdsystem>[83.83.83.83]
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1866]: warning: connect to Milter service inet:localhost:8891: Cannot assign requested address
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1867]: connect from <mythunderbirdsystem>[83.83.83.83]
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1867]: warning: connect to Milter service inet:localhost:8891: Cannot assign requested address
Jul 7 22:42:06 mydomain dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=83.83.83.83, lip=172.26.0.2, session=<mlVrHj3j8/5d3oET>
Jul 7 22:42:06 mydomain dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=83.83.83.83, lip=172.26.0.2, session=<mlVrHj3j7v5d3oET>
Jul 7 22:42:06 mydomain dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=83.83.83.83, lip=172.26.0.2, session=<Y1ZrHj3j8f5d3oET>
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1856]: improper command pipelining after EHLO from <mythunderbirdsystem>[83.83.83.83]: QUIT\r\n
Jul 7 22:42:06 mydomain dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=83.83.83.83, lip=172.26.0.2, session=<R1hrHj3j7P5d3oET>
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1856]: disconnect from <mythunderbirdsystem>[83.83.83.83] ehlo=1 quit=1 commands=2
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1863]: disconnect from <mythunderbirdsystem>[83.83.83.83] ehlo=1 quit=1 commands=2
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1866]: improper command pipelining after EHLO from <mythunderbirdsystem>[83.83.83.83]: QUIT\r\n
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1866]: disconnect from <mythunderbirdsystem>[83.83.83.83] ehlo=1 quit=1 commands=2
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1867]: improper command pipelining after EHLO from <mythunderbirdsystem>[83.83.83.83]: QUIT\r\n
Jul 7 22:42:06 mydomain postfix/submission/smtpd[1867]: disconnect from <mythunderbirdsystem>[83.83.83.83] ehlo=1 quit=1 commands=2
Jul 7 22:42:20 mydomain postfix/submission/smtpd[1856]: connect from <mythunderbirdsystem>[83.83.83.83]
Jul 7 22:42:20 mydomain postfix/submission/smtpd[1856]: warning: connect to Milter service inet:localhost:8891: Cannot assign requested address
Jul 7 22:42:20 mydomain postfix/submission/smtpd[1856]: disconnect from <mythunderbirdsystem>[83.83.83.83] ehlo=1 quit=1 commands=2
Jul 7 22:42:20 mydomain dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=83.83.83.83, lip=172.26.0.2, session=<Y7hAHz3jFf9d3oET>
Jul 7 22:42:23 mydomain dovecot: auth: passwd-file(testuser,83.83.83.83,<1jtpHz3jF/9d3oET>): unknown user (SHA1 of given password: <testsha>)
Jul 7 22:42:29 mydomain dovecot: auth: passwd-file(testuser,83.83.83.83,<1jtpHz3jF/9d3oET>): unknown user (SHA1 of given password: <testsha>)
Jul 7 22:42:35 mydomain dovecot: auth: passwd-file(testuser,83.83.83.83,<1jtpHz3jF/9d3oET>): unknown user (SHA1 of given password: <testsha>)
Jul 7 22:42:37 mydomain dovecot: imap-login: Disconnected (auth failed, 3 attempts in 14 secs): user=<testuser>, method=PLAIN, rip=83.83.83.83, lip=172.26.0.2, TLS, session=<1jtpHz3jF/9d3oET>
Jul 7 22:43:11 mydomain postfix/master[1707]: terminating on signal 15
Jul 7 22:43:11 mydomain dovecot: master: Warning: Killed with signal 15 (by pid=7 uid=0 code=kill)
Jul 7 22:43:12 mydomain dovecot: master: Dovecot v2.3.13 (89f716dc2) starting up for imap, lmtp
Jul 7 22:43:13 mydomain postfix/master[3813]: daemon started -- version 3.5.6, configuration
### Other relevant information
_No response_
### What level of experience do you have with Docker and mail servers?
- [X] I am inexperienced with docker
- [X] I am inexperienced with mail servers
- [ ] I am uncomfortable with the CLI
### Code of conduct
- [X] I have read this project's [Code of Conduct](https://github.com/docker-mailserver/docker-mailserver/blob/master/CODE_OF_CONDUCT.md) and I agree
- [X] I have read the [README](https://github.com/docker-mailserver/docker-mailserver/blob/master/README.md) and the [documentation](https://docker-mailserver.github.io/docker-mailserver/edge/) and I searched the [issue tracker](https://github.com/docker-mailserver/docker-mailserver/issues?q=is%3Aissue) but could not find a solution
### Improvements to this form?
_No response_
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (16 by maintainers)
Got it, in the end i found the solution:
/etc/dovecot/userdb
--> username in DB =test@example.com
while as you can see in the screenshot thunderbird tries to login with user =test
…Added
@example.com
and everything is working now … Thanks to all for your help and I’ll go and make some MR for updating the docs 😃