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 revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:sa:postfix_courier_authdaemon_debian_12 [2023/10/20 11:34] – [Moving the Courier Authdaemon socket into the Postfix chroot] niccolo | doc:appunti:linux:sa:postfix_courier_authdaemon_debian_12 [2024/02/26 09:53] – 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 69: | Line 71: | ||
[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 | + | # The " |
+ | # and they can generate and ordering cycle problem. | ||
+ | #Requires=courier-authdaemon.service | ||
+ | #After=courier-authdaemon.service | ||
[Mount] | [Mount] | ||
Line 95: | Line 100: | ||
systemctl restart postfix | systemctl restart postfix | ||
</ | </ | ||
+ | |||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | |||
+ | ====== Spamassassin ====== | ||
+ | |||
+ | Install the **spamassassin** Debian package. | ||
+ | |||
+ | 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 ====== | ||
+ | |||
+ | 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