Author Topic: Amavis not working  (Read 8366 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Amavis not working
« on: September 18, 2017, 01:25:23 PM »
Hello

I did a clean CWP installation today. But amavis did not work for me. What am I doing wrong?

Sep 18 15:17:19.407 mydomain.com /usr/sbin/amavisd[4519]: logging initialized, log level 1, syslog: amavis.mail
Sep 18 15:17:19.407 mydomain.com /usr/sbin/amavisd[4519]: sd_notify (no socket): STATUS=Config files have been read, modules loaded.
Sep 18 15:17:19.407 mydomain.com /usr/sbin/amavisd[4519]: no $pid_file configured, not checking it
Sep 18 15:17:19.407 mydomain.com /usr/sbin/amavisd[4519]: starting. /usr/sbin/amavisd at mydomain.com amavisd-new-2.11.0 (20160426), Unicode aware, LANG="en_US.UTF-8"
Sep 18 15:17:19.407 mydomain.com /usr/sbin/amavisd[4519]: perl=5.016003, user=amavis, EUID: 988 (988);  group=, EGID: 986 (986)
Sep 18 15:17:19.429 mydomain.com /usr/sbin/amavisd[4519]: INFO: no optional modules: unicore::lib::Nt::De.pl Unix::Getrusage
Sep 18 15:17:19.429 mydomain.com /usr/sbin/amavisd[4519]: SpamControl: attempting to load scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Sep 18 15:17:19.429 mydomain.com /usr/sbin/amavisd[4519]: SpamControl: scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Sep 18 15:17:19.574 mydomain.com /usr/sbin/amavisd[4519]: INFO: SA version: 3.4.0, 3.004000, no optional modules: Net::CIDR::Lite Image::Info Image::Info::GIF Image::Info::JPEG Image::Info::PNG Image::Info::BMP Image::Info::TIFF
Sep 18 15:17:19.574 mydomain.com /usr/sbin/amavisd[4519]: SpamControl: init_pre_chroot on SpamAssassin done
Sep 18 15:17:19.574 mydomain.com /usr/sbin/amavisd[4519]: socket module IO::Socket::IP, protocol families available: INET, INET6
Sep 18 15:17:19.575 mydomain.com /usr/sbin/amavisd[4519]: will bind to /var/amavis/amavisd.sock|unix, 127.0.0.1:10024/tcp, [::1]:10024/tcp
Sep 18 15:17:19.575 mydomain.com /usr/sbin/amavisd[4519]: sd_notify (no socket): STATUS=Transferring control to Net::Server.
Sep 18 15:17:19.575 mydomain.com /usr/sbin/amavisd[4519]: sd_notify (no socket): STATUS=Preparing to bind sockets.
Sep 18 15:17:19.575 mydomain.com /usr/sbin/amavisd[4519]: Net::Server: 2017/09/18-15:17:19 Amavis (type Net::Server::PreForkSimple) starting! pid(4519)
Sep 18 15:17:19.578 mydomain.com /usr/sbin/amavisd[4519]: Net::Server: Binding to UNIX socket file "/var/amavis/amavisd.sock"
Sep 18 15:17:19.578 mydomain.com /usr/sbin/amavisd[4519]: (!)Net::Server: 2017/09/18-15:17:19 Can't connect to UNIX socket at file /var/amavis/amavisd.sock [No such file or directory]\n  at line 70 in file /usr/share/perl5/vendor_perl/Net/Server/Proto/UNIX.pm
Sep 18 15:17:19.578 mydomain.com /usr/sbin/amavisd[4519]: sd_notify (no socket): STOPPING=1\nSTATUS=Server rundown, notifying child processes.
Sep 18 15:17:19.578 mydomain.com /usr/sbin/amavisd[4519]: Net::Server: 2017/09/18-15:17:19 Server closing!
Sep 18 15:17:19.578 mydomain.com /usr/sbin/amavisd[4519]: sd_notify (no socket): STATUS=Child processes have been stopped.

Offline
*
Re: Amavis not working
« Reply #1 on: September 18, 2017, 01:39:40 PM »
I found the solution

amavisd -u amavis -c /etc/amavisd/amavisd.conf debug
 
The value of variable $myhostname is "Mydomain", but should have been  a fully qualified domain name; perhaps uname(3) did not provide such. You must explicitly assign a FQDN of this host to variable $myhostname in amavisd.conf, or fix what uname(3) provides as a host's network name!