Giter VIP home page Giter VIP logo

signing-milter's Introduction

signing-milter in systemd

signing-milter enables you to s/mime sign an ordinary mail while passing a MTA. It is written in C and tested with the postfix MTA. It should work with any MTA implementing the milter protocol.

This repository replaces the daemontools service manager used in the original release by the Debian standard systemd service.

Installation

Install the required dependencies (if not already done):

apt-get install libcdb1 libmilter1.0.1 tinycdb

Download the current release (no Debian repository at the time of writing) for your Debian version and install the .deb file:

wget https://github.com/smeinecke/signing-milter/releases/latest/download/signing-milter_20220416-bullseye_amd64.deb
dpkg -i signing-milter_20220416-bullseye_amd64.deb

Basic postfix configuration

In default configuration the postfix daemon is chrooted to the spool folder located in /var/spool/postfix/. To use the socket feature of signing-milter the socket + permissions has to be configured in the /etc/default/signing-milter file:

#DISABLE_HOURLY_STATISTIK_LOGGING='yes'
#DISABLE_DAILY_STATISTIK_LOGGING='yes'
OPTIONS="-s unix:/var/spool/postfix/signing-milter/signing-milter.sock -c postfix"

Also create the folder within the postfix spool folder with the correct permissions:

mkdir -m o-rwx /var/spool/postfix/signing-milter
chown signing-milter:postfix /var/spool/postfix/signing-milter

The socket has to be configured in postfix in main.cf as new milter:

smtpd_milters = unix:signing-milter/signing-milter.sock

And reload/restart the services:

systemctl restart signing-milter
systemctl reload postfix

Configure certificates

All certificates are configured in the /etc/signing-milter/sigingtable file.

Just add the email address + path of the pem file and use

make

to update the cdb database and trigger reloading signing-milter.

The certificates have to be readable by the signing-milter user.

Intermediate certificates

Since version 20120731 signing-milter also supports intermediate certificates.

Just name your certificate with the suffix -cert+key.pem and put the intermediate + root certificate in a file suffixed by -chain.pem in the same folder.

Contributing

The project is based on signing-milter.org by Andreas Schulze.

signing-milter's People

Contributors

smeinecke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

charlesgetup jcbf

signing-milter's Issues

Debian 12 Support

Hello,

currently there is no support for Debian 12 as there is not libssl 1.1 on this Distribution.

Can you please add support?

Thank you for your efforts.

Download Problem

Just a detail about your guide, you need to update the link?

root@server:/tmp# wget https://github.com/smeinecke/signing-milter/releases/latest/download/signing-milter_20220416-bullseye_amd64.deb
dpkg -i signing-milter_20220416-bullseye_amd64.deb
--2023-05-29 12:04:28-- https://github.com/smeinecke/signing-milter/releases/latest/download/signing-milter_20220416-bullseye_amd64.deb
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/smeinecke/signing-milter/releases/download/20220416/signing-milter_20220416-bullseye_amd64.deb [following]
--2023-05-29 12:04:28-- https://github.com/smeinecke/signing-milter/releases/download/20220416/signing-milter_20220416-bullseye_amd64.deb
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 404 Not Found
2023-05-29 12:04:28 ERROR 404: Not Found.

dpkg: error: cannot access archive 'signing-milter_20220416-bullseye_amd64.deb': No such file or directory

No Signing on self-host?

Hello, if I send mails from at of my domains, that are located on the same machine (ip) to domains that are also on the same machine, they don't get signed. any Ideas about this behaviour?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.