To whom it may concern: Hello...
Personally, I am emailing from a DANE compliant email server which I set up using the following: https://pieterhollander.nl/post/mailserver/ In the past, I've used (followed; taken bits and pieces of each (some bigger than others)) other solutions (these web tutorials): https://123qwe.com/tutorial-debian-10 , https://thomas-leister.de/mailserver-debian-trixie/ , https://workaround.org/ispmail-trixie/ , https://www.linuxbabe.com/mail-server/build-email-server-from-scratch-debian-postfix-smtp , https://www.linuxbabe.com/mail-server/install-dovecot-imap-server-debian , https://www.linuxbabe.com/mail-server/postfixadmin-virtual-mailboxes-debian-postgresql , https://www.drassal.net/wp/setting-up-an-email-server-with-postfix-dovecot-postfixadmin-and-roundcube/ , DEPRECATED: https://thejimmyg.github.io/goodingredients/recipe/articles/index.html ... I choose to favor PostgreSql, so anyways... MAINLY, I followed Pieter Hollander's tutorial ... BUT Dovecot 2.4 has breaking changes ... SO I got another VPS and domain so that I can use my old config ... BUT Dovecot has a configuration upgrader URL to convert from 2.3 to 2.4: https://dovecot.org/upgrader/ ... SO ... soon I will see if my new VPS and domain work ( along with a new Dovecot config). I am documenting all the changes, and not just mixing everything into a single "dovecot.conf" file. Because if any of these tutorials died tomorrow, I need to be able to figure (fix) it myself. Everyone agree? I'll keep everyone updated if wanted. After I map all the new Dovecot configs, and test that it's all working and still passing internet.nl's test for mail servers. I run my own NSD nameservers, and I (marinaro.cc) email (server) at least pass with 100%. https://internet.nl/mail/marinaro.cc/1825019/ P.S. I use Mr. Viktor Dukhovni's script: root@mx:~# cat ietf_dane #! /usr/bin/env bash # Bash needed for PIPESTATUS array extract() { case "$4" in 0) openssl x509 -in "$1" -outform DER;; 1) openssl x509 -in "$1" -noout -pubkey | openssl pkey -pubin -outform DER;; esac } digest() { case "$5" in 0) cat;; 1) openssl dgst -sha256 -binary;; 2) openssl dgst -sha512 -binary;; esac } encode() { local cert=$1; shift local hostport=$1; shift local u=$1; shift local s=$1; shift local m=$1; shift local host=$hostport local port=25 OIFS="$IFS"; IFS=":"; set -- $hostport; IFS="$OIFS" if [ $# -eq 2 ]; then host=$1; port=$2; fi printf "_%d._tcp.%s. IN TLSA %d %d %d %s\n" \ "$port" "$host" "$u" "$s" "$m" \ "$(hexdump -ve '/1 "%02X"')" } genrr() { rr=$( extract "$@" | digest "$@" | encode "$@" exit $(( ${PIPESTATUS[0]} | ${PIPESTATUS[1]} | ${PIPESTATUS[2]} )) ) status=$?; if [ $status -ne 0 ]; then exit $status; fi echo "$rr" } error() { echo "$1" 1>&2; exit 1; } usage() { error "Usage: $0 chain.pem host[:port]"; } if [ $# -ne 2 ]; then usage; fi # Validate and normalize the chain # certfile=$1; shift chain="$( openssl crl2pkcs7 -nocrl -certfile "$certfile" | openssl pkcs7 -print_certs exit $(( ${PIPESTATUS[0]} | ${PIPESTATUS[1]} )) )" status=$?; if [ $status -ne 0 ]; then exit $status; fi hostport=$1; shift usage=3 cert= printf "%s\n\n" "$chain" | while read line do if [[ -z "$cert" && ! "$line" =~ ^-----BEGIN ]]; then continue fi cert=$(printf "%s\n%s" "$cert" "$line") if [ -z "$line" -a ! -z "$cert" ]; then echo "$cert" | openssl x509 -noout -subject -issuer -dates | sed -e 's/^/;; /' echo ";;" genrr <(echo "$cert") "$hostport" $usage 0 1 genrr <(echo "$cert") "$hostport" $usage 1 1 genrr <(echo "$cert") "$hostport" $usage 0 2 genrr <(echo "$cert") "$hostport" $usage 1 2 echo cert="" usage=2 fi done root@mx:~# ... Just put it in a file... chmod +x it ... run it against your letsencrypt certificates.... Viktor's script makes it easy. -Jason On Saturday, April 18, 2026 10:30:37 AM Mountain Standard Time Viktor Dukhovni wrote: > I've recently taken a closer look at some MX hosts that fail to > interoperate with the DANE survey's choice of TLS parameters. The > observed interoperability failures are easy to avoid, don't fall into > the trap of: > > - On the one hand requiring DANE-capable clients to always > use TLS when delivering to your MX host. > > - On the other hand choosing a narrow set of "secure" TLS > parameters, that may well result in no shared "ciphers" > with sensibly configured peers. > > - Also leaving your TLS stack unattened for a decade or more, > with just outdated algorithms supported is not a good idea. > If you're publishing DANE TLSA records, you need to make > some effort to stay up to date. > > I've seen a few MX hosts with DANE TLSA records, but: > > - Only TLS 1.0, with neither TLS 1.2 nor 1.3 supported. > - Only CBC ciphers, with no AEAD ciphers (AESGCM at least). > - P521 (secp521r1) as the *only* supported key exchange group. > ... > > This type of over-constrained TLS configuration risks interoperability > failure and loss of ability to receive email from some senders. > > The DANE survey engine engine settings are fairly typical: > > - The underlying TLS software is a recent version of the Haskell's > "tls" package, which has dropped support for TLS older than 1.2. > This is not particularly atypical, even OpenSSL is no longer > easily coaxed into doing a TLS 1.0 handshake. > > - The Haskell TLS library has also dropped support for CBC ciphers, > which OpenSSL does support, and though I've now forward-ported > support for CBC ciphers from an older release in my own build > of that library, I expect that there are other senders whose > TLS stacks no longer support (or will soon not support) CBC > ciphers. > > - Choosing only the absolutely strongest options (e.g., P521 or > bust) is a bad idea. It is not unreasable on the sending side > to avoid unreasonably large RSA key sizes, unreasonably > large FFDHE primes, and unreasonably strong EC curves) as these > are quite wasteful of CPU resources to little security benefit. > > Make sure: > > * Your TLS group settings include at least one of: > > - X25519 or SecP256r1 (P256) > - ffdhe2048 or ffdhe3072 > > * With RSA certificates, the key sizes is 2048 or 3072 bits > > * With ECDSA certificates use a P256 key. > > * Accept both AES128 and AES256 ciphers, and if posisble accept > CBC ciphers. > > Better yet, as much as possible stick with default settings that are > optimised for interoperability at sensible, rather tham maximal values > in their various parameters.
