[X] ... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
[X] ... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
[X] ... I have understood that answers are voluntary and community-driven, and not commercial support.
[X] ... I have verified that my issue has not been already answered in the past. I also checked previous issues.
Description
In the documentation for Mailcow Hybrid setup (https://docs.mailcow.email/third_party/exchange_onprem/third_party-exchange_onprem/) is states that you should setup mail relay. But if you enable that ACME will not request certificates for that domain (https://github.com/mailcow/mailcow-dockerized/blob/36b5cccd186090d726de62b6b00d1e842e67aacd/data/Dockerfiles/acme/acme.sh#L226). It should do that because mailboxes are hosted on Mailcow.
Logs:
MariaDB [mailcow]> SELECT domain,backupmx,active FROM domain WHERE backupmx=0 and active=1;
Empty set (0.001 sec)
MariaDB [mailcow]> SELECT domain,backupmx,active FROM domain;
+-----------------+----------+--------+
| domain | backupmx | active |
+-----------------+----------+--------+
| domain1.nl | 1 | 1 |
| domain2.nl. | 1 | 1 |
+-----------------+----------+--------+
2 rows in set (0.001 sec)
---
> docker compose logs acme-mailcow -f
acme-mailcow-1 | Wed Jun 19 10:41:49 CEST 2024 - Initializing, please wait...
acme-mailcow-1 | Wed Jun 19 10:41:50 CEST 2024 - Using existing domain rsa key /var/lib/acme/acme/key.pem
acme-mailcow-1 | Wed Jun 19 10:41:50 CEST 2024 - Using existing Lets Encrypt account key /var/lib/acme/acme/account.pem
acme-mailcow-1 | Wed Jun 19 10:41:51 CEST 2024 - Found A record for mailcow.example.nl: xx.xx.xx.xx
acme-mailcow-1 | (skipping check, returning 0)
acme-mailcow-1 | Wed Jun 19 10:41:51 CEST 2024 - Confirmed A record xx.xx.xx.xx
acme-mailcow-1 | Wed Jun 19 10:41:51 CEST 2024 - Certificate /var/lib/acme/mailcow.example.nl/cert.pem validation done, neither changed nor due for renewal.
acme-mailcow-1 | Wed Jun 19 10:41:51 CEST 2024 - Certificates were successfully validated, no changes or renewals required, sleeping for another day.
Steps to reproduce:
1. Setup mailcow instance
2. Setup Office 365 with https://docs.mailcow.email/third_party/exchange_onprem/third_party-exchange_onprem/
3. Add domains with relay config enabled
4. restart acme-container / run "mysql --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain WHERE backupmx=0 and active=1" -Bs" inside acme container
Contribution guidelines
I've found a bug and checked that ...
Description
Logs:
Steps to reproduce:
Which branch are you using?
master
Which architecture are you using?
x86
Operating System:
Ubuntu 22.04
Server/VM specifications:
2 vCPU, 8GB RAM
Is Apparmor, SELinux or similar active?
no
Virtualization technology:
KVM (Proxmox)
Docker version:
26.1.4, build 5650f9b
docker-compose version or docker compose version:
v2.27.1
mailcow version:
2024-04
Reverse proxy:
No
Logs of git diff:
Logs of iptables -L -vn:
Logs of ip6tables -L -vn:
Logs of iptables -L -vn -t nat:
Logs of ip6tables -L -vn -t nat:
DNS check: