Amavisd fail to listen on multi ports 20024 30024 ..

Pro Va provaitsolutions at gmail.com
Tue Jul 2 11:08:53 CEST 2019


Hello Patrick , thanks for your response , answering your questions :

Do you start it as user root? - yes i am starting the service logged in as
a root. , The service is running as 'amavis' as user.
On which OS do you try this? >> this is on RHEL 7.4
Does the OS enforce SELinux or apparmor or anything alike?  > not sure  : )

i tried the notation specified with no luck:

@listen_sockets = (
    # Release
    '127.0.0.1:10024',
    '127.0.0.1:20024',
    '127.0.0.1:30024',
    "$unix_socketname"
    );

$unix_socketname = "/var/run/amavisd/amavisd.sock";

journalctl -xe > output >

-- Subject: Unit amavisd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit amavisd.service has begun starting up.
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: logging initialized, log
level 3, syslog: amavis.mail
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: sd_notify (no socket):
STATUS=Config files have been read, modules loaded.
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: starting. /usr/sbin/amavisd
at ( xxxxhostname ) amavisd-new-2.11.1 (20181009), Unicode aware,
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: perl=5.016003, user=991,
EUID: 991 (991);  group=, EGID: 987 983 984 987 (987 983 984 987)
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: INFO: no optional modules:
unicore::lib::Nt::De.pl Unix::Getrusage
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: socket module IO::Socket::IP,
protocol families available: INET, INET6
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: will bind to
127.0.0.1:10024/tcp, 127.0.0.1:20024/tcp, 127.0.0.1:30024/tcp,
/var/run/amavisd/amavisd.sock
Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: sd_notify (no socket):
STATUS=Transferring control to Net::Server.
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server: Process
Backgrounded
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: sd_notify (no socket):
MAINPID=91052\nSTATUS=Daemonized, preparing to bind sockets.
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server:
2019/07/02-09:03:03 Amavis (type Net::Server::PreForkSimple) starting!
pid(91052)
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server: Duplicate
configuration (UNIX) on [127.0.0.1]:/var/run/amavisd/amavisd.sock with
IPv*) - ski
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server: Binding to TCP
port 10024 on host 127.0.0.1 with IPv4
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server: Binding to TCP
port 20024 on host 127.0.0.1 with IPv4
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: (!)Net::Server:
2019/07/02-09:03:03 Can't connect to TCP port 20024 on 127.0.0.1
[Permission denied]\n  a
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: sd_notify (no socket):
STOPPING=1\nSTATUS=Server rundown, notifying child processes.
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server:
2019/07/02-09:03:03 Server closing!
Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: sd_notify (no socket):
STATUS=Child processes have been stopped.
Jul 02 09:03:03 azl-us-mle0021 systemd[1]: PID file
/var/run/amavisd/amavisd.pid not readable (yet?) after start.
Jul 02 09:03:03 azl-us-mle0021 systemd[1]: amavisd.service never wrote its
PID file. Failing.
Jul 02 09:03:03 azl-us-mle0021 systemd[1]: Failed to start Amavisd-new is
an interface between MTA and content checkers..
-- Subject: Unit amavisd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit amavisd.service has failed.



On Tue, Jul 2, 2019 at 11:52 AM Patrick Ben Koetter <p at sys4.de> wrote:

> * Pro Va <provaitsolutions at gmail.com>:
> > Hello All ,
> >
> > I have configured amavisd as mailfilter interface for a postfix MTA ,
> when
> > I try to start amavisd after the initial configuration it fails (
> systemctl
> > start amavisd ) it reports that it cannot connect to one of the TCP
> ports ,
> > its does this to all ( any ) posrt specified other than 10024 .
>
> Do you start it as user root?
> On which OS do you try this? Does the OS enforce SELinux or apparmor or
> anything alike?
>
>
> > I have mentioned 10024 , 20024 and 30024 as inet_socket_port
> >
> > The error I get is :
> >
> >
> >
> > (!)Net::Server: 2019/07/02-00:49:44 Can't connect to TCP port 20024 on
> > 127.0.0.1 [Permission denied]\n  at line 68 in file
> > /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm
>
> Strange. Can you try the more modern notation:
>
> @listen_sockets = (
>     # Release
>     '127.0.0.1:10024',
>     '127.0.0.1:20024',
>     '127.0.0.1:30024',
>     "$MYHOME/amavisd.sock"
>     );
>
> p at rick
>
>
> --
> [*] sys4 AG
>
> https://sys4.de, +49 (89) 30 90 46 64
> Schleißheimer Straße 26/MG,80333 München
>
> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
> Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
> Aufsichtsratsvorsitzender: Florian Kirstein
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.amavis.org/pipermail/amavis-users/attachments/20190702/876bcb42/attachment.html>


More information about the amavis-users mailing list