doc:appunti:linux:sa:postfix_courier_authdaemon_debian_12
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_courier_authdaemon_debian_12 [2023/10/23 16:10] – [Spamassassin] niccolo | doc:appunti:linux:sa:postfix_courier_authdaemon_debian_12 [2024/02/26 10:13] (current) – [Moving the Courier Authdaemon socket into the Postfix chroot] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Postfix with Courier Authdaemon in Debian 12 ====== | + | ====== Postfix with Courier Authdaemon in Debian 12 Bookworm |
- | + | ||
- | ===== Configuring the Courier Authdaemon | + | |
We want to enable authentication on **virtual users** (i.e. using a login name which is not an Unix username), e.g. we want to use an email address as a login name. | We want to enable authentication on **virtual users** (i.e. using a login name which is not an Unix username), e.g. we want to use an email address as a login name. | ||
+ | |||
+ | We want the same authentication schema to work on both authenticated SMTP sumbission (sending mail via Postfix) and on POP3/IMAP (incoming mail via Courier daemons). | ||
+ | |||
+ | ===== Configuring the Courier Authdaemon ===== | ||
Into the configuration file **/ | Into the configuration file **/ | ||
Line 64: | Line 66: | ||
</ | </ | ||
- | To enable the bind mount at bootstrap we create | + | To enable the bind mount at bootstrap we define |
< | < | ||
[Unit] | [Unit] | ||
Description=Mount Courier Authdaemon into Postfix chroot | Description=Mount Courier Authdaemon into Postfix chroot | ||
- | Requires=courier-authdaemon.service | + | Wants=courier-authdaemon.service |
- | After=courier-authdaemon.service | + | |
[Mount] | [Mount] | ||
- | What=/var/ | + | What=/ |
Where=/ | Where=/ | ||
Type=bind | Type=bind | ||
Line 81: | Line 82: | ||
WantedBy=postfix.service | WantedBy=postfix.service | ||
</ | </ | ||
+ | |||
+ | **NOTICE**: The weak dependency '' | ||
This is a **[[https:// | This is a **[[https:// | ||
Line 95: | Line 98: | ||
systemctl restart postfix | systemctl restart postfix | ||
</ | </ | ||
+ | |||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
====== Spamassassin ====== | ====== Spamassassin ====== | ||
Line 101: | Line 108: | ||
The package provides two Systemd units: **spamd.service** and **spamassassin-maintenance.timer**; | The package provides two Systemd units: **spamd.service** and **spamassassin-maintenance.timer**; | ||
+ | |||
+ | To enable and start both, execute: | ||
+ | |||
+ | < | ||
+ | systemctl enable --now spamassassin-maintenance.timer | ||
+ | systemctl enable spamassassin-maintenance.service | ||
+ | systemctl start spamassassin-maintenance.service | ||
+ | </ | ||
+ | |||
+ | Then you can check timer schedule with: | ||
+ | |||
+ | < | ||
+ | systemctl list-timers --all | ||
+ | </ | ||
+ | |||
+ | The timer will call the **spamassassin-maint** which in turn will call the **sa-update** program to download the updated SpamAssassin rules and reload the spamd daemon. | ||
+ | |||
+ | The SpamAssassin rules are saved into **/ | ||
====== ClamAV ====== | ====== ClamAV ====== | ||
+ | |||
+ | Install the Debian packages **clamav**, **clamav-daemon**, | ||
+ | |||
+ | The Freshclam program will update the database of signatures stored into **/ | ||
doc/appunti/linux/sa/postfix_courier_authdaemon_debian_12.txt · Last modified: 2024/02/26 10:13 by niccolo