doc:appunti:linux:sa:postfix_opendkim
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:postfix_opendkim [2022/05/23 11:27] – [Add the domain to be signed] niccolo | doc:appunti:linux:sa:postfix_opendkim [2023/10/31 11:06] (current) – [OpenDKIM on Postfix with virtual domains] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OpenDKIM on Postfix with virtual domains ====== | ====== OpenDKIM on Postfix with virtual domains ====== | ||
| - | In this article | + | In this tutorial |
| < | < | ||
| apt install opendkim opendkim-tools | apt install opendkim opendkim-tools | ||
| </ | </ | ||
| + | |||
| + | In Debian 11 Bullseye the service is controlled (enable, start, stop, etc.) by Systemd: | ||
| + | |||
| + | < | ||
| + | systemctl status opendkim.service | ||
| + | </ | ||
| + | |||
| + | Because Postfix is running into a chroot, it cannot access the ''/ | ||
| + | |||
| + | < | ||
| + | Socket | ||
| + | </ | ||
| + | |||
| + | The same daemon is used both for signing and verifying. Signing is performed when the client connecting to the MUA is authenticated and the **From:** address matches the domains to be signed (see the command line option **%%-d%%** or the **SigningTable** option of the ''/ | ||
| ===== Create the keys in / | ===== Create the keys in / | ||
| Line 63: | Line 77: | ||
| ===== Configure OpenDKIM ===== | ===== Configure OpenDKIM ===== | ||
| - | Into the **/ | + | Into the **/ |
| < | < | ||
| Line 120: | Line 134: | ||
| </ | </ | ||
| - | Havig done this, we define the custom **mua_milters** directive in '' | + | Having |
| < | < | ||
| - | # Locally generated mails are filtered with OpenDKIM. | + | # Locally generated mails (e.g. from command line Mutt) are filtered with OpenDKIM. |
| non_smtpd_milters = inet: | non_smtpd_milters = inet: | ||
| - | # Uncomment if you want OpenDKIM | + | # Mails received via SMTP protocol are filtered with OpenDKIM; |
| - | #smtpd_milters = inet: | + | # messages |
| + | smtpd_milters = inet: | ||
| - | # Restriction | + | # Filters |
| mua_milters = | mua_milters = | ||
| unix: | unix: | ||
| inet: | inet: | ||
| + | </ | ||
| + | |||
| + | Another important Postfix setting is **milter_default_action**, | ||
| + | |||
| + | < | ||
| + | milter_default_action = tempfail | ||
| </ | </ | ||
doc/appunti/linux/sa/postfix_opendkim.1653298023.txt.gz · Last modified: by niccolo
