Can't add rules for domains that contain "--"

I’m trying to add a new block in the email filter (Email -> Filter -> Rules by Email Address), specifically my domain is something like first–second.com
WebUI doesn’t accept this kind of domain even if double hyphen is correctly supported and permitted.
https://tools.ietf.org/html/rfc1035

This is the error

For now, I forced it by CLI and it works pretty well.

config setprop amavisd SenderBlackList news.vendita--flash.com
signal-event nethserver-mail-filter-save
2 Likes