Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-statistics domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-pagenavi domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114
Ajouter SPAMASSASSIN à POSTFIX - Plessy

Ajouter SPAMASSASSIN à POSTFIX

sudo apt-get install spamassassin
sudo adduser spamassassin
sudo addgroupe spamassassin
sudo nano /etc/default/spamassassin

Et remplacer la configuration par:

ENABLED=1
OPTIONS="--username spamassassin --nouser-config --max-children 2 --helper-home-dir ${SAHOME} --socketowner=spamassassin --socketgroup=spamassassin --socketmode=0660"
PIDFILE="/var/run/spamassassin/spamd.pid"
CRON=1

Ajouter SPAMASSASIN à Postfix:

sudo nano /etc/postfix/master.cf

Remplacer la ligne SMPT par:

smtp inet n - - - - smtpd -o content_filter=spamassassin

Ajouter à la fin:

spamassassin unix - n n - - pipe
  user=spamassassin argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
Dans la première ligne les mots sont séparés par des tabs, la seconde ligne commence par 2 espaces puis 1 espace entre chaque mot.

Et on redémarre les services:

sudo systemctl restart spamassassin
sudo systemctl restart postfix