Encrypted emails are empty

Hello,

I’ve been setting up S/MIME on my RT instance and I manage to send encrypted emails back and forth, however I have the issue that the emails that are sent from RT are empty. The ticket log shows that an email has been sent with a p7m attachement, which I assume must contain the encrypted body of the message, however when I receive the email in my mail client, it is empty, although correctly marked as S/MIME encrypted. I have the same behavior on both outlook and thunderbird with different email addresses.

The email as sent in RT:

What it actually should contain:

What I receive (screenshot is from another email hence the different case number, ignore this):

Any idea? Haven’t been able to find the cause of this yet.

We don’t use S/MIME with our RT, but as an idea, could you send an email to a local account on the RT server (assuming its Linux or similar) and then peep into the mailbox with a text based tool (less, more, etc) to see if the attachment is included with the email? That would at least let you check what RT was generating and your local mail transfer agent on the RT server.

I haven’t managed to send an encrypted email directly with postfix but I noticed that the authentication seems to fail in the email that I get, even without signing/encryption:

Authentication-Results: mx3.pub.mailpod4-cph3.one.com;
	spf=none smtp.mailfrom=[myhostname] smtp.remote-ip=xxx.xxx.xxx.xxx;
	dmarc=fail header.from=mydomain.com;

I also see that for the emails I receive from RT. I guess there must be some smtp configuration error in postfix…