Solved Configure Sendmail to Reject Non Encrypted Emails

Hello,

How could I configure SendMail to reject emails that are not encrypted with OpenPGP?

I would like this rule to apply to specific mailboxes only (ie. That other mailboxes remain able to receive unencrypted emails).

Ideally, I would also like to customize the rejection message when messages are rejected because of lack of encryption.

Any pointers on the possible hooks/approaches to look at would be very much appreciated.

Thank you !
 
This isn't something you'd do with Sendmail, but using a mail processor. Basically the same approach you'd take with a spamfilter, that too is usually a separated process.

My suggestion would be to look into mail/procmail, it's a good processor and it shouldn't be too difficult to write a filter for it to scan for PGP/GPG signatures. The best part (in my opinion) is that its activation could be as easy as adding a ~/.forward file for those accounts you want filtered.

Hope this can give you some ideas.
 
Back
Top