-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not publish IMAP/SMTP in autoconfig.php if disabled via SRV record #5944
Comments
Good find, I forgot IMAP and SMTP when I implemented the SRV record checking. Would you please submit a pull request to add that? |
Thanks for your fast response and yes, I can create a PR for it. |
@DerLinkman as we reverted 384e5a2 can you please reopen this issue? Will create another PR to actually fix the issue as discussed in #5945 (comment) :) |
@DerLinkman this is still an issue, can you please reopen this ticket? |
Contribution guidelines
I've found a bug and checked that ...
Description
In https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/autodiscover.php#L164-L185 we only publish TLS ports. In https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/autoconfig.php#L35-L48 and https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/autoconfig.php#L73-L86 we publish TLS and plain ports.
In https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/autoconfig.php#L62 and https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/autoconfig.php#L51 we already check if POP3/s is enabled via SRV record so checking against SRV records wouldn't even be something new.
To address https://www.usenix.org/system/files/sec21-poddebniak.pdf I "disabled" plain ports via
but due to the code in
autoconfig
, they are still published for this endpoint only.In the docs in https://docs.mailcow.email/getstarted/prerequisite-dns/#the-advanced-dns-configuration is stated
Also the mentioned RFC https://www.rfc-editor.org/rfc/rfc6186#section-3.4 says
in
I can also not fix it by adjusting something mentioned in https://docs.mailcow.email/manual-guides/u_e-autodiscover_config/
Please honor disabled SMTP and IMAP as well for the
autoconfig
endpoint.Logs:
Steps to reproduce:
autoconfig
output e.g. viacurl https://autoconfig.example.com/mail/config-v1.1.xml
. It should not contain IMAP and SMTP on plain ports.Full output of the xml
Which branch are you using?
master
Which architecture are you using?
x86
Operating System:
Not relevant
Server/VM specifications:
Not relevant
Is Apparmor, SELinux or similar active?
Not relevant
Virtualization technology:
Not relevant
Docker version:
Not relevant
docker-compose version or docker compose version:
Not relevant
mailcow version:
2024-06a
Reverse proxy:
Not relevant
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:
The text was updated successfully, but these errors were encountered: