1

Topic: amavis Net::Server: [Permission denied]

I have a new server, came installed with iRedMail on Centos 6/MySQL
iRedAdmin v0.2.2 (MySQL)

it came 'pre installed', all working good

installed some domains, some users, all good

yesterday, installed more domains/users, now, I see amavis is failing

before I started using, tested amavis, definitely OK

amavisd debug says (full message below)

tried re-installing Net::Server, didn't help

what to do..?


..
Nov 23 12:52:42.679 /usr/sbin/amavisd[853]: Net::Server: Binding to UNIX socket file "/var/spool/amavisd/amavisd.sock"
Nov 23 12:52:42.683 /usr/sbin/amavisd[853]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1 with IPv4
Nov 23 12:52:42.684  /usr/sbin/amavisd[853]: (!)Net::Server: 2013/11/23-12:52:42 Can't connect to TCP port 10024 on 127.0.0.1 [Permission denied]\n  at line 68 in file /usr/local/share/perl5/Net/Server/Proto/TCP.pm
Nov 23 12:52:42.684 /usr/sbin/amavisd[853]: Net::Server: 2013/11/23-12:52:42 Server closing!

try different port, not 10024, same problem
tried current build amavisd from amavisd-new home page, same prob

# netstat | grep 10024
#


Linux  2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

CPAN: Module::CoreList loaded ok (v2.18)
Net::Server is up to date (2.007).

# amavisd -V
amavisd-new-2.8.0 (20120630)

[root@emu /]# amavisd debug
Nov 23 12:56:36.595 emu /usr/sbin/amavisd[1061]: logging initialized, log level 0, syslog: amavis.mail
Nov 23 12:56:36.595 emu /usr/sbin/amavisd[1061]: starting. /usr/sbin/amavisd at emu amavisd-new-2.8.1 (20130628), Unicode aware, LANG="en_US.UTF-8"
Nov 23 12:56:36.595 emu /usr/sbin/amavisd[1061]: perl=5.010001, user=, EUID: 495 (495);  group=, EGID: 493 493 (493 493)
Nov 23 12:56:36.637 emu /usr/sbin/amavisd[1061]: INFO: no optional modules: unicore::lib::Perl::Alnum.pl unicore::lib::Perl::SpacePer.pl unicore::lib::Perl::Word.pl unicore::lib::Alpha::Y.pl unicore::lib::Nt::De.pl Unix::Getrusage
Nov 23 12:56:36.637 emu /usr/sbin/amavisd[1061]: SpamControl: attempting to load scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Nov 23 12:56:36.637 emu /usr/sbin/amavisd[1061]: SpamControl: scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Nov 23 12:56:36.915 emu /usr/sbin/amavisd[1061]: INFO: SA version: 3.3.1, 3.003001, no optional modules: URI::_idna URI::_punycode auto::NetAddr::IP::InetBase::inet_any2n auto::NetAddr::IP::InetBase::inet_n2ad auto::NetAddr::IP::InetBase::inet_n2dx auto::NetAddr::IP::InetBase::inet_ntoa auto::NetAddr::IP::InetBase::ipv6_aton auto::NetAddr::IP::InetBase::ipv6_ntoa
Nov 23 12:56:36.915 emu /usr/sbin/amavisd[1061]: SpamControl: init_pre_chroot on SpamAssassin done
Nov 23 12:56:36.916 emu /usr/sbin/amavisd[1061]: socket module IO::Socket::INET6, protocol families available: INET, INET6
Nov 23 12:56:36.916 emu /usr/sbin/amavisd[1061]: bind to /var/spool/amavisd/amavisd.sock|unix, 127.0.0.1:10024/tcp, [::1]:10024/tcp, 127.0.0.1:10026/tcp, [::1]:10026/tcp, 127.0.0.1:10586/tcp, [::1]:10586/tcp, 127.0.0.1:9998/tcp, [::1]:9998/tcp
Nov 23 12:56:36.917 emu /usr/sbin/amavisd[1061]: Net::Server: 2013/11/23-12:56:36 Amavis (type Net::Server::PreForkSimple) starting! pid(1061)
Use of uninitialized value in subroutine entry at /usr/local/share/perl5/Net/Server/Proto.pm line 125.
Use of uninitialized value in subroutine entry at /usr/local/share/perl5/Net/Server/Proto.pm line 125.
Use of uninitialized value in subroutine entry at /usr/local/share/perl5/Net/Server/Proto.pm line 125.
Use of uninitialized value in subroutine entry at /usr/local/share/perl5/Net/Server/Proto.pm line 125.
Nov 23 12:56:36.922 emu /usr/sbin/amavisd[1061]: Net::Server: Binding to UNIX socket file "/var/spool/amavisd/amavisd.sock"
Nov 23 12:56:36.922 emu /usr/sbin/amavisd[1061]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1 with IPv4
Nov 23 12:56:36.922 emu /usr/sbin/amavisd[1061]: (!)Net::Server: 2013/11/23-12:56:36 Can't connect to TCP port 10024 on 127.0.0.1 [Permission denied]\n  at line 68 in file /usr/local/share/perl5/Net/Server/Proto/TCP.pm
Nov 23 12:56:36.922 emu /usr/sbin/amavisd[1061]: Net::Server: 2013/11/23-12:56:36 Server closing!
[root@emu /]#

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: amavis Net::Server: [Permission denied]

