2.8 new install, not binding to additional ports

lists at sbt.net.au lists at sbt.net.au
Wed May 23 23:01:19 CEST 2012


>> where do I need to put pid, ?

> $pid_file = "/var/run/amavis/amavisd.pid";


Mark, thanks:

OK, I change these 3 in /etc/amavisd.conf as:

..
$lock_file = "var/run/amavis/amavisd.lock";
$pid_file = "/var/run/amavis/amavisd.pid";
..
..
$unix_socketname = "/var/run/amavis/amavisd.sock";
...

that seems to starts OK, no more failed starts (1),
BUT, after a little while starts looping with(2):

# ls -al /var/run/amavis/            total 0
drwxr-xr-x  2 amavis amavis  60 2012-05-24 06:50 .
drwxr-xr-x 14 root   root   480 2012-05-24 06:11 ..
-rw-r-----  1 amavis amavis   0 2012-05-23 12:32 amavisd.lock

deleted above file, tried again, same fail:

# ls -al /var/run/amavis/
total 0
drwxr-xr-x  2 amavis amavis  40 2012-05-24 06:57 .
drwxr-xr-x 14 root   root   480 2012-05-24 06:11 ..


(1)
----------
root at palm:~/down/amavisd-new-2.8.0-pre7-org# ./amavisd -c
/etc/amavisd.conf debug


May 24 06:49:56.978 palm ./amavisd[16789]: logging initialized, log level
2, syslog: amavis.mail
May 24 06:49:56.978 palm ./amavisd[16789]: starting. ./amavisd at palm
amavisd-new-2.8.0-pre7 (20120522), Unicode aware, LANG="en_AU.UTF-8"
May 24 06:49:56.978 palm ./amavisd[16789]: perl=5.010001, user=, EUID: 117
(117);  group=, EGID: 125 125 (125 125)
May 24 06:49:57.002 palm ./amavisd[16789]: 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 IO::Socket::IP Unix::Getrusage
May 24 06:49:57.003 palm ./amavisd[16789]: SpamControl: attempting to load
scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
May 24 06:49:57.003 palm ./amavisd[16789]: SpamControl: scanner
SpamAssassin, module Amavis::SpamControl::SpamAssassin
May 24 06:49:57.145 palm ./amavisd[16789]: INFO: SA version: 3.3.1,
3.003001, no optional modules: Net::CIDR::Lite Encode::Detect
Razor2::Client::Agent IP::Country::Fast Image::Info Image::Info::GIF
Image::Info::JPEG Image::Info::PNG Image::Info::BMP Image::Info::TIFF
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
May 24 06:49:57.145 palm ./amavisd[16789]: SpamControl: init_pre_chroot on
SpamAssassin done
May 24 06:49:57.146 palm ./amavisd[16789]: bind to
/var/run/amavis/amavisd.sock|unix, 127.0.0.1:10024/tcp,
127.0.0.1:10026/tcp, 127.0.0.1:10586/tcp
May 24 06:49:57.146 palm ./amavisd[16789]: Net::Server:
2012/05/24-06:49:57 Amavis (type Net::Server::PreForkSimple) starting!
pid(16789)
May 24 06:49:57.149 palm ./amavisd[16789]: Net::Server: Binding to UNIX
socket file /var/run/amavis/amavisd.sock using SOCK_STREAM
May 24 06:49:57.149 palm ./amavisd[16789]: Net::Server: Binding to TCP
port 10024 on host 127.0.0.1
May 24 06:49:57.149 palm ./amavisd[16789]: Net::Server: Binding to TCP
port 10026 on host 127.0.0.1
May 24 06:49:57.149 palm ./amavisd[16789]: Net::Server: Binding to TCP
port 10586 on host 127.0.0.1
May 24 06:49:57.149 palm ./amavisd[16789]: Net::Server: Group Not Defined.
 Defaulting to EGID '125 125'
May 24 06:49:57.150 palm ./amavisd[16789]: Net::Server: User Not Defined. 
Defaulting to EUID '117'
May 24 06:49:57.150 palm ./amavisd[16789]: Net::Server: Setting up
serialization via flock
May 24 06:49:57.150 palm ./amavisd[16789]: after_chroot_init: EUID: 117
(117);  EGID: 125 125 (125 125)
May 24 06:49:57.150 palm ./amavisd[16789]: config files read:
/etc/amavisd.conf
May 24 06:49:57.161 palm ./amavisd[16789]: Module Amavis::Conf        2.315
May 24 06:49:57.161 palm ./amavisd[16789]: Module Archive::Zip        1.30
----------


(2)

----------
May 24 06:53:02.429 palm.sbt.net.au ./amavisd[25463]: (!)Net::Server:
2012/05/24-06:53:02 Couldn't open lock file
"var/run/amavis/amavisd.lock"[No such file or directory]\n  at line 203 in
file /usr/share/perl5/Net/Server/PreForkSimple.pm
May 24 06:53:02.430 palm.sbt.net.au ./amavisd[25463]: Net::Server:
2012/05/24-06:53:02 Server closing!
May 24 06:53:02.438 palm.sbt.net.au ./amavisd[16789]: Net::Server:
Starting "1" children
May 24 06:53:02.449 palm.sbt.net.au ./amavisd[25464]: (!)Net::Server:
2012/05/24-06:53:02 Couldn't open lock file
"var/run/amavis/amavisd.lock"[No such file or directory]\n  at line 203 in
file /usr/share/perl5/Net/Server/PreForkSimple.pm
May 24 06:53:02.450 palm.sbt.net.au ./amavisd[25464]: Net::Server:
2012/05/24-06:53:02 Server closing!
----------



More information about the amavis-users mailing list