Hi Walter, thank you very much for your answer. I finally found the solution yesterday, but I did not know how to "close" this issue I submitted.
I explain my solution just to check if is seems Ok to you : - I changed the openssl smime command to remove all header part - I insert the header after smime commands (at the beginning of the file) with simple text editing / inserting - Then I send it directly with : sendmail -ti < my_file_encrypted_with_my_new_headers I understand your point : "Disposition-Notification-To" in EVERY email but here it's only for a project for a server to server communication where I need to get the notification back for further operations. Thanks again, Nicolas Le 15/01/2013 12:33, Walter H. a écrit : >> My config is : >> >> OS : centos 6 >> OpenSSL : openssl-1.0.0-20.el6_2.5.x86_64 >> >> My commands are : >> >> oppenssl smime -sign -in myfile -signer mycertif.pem -inkey mykey.pem | >> openssl smime -out signedfile -from m...@me.me -to t...@to.to -subject >> mysubject -encrypt -des3 myencryption.pem >> sendmail t...@to.to <myfile -f m...@me.me > separate handling of mail header/body is missing; > >> It works but I miss the "Disposition-Notification-To : " header at the >> end of it. >> How this should be done in order that it keeps the >> "Disposition-Notification-To : " header ? > the SMIME signature shall only go for the Mail-body, > so the Mail header is separate and contain anything you need to have; > > by the way: having "Disposition-Notification-To" in EVERY email is a bad > habit; you do not post every letter as a registrated letter either; > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org