Email protection - Installer error

Locked
User avatar
v3ng
Posts: 297
Joined: Wed 4. Jul 2018, 18:08

Email protection - Installer error

Post by v3ng »

Hi,

Bei einer Installation von Keyhelp auf einem kleinen KVM Server mit Debian 10 ist leider bei der Installation der Mail Protection ein Error aufgetreten.

Jemand eine Ahnung, was die Ursache sein könnte?
Die Forensuche hat mich leider nicht weitergebracht.


Grüße und danke!
Ian

Code: Select all


  files | amavis/15-content_filter_mode => /etc/amavis/conf.d/15-content_filter_mode
  files | amavis/50-user => /etc/amavis/conf.d/50-user
  files | spamassassin/spamassassin => /etc/default/spamassassin
  files | spamassassin/local.cf => /etc/spamassassin/local.cf

  exec  | su - amavis -s /bin/bash -c 'razor-admin -create'
  exec  | su - amavis -s /bin/bash -c 'razor-admin -register'
          register: Error reading socket

  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ERROR DETECTED <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

  [SKIPPED DUE PREVIOUS ERRORS] exec  | su - amavis -s /bin/bash -c 'pyzor discover'
  [SKIPPED DUE PREVIOUS ERRORS] exec  | usermod -aG amavis clamav
  [SKIPPED DUE PREVIOUS ERRORS] exec  | usermod -aG clamav amavis
  [SKIPPED DUE PREVIOUS ERRORS] exec  | chmod 0600 /etc/amavis/conf.d/50-user
  [SKIPPED DUE PREVIOUS ERRORS] exec  | service clamav-daemon restart
  [SKIPPED DUE PREVIOUS ERRORS] exec  | service amavis restart
  [SKIPPED DUE PREVIOUS ERRORS] exec  | service spamassassin restart
  [SKIPPED DUE PREVIOUS ERRORS] exec  | systemctl enable spamassassin
  [SKIPPED DUE PREVIOUS ERRORS] exec  | systemctl disable clamav-daemon
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: Email protection - Installer error

Post by OlliTheDarkness »

Ist ein "sauberer" Hostname gesetzt ?

Schon den Status des Dienstes gefragt was sein Problem ist ?

Code: Select all

service amavis status
service spamassassin status
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
v3ng
Posts: 297
Joined: Wed 4. Jul 2018, 18:08

Re: Email protection - Installer error

Post by v3ng »

Hostname ist auf eine FQDN gesetzt.
Der status output ist leider nicht wirklich hilfreich.

Code: Select all

root@lon:~# hostname -f
lon.xxxxxx.de

Code: Select all

● amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated)
   Active: active (exited) since Sat 2020-05-30 21:26:38 BST; 1 day 13h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 419 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Code: Select all

● amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated)
   Active: active (exited) since Sat 2020-05-30 21:26:38 BST; 1 day 13h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 419 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: Email protection - Installer error

Post by OlliTheDarkness »

Da können wir etwas nachhelfen, indem wir die Dienste etwas in den Arsch tretten :lol:

Code: Select all

service amavis restart
service spamassassin restart
Danach sollte der Status auch "freudiger" Auskunft geben 8-)

Code: Select all

service amavis status
service spamassassin status
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
v3ng
Posts: 297
Joined: Wed 4. Jul 2018, 18:08

Re: Email protection - Installer error

Post by v3ng »

Scheint wohl zu wenig RAM gewesen zu sein?
Ist ein kleiner KVM mit 512MB RAM, sollte für eine kleinere minimalinstallation aber eigentlich ja ausreichen.

Code: Select all

● amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated)
   Active: active (exited) since Mon 2020-06-01 11:13:20 BST; 26s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 24206 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)

Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No ext program for   .exe, tried: unrar-free; arj, unarj
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .F
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .arc
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .doc
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .exe
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .lrz
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .lz4
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .lzo
Jun 01 11:13:20 lon.xxxx.de amavis[24221]: No decoder for       .zoo
Jun 01 11:13:24 lon.xxxx.de amavis[24221]: (!)Net::Server: 2020/06/01-11:13:24 Bad fork [Cannot allocate memory]\n  at line 145 in file /usr/share/perl5/Net/Server/PreForkSimple.pm


Code: Select all

