How can I DKIM sign an e-mail?
To DKIM sign an email you can use the following code in your filter:
use Mail::MIMEDefang::DKIM;
my ($header, $value) = md_dkim_sign('domain-dkim.key.pem', 'rsa-sha256', 'relaxed/simple', $sender_domain, 'dkim');
action_insert_header($header, $value);