User Tools

Site Tools


doc:appunti:linux:sa:postfix_courier_authdaemon_debian_12

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:appunti:linux:sa:postfix_courier_authdaemon_debian_12 [2023/10/23 16:10] – [Spamassassin] niccolodoc:appunti:linux:sa:postfix_courier_authdaemon_debian_12 [2024/02/26 09:51] – [Postfix with Courier Authdaemon in Debian 12] niccolo
Line 1: Line 1:
-====== Postfix with Courier Authdaemon in Debian 12 ======+====== Postfix with Courier Authdaemon in Debian 12 Bookworm ======
  
 ===== Configuring the Courier Authdaemon ===== ===== Configuring the Courier Authdaemon =====
Line 69: Line 69:
 [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 "Requires=" and "After=" dependencies may be too strong 
 +# and they can generate and ordering cycle problem. 
 +#Requires=courier-authdaemon.service 
 +#After=courier-authdaemon.service
  
 [Mount] [Mount]
Line 95: Line 98:
 systemctl restart postfix systemctl restart postfix
 </code> </code>
 +
 +  * **[[https://www.freedesktop.org/software/systemd/man/latest/systemd.syntax.html|Systemd Syntax]]**
 +  * **[[https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html|Systemd Unit]]**
 +  * **[[https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html|Systemd Mount]]**
  
 ====== Spamassassin ====== ====== Spamassassin ======
  
-Install the **spamassassin** package. The package provides two Systemd units: **spamd.service** and **spamassassin-maintenance.timer**; both should be enabled to have the daemon running and the rules updated once a day.+Install the **spamassassin** Debian package. 
 + 
 +The package provides two Systemd units: **spamd.service** and **spamassassin-maintenance.timer**; both should be enabled to have the daemon running and the rules updated once a day
 + 
 +To enable and start both, execute: 
 + 
 +<code> 
 +systemctl enable --now spamassassin-maintenance.timer 
 +systemctl enable spamassassin-maintenance.service 
 +systemctl start spamassassin-maintenance.service 
 +</code> 
 + 
 +Then you can check timer schedule with: 
 + 
 +<code> 
 +systemctl list-timers --all 
 +</code> 
 + 
 +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 **/var/lib/spamassassin/**.
  
 ====== ClamAV ====== ====== ClamAV ======
 +
 +Install the Debian packages **clamav**, **clamav-daemon**, **clamdscan** and **clamav-freshclam**. Ensure that the Systemd units **clamav-daemon.service** and **clamav-freshclam.service** are enabled and started.
 +
 +The Freshclam program will update the database of signatures stored into **/var/lib/clamav/** and will log into **/var/log/clamav/freshclam.log**.
  
doc/appunti/linux/sa/postfix_courier_authdaemon_debian_12.txt · Last modified: 2024/02/26 10:13 by niccolo