voytek wrote:

Nov 23 12:56:36.922 emu /usr/sbin/amavisd[1061]: (!)Net::Server: 2013/11/23-12:56:36 Can't connect to TCP port 10024 on 127.0.0.1 [Permission denied]\n  at line 68 in file /usr/local/share/perl5/Net/Server/Proto/TCP.pm

No idea. Please try asking in Amavisd mailing list.

3

Re: amavis Net::Server: [Permission denied]

thanks

it seems that it might have got screwed up by clamd update /incompatible repo ?

is there a set of clamd/amavid conf files from an original install that I get get to try ?

which is correct repo for clamd and amavisd install for iRedMail ?

4

Re: amavis Net::Server: [Permission denied]

Which yum repositories are you using? Show us output of command "yum repolist" please.
iRedMail has a small yum repository, but most packages are installed from EPEL repo.

5

Re: amavis Net::Server: [Permission denied]

ZhangHuangbin wrote:

Which yum repositories are you using? Show us output of command "yum repolist" please.
iRedMail has a small yum repository, but most packages are installed from EPEL repo.

thanks

# yum repolist
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
repo id                                repo name                                                                    status
base                                   CentOS-6 - Base                                                               6,367
epel                                   Extra Packages for Enterprise Linux 6 - x86_64                               10,136
extras                                 CentOS-6 - Extras                                                                13
iRedMail                               iRedMail                                                                         73
updates                                CentOS-6 - Updates                                                              225
repolist: 16,814

until few days, it also had rpmforge enabled, BUT, I saw error in 'yum update'
tested  disabling epel, still was getting some error messages;
tested  disabling rpmforge, NOT getting error messages;

so, disabled rpmforge

trawling through repos and yum log I see:

# yum  list available | grep clamd
clamd.i686                                 0.97.7-1.el6.rf               iRedMail
claws-mail-plugins-clamd.x86_64            3.9.0-2.el6                   epel
[root@emu log]# yum --disablerepo="*" --enablerepo="rpmforge" list available | grep clamd
clamd.x86_64                                0.98-2.el6.rf               rpmforge

# grep clam yum*
yum.log:Nov 05 17:41:11 Installed: clamav-db-0.98-1.el6.x86_64
yum.log:Nov 05 17:41:12 Installed: clamav-0.98-1.el6.x86_64
yum.log:Nov 05 17:41:13 Installed: clamd-0.98-1.el6.x86_64
yum.log:Dec 15 14:41:34 Updated: clamav-db-0.98-2.el6.x86_64
yum.log:Dec 15 14:41:36 Updated: clamav-0.98-2.el6.x86_64
yum.log:Dec 15 14:41:36 Updated: clamd-0.98-2.el6.x86_64

it seems (?) my system updated clamd from rpmforge, and, that might have broken amavis...?

what's best path forward ? unistall clam, install clam from iRedMail repo?

thanks again

6

Re: amavis Net::Server: [Permission denied]

ClamAV should be installed from EPEL, not rpmforge.
You can try below steps to fix it:

- Backup ClamAV config files (/etc/clamd.conf, /etc/freshclam.conf)
- Remove ClamAV
- Install ClamAV from EPEL.