> Maybe I posted too many stuff. What my problem is "openssl smime" command signed everything fed to it. For example, I wanted to sign the following email body. Yes, it signs whatever you give it. You will have to feed it just the message body and set the headers yourself.