Skip to content

Instantly share code, notes, and snippets.

View stephdl's full-sized avatar
🏠
Happy to live in Aveyron

Stephane de Labrusse stephdl

🏠
Happy to live in Aveyron
View GitHub Profile
@stephdl
stephdl / gist:ea89a9f5b0ee9b4044ccf1b1ae5c5bbf
Created November 26, 2019 17:35
MULTIMAP_CONFIGURATION
[root@ns7loc14 ~]# cat /etc/rspamd/local.d/multimap.conf
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
# local.d/multimap.conf
@stephdl
stephdl / gist:8d0b1db4927f184fdd9414d45bf864d9
Created November 20, 2019 14:34
Comps rh-phpX dependencies
- rh-php72
rh-php72-php-bcmath rh-php72-php-gd sclo-php72-php-imap rh-php72-php-ldap
rh-php72-php-enchant rh-php72-php-mbstring rh-php72-php-pdo sclo-php72-php-tidy
rh-php72-php-mysqlnd rh-php72-php-soap rh-php72-php-pdo rh-php72-php-pgsql
- rh-php71
rh-php71-php-bcmath rh-php71-php-gd sclo-php71-php-imap rh-php71-php-ldap
rh-php71-php-enchant rh-php71-php-mbstring rh-php71-php-pdo sclo-php71-php-tidy
rh-php71-php-mysqlnd rh-php71-php-soap rh-php71-php-pdo rh-php71-php-pgsql
@stephdl
stephdl / gist:f07260845adfe904a527a00e2b510705
Created November 12, 2019 21:57
moreData to create the php pool
#
# template for each php version, I use a more data to avoid to repeat the code
#
[root@ns7loc8 ~]# cat /etc/e-smith/templates/etc/opt/rh/rh-php72/php-fpm.d/plop.conf/template-begin
; DO NOT MODIFY THIS FILE
; Manual changes will be lost when this file is regenerated.
;
; Please read the developer's guide, which is available
Oct 24 11:44:02 prometheus postfix/smtpd[15802]: connect from mail-eopbgr40055.outbound.protection.outlook.com[40.107.4.55]
Oct 24 11:44:02 prometheus rspamd[15094]: <4fd7fd>; proxy; proxy_accept_socket: accepted milter connection from /var/run/rspamd/worker-proxy port 0
Oct 24 11:44:02 prometheus postfix/smtpd[15802]: 5154018D695EB: client=mail-eopbgr40055.outbound.protection.outlook.com[40.107.4.55]
Oct 24 11:44:02 prometheus rspamd[15094]: <4fd7fd>; milter; rspamd_milter_process_command: got connection from 40.107.4.55:38465
Oct 24 11:44:02 prometheus postfix/cleanup[15807]: 5154018D695EB: message-id=<b7307fad-e44d-e8a9-c200-c70b6ad7d8be@chubbfrance.com>
Oct 24 11:44:02 prometheus rspamd[15094]: <4fd7fd>; proxy; rspamd_message_parse: loaded message; id: <b7307fad-e44d-e8a9-c200-c70b6ad7d8be@chubbfrance.com>; queue-id: <5154018D695EB>; size: 518751; checksum: <fbd7a03c3477d0b6bc36bcf9f8e2363a>
Oct 24 11:44:02 prometheus rspamd[15094]: <4fd7fd>; proxy; rspamd_mime_part_detect_language: detected part language
@stephdl
stephdl / gist:a7c7226cb713573ba7c17113d5f37bbf
Created October 24, 2019 09:45
clamav configuration of rspamd
[root@prometheus ~]# cat /etc/rspamd/local.d/antivirus.conf
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
2019-10-14 17:01:17,256 fail2ban.server [10754]: INFO Shutdown in progress...
2019-10-14 17:01:17,256 fail2ban.server [10754]: INFO Stopping all jails
2019-10-14 17:01:17,256 fail2ban.filter [10754]: INFO Removed logfile: '/var/log/httpd/access.joomla.de-labrusse.fr.log'
2019-10-14 17:01:17,256 fail2ban.filter [10754]: INFO Removed logfile: '/var/log/httpd/access.toto.com.log'
2019-10-14 17:01:17,256 fail2ban.filter [10754]: INFO Removed logfile: '/var/log/httpd/phpmyadmin_access.log'
2019-10-14 17:01:17,257 fail2ban.filter [10754]: INFO Removed logfile: '/var/log/httpd/phpmyadmin-access.log'
2019-10-14 17:01:17,257 fail2ban.filter [10754]: INFO Removed logfile: '/var/log/httpd/access_log'
2019-10-14 17:01:17,257 fail2ban.filter [10754]: INFO Removed logfile: '/var/log/httpd/ssl_access_log'
2019-10-14 17:01:17,257 fail2ban.filter [10754]: INFO Removed logfile: '/var/log/imap'
2019-10-14 17:01:17,257 fail2ban.fil
2019-10-14 17:01:17,297 fail2ban.actions [10754]: NOTICE [recidive] Unban 218.92.0.139
2019-10-14 17:01:17,508 fail2ban.actions [10754]: NOTICE [recidive] Unban 112.85.42.195
2019-10-14 17:01:17,627 fail2ban.jail [10754]: INFO Jail 'apache-badbots' stopped
2019-10-14 17:01:17,635 fail2ban.actions [10754]: NOTICE [recidive] Unban 45.82.153.37
2019-10-14 17:01:17,715 fail2ban.actions [10754]: NOTICE [recidive] Unban 62.210.203.121
2019-10-14 17:01:17,810 fail2ban.actions [10754]: NOTICE [recidive] Unban 179.185.30.83
2019-10-14 17:01:17,825 fail2ban.jail [10754]: INFO Jail 'dovecot-nethserver' stopped
2019-10-14 17:01:17,826 fail2ban.jail [10754]: INFO Jail 'postfix-sasl' stopped
2019-10-14 17:01:17,826 fail2ban.jail [10754]: INFO Jail 'nextcloud-auth' stopped
2019-10-14 17:01:17,826 fail2ban.jail [10754]: INFO Jail 'roundcube-auth' stopped
2019-10-14 17:01:17,297 fail2ban.actions [10754]: NOTICE [recidive] Unban 218.92.0.139
2019-10-14 17:01:17,508 fail2ban.actions [10754]: NOTICE [recidive] Unban 112.85.42.195
2019-10-14 17:01:17,627 fail2ban.jail [10754]: INFO Jail 'apache-badbots' stopped
2019-10-14 17:01:17,635 fail2ban.actions [10754]: NOTICE [recidive] Unban 45.82.153.37
2019-10-14 17:01:17,715 fail2ban.actions [10754]: NOTICE [recidive] Unban 62.210.203.121
2019-10-14 17:01:17,810 fail2ban.actions [10754]: NOTICE [recidive] Unban 179.185.30.83
2019-10-14 17:01:17,825 fail2ban.jail [10754]: INFO Jail 'dovecot-nethserver' stopped
2019-10-14 17:01:17,826 fail2ban.jail [10754]: INFO Jail 'postfix-sasl' stopped
2019-10-14 17:01:17,826 fail2ban.jail [10754]: INFO Jail 'nextcloud-auth' stopped
2019-10-14 17:01:17,826 fail2ban.jail [10754]: INFO Jail 'roundcube-auth' stopped
#!/usr/bin/perl
#
# Copyright (C) 2019 Nethesis S.r.l.
# http://www.nethesis.it - nethserver@nethesis.it
#
# This script is part of NethServer.
#
# NethServer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License,
bayes statistic issue
Using `rspamc learn_ham /var/lib/nethserver/vmail/stephane\@domain.org/Maildir/.INBOX.aru2l_bureau/cur/`
to learn ham I saw that at `87598:Sep 19 18:15:54` the spam counter has changed to zero (it was at 43 before)
I saw that also the ham number can change like the grep demonstrate it
.