Hello,
i'm using i-MSCP (1.5.3) on Debian Stretch. Everything is working fine so far
Now i am trying to set default DMARC records for all domains on i-MSCP. I already managed to set default mx, and spf records by editing the db.tpl file that i-MSCP uses to generate the zone files. I tried using the same way to define a default DMARC record for all my domains. But as the i-MSCP parser replaces all @ with the domain name, the @ in the email within the value of the DMARC record also gets replaced. 19 is the critical line in the following code.
- $TTL 3H
- $ORIGIN {DOMAIN_NAME}.
- @ IN SOA ns1.domain.network. hostmaster.domain.de. (
- {TIMESTAMP}; Serial
- 1H; Refresh
- 1H; Retry
- 10W; Expire
- 1H; Minimum TTL
- )
- ; dmn NS RECORD entry BEGIN
- @ IN NS {NS_NAME}
- ; dmn NS RECORD entry ENDING
- @ IN A 148.251.232.130
- @ IN AAAA 2a01:d64:200:304b::5
- * IN A 148.251.232.130
- * IN AAAA 2a01:d64:200:304b::5
- @ IN MX 10 mail.domain.de.
- @ IN MX 20 backup-mx.domain.de.
- _dmarc IN TXT "v=DMARC1; p=none; sp=none; fo=; ri=3600; rua=mailto:postmaster@domain.de; ruf=mailto:postmaster@domain.de"
- @ IN TXT "v=spf1 a mx -all"
- ; dmn NS GLUE RECORD entry BEGIN
- {NS_NAME} IN {NS_IP_TYPE} {NS_IP}
- ; dmn NS GLUE RECORD entry ENDING
- www IN CNAME @
- ; dmn MAIL entry BEGIN
- ; dmn MAIL entry ENDING
- ; custom DNS entries BEGIN
- ; custom DNS entries ENDING
- ; sub entries BEGIN
- ; sub [{SUBDOMAIN_NAME}] entry BEGIN
- ; sub [{SUBDOMAIN_NAME}] entry ENDING
- ; sub entries ENDING
- $ORIGIN {DOMAIN_NAME}.
The following line is copied from the file that i-MSCP generates for bind. As you can see @ within the postmaster email is replaced by domain.de
I already tried to escape the @ by a backslash and also tried two @@ but nothing worked. Is there a way to escape the @ or do you have another idea to solve the problem?
Thanks a lot in advance