Maddy: Difference between revisions
imported>Onny Add note about upstream issue autoconfig support |
imported>Onny Easier DNS setup |
||
| Line 30: | Line 30: | ||
=== DNS records === | === DNS records === | ||
It is possibly easier to configure our own authoritative-only DNS server, which provides important configuration information to other mail servers and clients. For details about the meaning of the specific DNS records or manual setup instructions see the [https://maddy.email/tutorials/setting-up/ Maddy setup tutorial]. | |||
< | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
services.nsd = { | |||
; | enable = true; | ||
example.org. | interfaces = [ | ||
"0.0.0.0" | |||
"::" | |||
mx1 | ]; | ||
zones."example.org.".data = '' | |||
;; | @ SOA ns.example.org noc.example.org 666 7200 3600 1209600 3600 | ||
@ A 1.2.3.4 | |||
@ AAAA abcd::eeff | |||
@ MX 10 mx1 | |||
mx1 A 1.2.3.4 | |||
mx1 AAAA abcd::eeff | |||
@ TXT "v=spf1 mx ~all" | |||
mx1 TXT "v=spf1 mx ~all" | |||
_dmarc TXT "v=DMARC1; p=quarantine; ruf=mailto:postmaster@example.org | |||
_mta-sts TXT "v=STSv1; id=1" | |||
_smtp._tls TXT "v=TLSRPTv1;rua=mailto:postmaster@example.org" | |||
default._domainkey TXT "v=DKIM1; k=ed25519; p=nAcUUozPlhc4VPhp7hZl+owES7j7OlEv0laaDEDBAqg=" | |||
''; | |||
}; | |||
Update the IPv4 and IPv6 addresses after <code>A</code> and <code>AAAA</code> to the one which points to the publc IP addresses of your mail server. The last entry is used by the <code>DKIM</code> authentication mechanism which enables recipients to verify the authenticity of mails send by your server. Create the following DNS record by using the value of the file Maddy generated on first startup <code>/var/lib/maddy/dkim_keys/example.org_default.dns</code>. | |||
Now that your server also runs a DNS daemon besides the mail server, you have to configure it as the external nameserver of your domain <code>example.org</code>. Please consult your domain provider on how to do that. | |||
=== Managing users and inboxes === | === Managing users and inboxes === | ||