Rspamd или уходим с spamassasin: различия между версиями

Материал из support.qbpro.ru
imported>Vix
Нет описания правки
Нет описания правки
Строка 6: Строка 6:
* [https://routerus.com/install-and-integrate-rspamd/#%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B8%D1%82%D1%8C_Nginx Установить и интегрировать Rspamd]
* [https://routerus.com/install-and-integrate-rspamd/#%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B8%D1%82%D1%8C_Nginx Установить и интегрировать Rspamd]
* [https://translated.turbopages.org/proxy_u/en-ru.ru.f0891997-6240c16f-e59fcc85-74722d776562/https/rspamd.com/doc/configuration/logging.html Rspamd logging settings]
* [https://translated.turbopages.org/proxy_u/en-ru.ru.f0891997-6240c16f-e59fcc85-74722d776562/https/rspamd.com/doc/configuration/logging.html Rspamd logging settings]
РЕШЕНИЕ ПРОБЛЕМ:
<hr>
* '''warning: milter inet:localhost:8877: can't read SMFIC_OPTNEG reply packet header: Connection reset by peer'''
cat /var/log/syslog
warning: milter inet:localhost:11332: can't read SMFIC_OPTNEG reply packet header: Connection timed out
warning: milter inet:localhost:11332: read error in initial handshake
Решение:
mcedit /etc/rspamd/modules.d/redis.conf
добавить:
redis {
...
  '''maxmemory 1024mb;'''
  '''maxmemory-policy volatile-lru;'''
  .include(try=true,priority=5) "${DBDIR}/dynamic/redis.conf"
  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/redis.conf"
  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/redis.conf"
}
перезапуск rspamd.

Версия от 21:28, 14 июня 2023

РЕШЕНИЕ ПРОБЛЕМ:


  • warning: milter inet:localhost:8877: can't read SMFIC_OPTNEG reply packet header: Connection reset by peer
cat /var/log/syslog
warning: milter inet:localhost:11332: can't read SMFIC_OPTNEG reply packet header: Connection timed out
warning: milter inet:localhost:11332: read error in initial handshake

Решение:

mcedit /etc/rspamd/modules.d/redis.conf

добавить:

redis {
...
 maxmemory 1024mb;
 maxmemory-policy volatile-lru;
 .include(try=true,priority=5) "${DBDIR}/dynamic/redis.conf"
 .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/redis.conf"
 .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/redis.conf"
}

перезапуск rspamd.