Skip to content
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

[bug]: Suggested DNS records incorrectly include subdomain name only #1084

Closed
1 task done
jeanas opened this issue Jan 11, 2025 · 3 comments
Closed
1 task done

[bug]: Suggested DNS records incorrectly include subdomain name only #1084

jeanas opened this issue Jan 11, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@jeanas
Copy link

jeanas commented Jan 11, 2025

What happened?

I'm using the latest version of Stalwart installed today. The zonefile generated in the admin Web interface contained records like this:

@                  IN MX    10 mail-server.
mail               IN CNAME mail-server.
_jmap._tcp         IN SRV   0 1 443 mail-server.
_imaps._tcp        IN SRV   0 1 993 mail-server.
_imap._tcp         IN SRV   0 1 143 mail-server.
_pop3s._tcp        IN SRV   0 1 995 mail-server.
_pop3._tcp         IN SRV   0 1 110 mail-server.
_submissions._tcp  IN SRV   0 1 465 mail-server.
_submission._tcp   IN SRV   0 1 587 mail-server.
autoconfig         IN CNAME mail-server.
autodiscover       IN CNAME mail-server.

which I believe is incorrect: it should be ... mail-server.my-domain.tld each time. (Took me a while to debug…)

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:

  • Install Stalwart
  • Add a domain in admin interface
  • Observe generated DNS records

Version

v0.11.x

What database are you using?

RocksDB

What blob storage are you using?

Filesystem

Where is your directory located?

Internal

What operating system are you using?

Linux

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jeanas jeanas added the bug Something isn't working label Jan 11, 2025
@andreymal
Copy link

The value used here is lookup.default.hostname (webadmin: Settings > Server > Network > Hostname), if the default value is incorrect for some reason, you should change it

(You should also configure lookup.default.domain in Settings > SMTP > Reporting > Default Domain which is empty by default for some reason)

@mdecimus
Copy link
Member

As @andreymal said, you need to update your server hostname in the Stalwart configuration.

@jeanas
Copy link
Author

jeanas commented Jan 15, 2025

Thanks, and sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants