BillionMail icon indicating copy to clipboard operation
BillionMail copied to clipboard

Domain Name Processing Problem

Open ghost opened this issue 7 months ago • 5 comments

Type: Bug Fix + Feature Enhancement Version: 1.5 Affected Scope: Third-level domain handling, DNS record verification logic, TXT record customization Core Problem Description:

1.DKIM Record Truncation Error

    Symptom: After adding domain mail.example.com, the generated DKIM record shows d=example.com (incorrectly truncated to second-level domain).

    Consequence: DKIM validation fails.

2.DNS Record Display Anomalies

    Problem A: DNS resolves correctly, but system displays "Not Set".

    Problem B: After clicking "Verify DNS Settings", all record values erroneously duplicate subdomains:

   - Original  Records (Content A)
   + After clicking the Verify button  Records (Content B)

 		Content A:
	```
	记录类型	主机记录	记录值
	A	mail.example.com	1.1.1.1

	记录类型	主机记录	记录值	MX优先级
	MX	@	mail.example.com	10

	记录类型	主机记录	记录值
	TXT	@	v=spf1 +a +mx +ip4:1.1.1.1 -all复制
	TXT	default._domainkey	v=DKIM1;k=rsa;p=MIGfMA0GCS.... 复制
	TXT	_dmarc	v=DMARC1;p=quarantine;rua=mailto:[email protected] 复制
	```

	Content B:
	```
	记录类型	主机记录	记录值
	A	mail.mail.example.com	1.1.1.1
	步骤2:添加MX记录
	记录类型	主机记录	记录值	MX优先级
	MX	@	mail.mail.example.com	10
	步骤3:添加TXT记录
	记录类型	主机记录	记录值
	TXT	@	v=spf1 +a +mx +ip4:1.1.1.1 -all复制
	TXT	default._domainkey	v=DKIM1;k=rsa;p=MIGfMA0GCS.... 复制
	TXT	_dmarc	v=DMARC1;p=quarantine;rua=mailto:[email protected] 复制
	```

        Impact: MX/SPF/DKIM/DMARC validation completely fails due to invalid host records.
    
    3.Lack of TXT Record Customization
    
        Current SPF/DMARC records use rigid templates.
    
        Cannot flexibly adjust fields (e.g., SPF mechanisms, DMARC policies).

ghost avatar May 29 '25 21:05 ghost

No, we do not recommend using mail.example.com for your domains because it conflicts with the MX hostname (we default to 'mail.your_domain_name' as the MX record).

dreambladeflag avatar May 30 '25 07:05 dreambladeflag

Uh, I noticed that there are many places in the code that are hard-coded. This is not realistic, right? If you must hard-code, wouldn't it be better to use the prefix "mx" as the mx record in the code and leave "mail" to the web? Most cloud vendors seem to use "mx+sequence number" as the mx record.

ghost avatar May 30 '25 13:05 ghost

I changed the domain name to a third-level domain name that does not start with "mail", but the "d=" in the DKIM signature will still be truncated to the second-level domain name.

ghost avatar May 30 '25 13:05 ghost

I too have come across the issue with the third-level domain not being set in the DKIM-Signature correctly. Is there any planned fix for this specific issue which truncates third-level domains to second-level domain?

moustakakisCon avatar Jun 24 '25 21:06 moustakakisCon

i found a work around based on what is being said here: https://lists.rspamd.com/pipermail/users/2023-April/002696.html

editing the conf/rspamd/local.d/dkim_signing.conf, add the option use_esld = false; https://docs.rspamd.com/modules/dkim_signing/

moustakakisCon avatar Jun 25 '25 06:06 moustakakisCon