Miscellaneous first checks
Affected Component(s)
Unable to receive mail
What happened and when does this occur?
Apr 13 02:06:51 email postfix/trivial-rewrite[1450]: warning: do not list domain email.example.com in BOTH mydestination and virtual_mailbox_domains
mailserver | Apr 13 02:06:51 email policyd-spf[1452]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=101.91.43.51; helo=xmbg7.mail.qq.com; envelope-from=[email protected]; receiver=<UNKNOWN>
mailserver | Apr 13 02:06:51 email postfix/smtpd[1445]: NOQUEUE: reject: RCPT from xmbg7.mail.qq.com[101.91.43.51]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<xmbg7.mail.qq.com>
What did you expect to happen?
How do we replicate the issue?
1.docker-compose up
2.send mail to docker-mailserver
3.
...
DMS version
latest
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
# If the FQDN for your mail-server is only two labels (eg: example.com),
# you can assign this entirely to `hostname` and remove `domainname`.
hostname: email.example.com
env_file: mailserver.env
# More information about the mail-server ports:
# https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
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:
- ./docker-data/dms/mail-data/:/var/mail/
- ./docker-data/dms/mail-state/:/var/mail-state/
- ./docker-data/dms/mail-logs/:/var/log/mail/
- ./docker-data/dms/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
- /etc/letsencrypt:/etc/letsencrypt
environment:
- ENABLE_FAIL2BAN=1
- SSL_TYPE=letsencrypt
- PERMIT_DOCKER=network
- ONE_DIR=1
- ENABLE_POSTGREY=0
- ENABLE_CLAMAV=0
- ENABLE_SPAMASSASSIN=0
- SPOOF_PROTECTION=0
- OVERRIDE_HOSTNAME=
restart: always
stop_grace_period: 1m
cap_add:
- NET_ADMIN
- SYS_PTRACE
Relevant log output
Apr 13 02:06:51 email postfix/trivial-rewrite[1450]: warning: do not list domain email.example.com in BOTH mydestination and virtual_mailbox_domains
mailserver | Apr 13 02:06:51 email policyd-spf[1452]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=101.91.43.51; helo=xmbg7.mail.qq.com; [email protected]; receiver=<UNKNOWN>
mailserver | Apr 13 02:06:51 email postfix/smtpd[1445]: NOQUEUE: reject: RCPT from xmbg7.mail.qq.com[101.91.43.51]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<xmbg7.mail.qq.com>
Other relevant information
I can send emails normally, but I can't receive emails, then I checked the issues and documentation and still can't solve the problem.
In the FAQ:
Can I use naked/bare domains (no host name)?
I tried it but it didn't work.
The DNS resolution I am using is:
Type:A NAME:email Value:1.2.3.4
Type:MX NAME:email Value:email.example.com.
The email user I created is [email protected], how can I use the second-level domain name as the email suffix?
### What level of experience do you have with Docker and mail servers?
- [ ] 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_
Miscellaneous first checks
Affected Component(s)
Unable to receive mail
What happened and when does this occur?
What did you expect to happen?
How do we replicate the issue?
DMS version
latest
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
Relevant log output
Other relevant information
I tried it but it didn't work.
The DNS resolution I am using is:
Type:A NAME:email Value:1.2.3.4
Type:MX NAME:email Value:email.example.com.
The email user I created is [email protected], how can I use the second-level domain name as the email suffix?