Debugging amavis

Discussion in 'Server Operation' started by Ovidiu, Sep 10, 2016.

  1. Ovidiu

    Ovidiu Active Member

    It seems amavis reports it is not running but netstat contradicts this. Not sure if it makes a difference but this is an LXC running Debian8 and ISPCFG3 according to the perfect setup howto.

    Code:
    root@alfred:~# netstat -tulpn | grep 10024
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      20207/amavisd-new (
    tcp6       0      0 ::1:10024               :::*                    LISTEN      20207/amavisd-new (
    root@alfred:~# netstat -tulpn | grep 10026
    tcp        0      0 127.0.0.1:10026         0.0.0.0:*               LISTEN      20207/amavisd-new (
    tcp6       0      0 ::1:10026               :::*                    LISTEN      20207/amavisd-new (
    root@alfred:~# /etc/init.d/amavis status
    [FAIL] amavisd is not running ... failed!
    
    So I set the amavis log level to 3
    Code:
    Sep 10 12:53:33 alfred amavis:  logging initialized, log level 3, syslog: amavis.mail
    Sep 10 12:53:33 alfred amavis:  starting. /usr/sbin/amavisd-new at alfred.ict-consult.co.za amavisd-new-2.10.1 (20141025), Unicode aware, LC_ALL="C", LC_CTYPE="en_GB.UTF-8", LANG="en_GB.UTF-8"
    Sep 10 12:53:33 alfred amavis:  perl=5.020002, user=, EUID: 108 (108);  group=, EGID: 114 114 (114 114)
    Sep 10 12:53:33 alfred amavis:  INFO: no optional modules: unicore::lib::Perl::SpacePer.pl unicore::lib::Nt::De.pl Unix::Getrusage
    Sep 10 12:53:33 alfred amavis:  SpamControl: scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
    Sep 10 12:53:33 alfred amavis:  INFO: SA version: 3.4.0, 3.004000, no optional modules: Image::Info Image::Info::GIF Image::Info::JPEG Image::Info::PNG Image::Info::BMP Image::Info::TIFF
    Sep 10 12:53:33 alfred amavis:  SpamControl: init_pre_chroot on SpamAssassin done
    Sep 10 12:53:33 alfred amavis:  socket module IO::Socket::IP, protocol families available: INET, INET6
    Sep 10 12:53:33 alfred amavis:  bind to /var/lib/amavis/amavisd.sock|unix, 127.0.0.1:10024/tcp, [::1]:10024/tcp, 127.0.0.1:10026/tcp, [::1]:10026/tcp
    Sep 10 12:53:33 alfred amavis:  Net::Server: Process Backgrounded
    Sep 10 12:53:33 alfred amavis:  Net::Server: 2016/09/10-12:53:33 Amavis (type Net::Server::PreForkSimple) starting! pid(2240)
    Sep 10 12:53:33 alfred amavis:  Net::Server: Binding to UNIX socket file "/var/lib/amavis/amavisd.sock"
    Sep 10 12:53:33 alfred amavis:  Net::Server: Binding to TCP port 10024 on host 127.0.0.1 with IPv4
    Sep 10 12:53:33 alfred amavis:  (!)Net::Server: 2016/09/10-12:53:33 Can't connect to TCP port 10024 on 127.0.0.1 [Address already in use]\n  at line 68 in file /usr/share/perl5/Net/Server/Proto/TCP.pm
    Sep 10 12:53:33 alfred amavis:  Net::Server: 2016/09/10-12:53:33 Server closing!
    Setting the log level to 5 didn't show any more output then the above.

    A server restart now shows a running amavis and a pid file: /var/run/amavis/amavisd.pid
     

Share This Page