● spamassassin.service - Perl-based spam filter using text analysis
   Loaded: loaded (/lib/systemd/system/spamassassin.service; disabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-06-01 11:13:25 BST; 36s ago
  Process: 24227 ExecStart=/usr/sbin/spamd -d --pidfile=/var/run/spamd.pid $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 24231 (spamd)
    Tasks: 3 (limit: 545)
   Memory: 91.3M
   CGroup: /system.slice/spamassassin.service
           ├─24231 /usr/bin/perl -T -w /usr/sbin/spamd -d --pidfile=/var/run/spamd.pid --create-prefs --max-children 5 --helper-home-dir
           ├─24232 spamd child
           └─24233 spamd child

Jun 01 11:13:21 lon.xxxx.de spamd[24227]: logger: removing stderr method
Jun 01 11:13:23 lon.xxxx.de spamd[24231]: zoom: able to use 255/255 'body_0' compiled rules (100%)
Jun 01 11:13:23 lon.xxxx.de spamd[24231]: pyzor: check failed: util: cannot fork: Can't fork: Cannot allocate memory at /usr/share/perl5/Mail/SpamAssassin/Util.pm line 1578. at /usr/share/perl5/Mail/SpamAssassin/
Jun 01 11:13:25 lon.xxxx.de spamd[24231]: spamd: server started on IO::Socket::IP [::1]:783, IO::Socket::IP [127.0.0.1]:783 (running version 3.4.2)
Jun 01 11:13:25 lon.xxxx.de spamd[24231]: spamd: server pid: 24231
Jun 01 11:13:25 lon.xxxx.de spamd[24231]: spamd: server successfully spawned child process, pid 24232
Jun 01 11:13:25 lon.xxxx.de spamd[24231]: spamd: server successfully spawned child process, pid 24233
Jun 01 11:13:25 lon.xxxx.de systemd[1]: Started Perl-based spam filter using text analysis.
Jun 01 11:13:25 lon.xxxx.de spamd[24231]: prefork: child states: IS
Jun 01 11:13:25 lon.xxxx.de spamd[24231]: prefork: child states: II
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: Email protection - Installer error

Post by OlliTheDarkness »

Jab, Speicher zuweisungsfehler :)

Aber bei 512 MB kann ich ihn da voll verstehen, das ist echt hardcore. :D
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
v3ng
Posts: 297
Joined: Wed 4. Jul 2018, 18:08

Re: Email protection - Installer error

Post by v3ng »

Alles klar, danke dir für die Anstöße :D

Als kleine Testumgebung wird das reichen, hab nun mal noch etwas SWAP hinzugefügt.
User avatar
Jolinar
Community Moderator
Posts: 3580
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Email protection - Installer error

Post by Jolinar »

v3ng wrote: Mon 1. Jun 2020, 12:22 Ist ein kleiner KVM mit 512MB RAM, sollte für eine kleinere minimalinstallation aber eigentlich ja ausreichen.
Nein, das reicht nicht:
keyhelp.de wrote:Arbeitsspeicher: Mind. 1 GB RAM
Quelle: https://www.keyhelp.de/#installation

Selbst 1GB RAM ist schon grenzwertig und führt schon gerne mal zu OOM-Kills.
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
v3ng
Posts: 297
Joined: Wed 4. Jul 2018, 18:08

Re: Email protection - Installer error

Post by v3ng »

Kommt darauf an, was betrieben wird.

Für ein paar statische Seiten und als Testumgebung ist das auch mit 512MB möglich.
Mit etwas tuning lässt sich das ganze Setup auf rund 200MB RAM Verbrauch optimieren.

Etwas produktives oder speicherintensives würde ich da nicht betreiben, aber prinzipiell sind auch die 512MB problemlos möglich
User avatar
Jolinar
Community Moderator
Posts: 3580
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Email protection - Installer error

Post by Jolinar »

v3ng wrote: Mon 1. Jun 2020, 12:43 Für ein paar statische Seiten und als Testumgebung ist das auch mit 512MB möglich.
Mit etwas tuning lässt sich das ganze Setup auf rund 200MB RAM Verbrauch optimieren.
Da mußt du dann aber schon fast alle Dienste außer Web- und DB-Server runtergefahren haben :lol:
Aber klar, wenn es für deine Zwecke reicht, mir wäre die Kiste zu klein 8-)
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
Locked