M
M
mpetrunin2011-06-22 09:16:17
postfix
mpetrunin, 2011-06-22 09:16:17

Sendmail\Postfix: Sign every email that goes through with X.509?

There is an external application that generates letters and sends them via sendmail\postfix. In this case, a Rails application.
Is it possible to automatically sign certain emails with an X.509 certificate using sendmail\postfix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DmZ, 2011-06-22
@DmZ

Both sendmail and postfix support the milter protocol for mail filtering ( www.milter.org ). A similar approach is used, for example, by the DKIM signing filter (http://en.wikipedia.org/wiki/DKIM), though not x509.
So you can write your own filter to solve this problem. There are a number of libraries for working with the protocol. For example, in python ( pymilter ), then in your filter you can use the interface to OpenSSL ( pyOpenSSL ) with which to sign some fields.
If python is not suitable, then you can write a filter in perl ( Sendmail::Milter ) or in C ( milter.org API )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question