I have a debian 10 server and I want to forward all mails from root to an ordinary email-address but encrypt them with gpg beforehand. Here on Stackexchange I found a solution with procmail, but after digging into it, I am not sure if that solution is the one for 2020 since procmail not recommended at all these days.
Does anybody know how to achieve it? On my debian server there is mailutils installed automatically, but I was not able to figure out if it is possible with one of the tools from it.
Thanks for any hint.
p.s. This is the question and answer from 2011 with procmail: How to automatically encrypt, sign, and forward root's email?