<div dir="ltr">Hello Patrick , thanks for your response , answering your questions :<div><br></div><div>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.</div><div>On which OS do you try this? >> this is on RHEL 7.4 </div><div>Does the OS enforce SELinux or apparmor or anything alike?  > not sure  : )<br></div><div><br></div><div>i tried the notation specified with no luck:</div><div><br></div><div>@listen_sockets = (<br>    # Release<br>    '<a href="http://127.0.0.1:10024">127.0.0.1:10024</a>',<br>    '<a href="http://127.0.0.1:20024">127.0.0.1:20024</a>',<br>    '<a href="http://127.0.0.1:30024">127.0.0.1:30024</a>',<br>    "$unix_socketname"<br>    );<br></div><div><br></div><div>$unix_socketname = "/var/run/amavisd/amavisd.sock";<br></div><div><br></div><div>journalctl -xe > output ></div><div><br></div><div>-- Subject: Unit amavisd.service has begun start-up<br>-- Defined-By: systemd<br>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>--<br>-- Unit amavisd.service has begun starting up.<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: logging initialized, log level 3, syslog: amavis.mail<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: sd_notify (no socket): STATUS=Config files have been read, modules loaded.<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: starting. /usr/sbin/amavisd at ( xxxxhostname ) amavisd-new-2.11.1 (20181009), Unicode aware,<br>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)<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: INFO: no optional modules: unicore::lib::Nt::De.pl Unix::Getrusage<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: socket module IO::Socket::IP, protocol families available: INET, INET6<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: will bind to <a href="http://127.0.0.1:10024/tcp">127.0.0.1:10024/tcp</a>, <a href="http://127.0.0.1:20024/tcp">127.0.0.1:20024/tcp</a>, <a href="http://127.0.0.1:30024/tcp">127.0.0.1:30024/tcp</a>, /var/run/amavisd/amavisd.sock<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91051]: sd_notify (no socket): STATUS=Transferring control to Net::Server.<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server: Process Backgrounded<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: sd_notify (no socket): MAINPID=91052\nSTATUS=Daemonized, preparing to bind sockets.<br>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)<br>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<br>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<br>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<br>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<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: sd_notify (no socket): STOPPING=1\nSTATUS=Server rundown, notifying child processes.<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: Net::Server: 2019/07/02-09:03:03 Server closing!<br>Jul 02 09:03:03 azl-us-mle0021 amavis[91052]: sd_notify (no socket): STATUS=Child processes have been stopped.<br>Jul 02 09:03:03 azl-us-mle0021 systemd[1]: PID file /var/run/amavisd/amavisd.pid not readable (yet?) after start.<br>Jul 02 09:03:03 azl-us-mle0021 systemd[1]: amavisd.service never wrote its PID file. Failing.<br>Jul 02 09:03:03 azl-us-mle0021 systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..<br>-- Subject: Unit amavisd.service has failed<br>-- Defined-By: systemd<br>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>--<br>-- Unit amavisd.service has failed.<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 2, 2019 at 11:52 AM Patrick Ben Koetter <<a href="mailto:p@sys4.de">p@sys4.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* Pro Va <<a href="mailto:provaitsolutions@gmail.com" target="_blank">provaitsolutions@gmail.com</a>>:<br>
> Hello All ,<br>
> <br>
> I have configured amavisd as mailfilter interface for a postfix MTA , when<br>
> I try to start amavisd after the initial configuration it fails ( systemctl<br>
> start amavisd ) it reports that it cannot connect to one of the TCP ports ,<br>
> its does this to all ( any ) posrt specified other than 10024 .<br>
<br>
Do you start it as user root?<br>
On which OS do you try this? Does the OS enforce SELinux or apparmor or<br>
anything alike?<br>
<br>
<br>
> I have mentioned 10024 , 20024 and 30024 as inet_socket_port<br>
> <br>
> The error I get is :<br>
> <br>
> <br>
> <br>
> (!)Net::Server: 2019/07/02-00:49:44 Can't connect to TCP port 20024 on<br>
> 127.0.0.1 [Permission denied]\n  at line 68 in file<br>
> /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm<br>
<br>
Strange. Can you try the more modern notation:<br>
<br>
@listen_sockets = (<br>
    # Release<br>
    '<a href="http://127.0.0.1:10024" rel="noreferrer" target="_blank">127.0.0.1:10024</a>',<br>
    '<a href="http://127.0.0.1:20024" rel="noreferrer" target="_blank">127.0.0.1:20024</a>',<br>
    '<a href="http://127.0.0.1:30024" rel="noreferrer" target="_blank">127.0.0.1:30024</a>',<br>
    "$MYHOME/amavisd.sock"<br>
    );<br>
<br>
p@rick<br>
<br>
<br>
-- <br>
[*] sys4 AG<br>
<br>
<a href="https://sys4.de" rel="noreferrer" target="_blank">https://sys4.de</a>, +49 (89) 30 90 46 64<br>
Schleißheimer Straße 26/MG,80333 München<br>
<br>
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263<br>
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief<br>
Aufsichtsratsvorsitzender: Florian Kirstein<br>
<br>
</blockquote></div>