Signed MIME messages¶
The mailclient or application must generate a correctly signed MIME container.
Setup¶
Prepare your values and Debian packages. CLI tests use only your local test files and configuration.
Configure S/MIME or OpenPGP. Select the MIME profile for PGP/MIME in the client. Outer transport headers are not automatically covered by the signed MIME part.
Test¶
set -euo pipefail
export GNUPGHOME=/root/mail-pgp
gpg --verify /root/mail-pgp/message.txt.asc /root/mail-pgp/message.txt
echo 'Detached signature verified; also check an actual PGP/MIME message in the recipient client.'
This CLI test confirms the local behavior described above. For production, send your own message using the actual client and MTA through the real sending route and verify it at a recipient you control.