<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-06-29 14:40 GMT+02:00 Alex <span dir="ltr"><<a href="mailto:mysqlstudent@gmail.com" target="_blank">mysqlstudent@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<div><div class="gmail-h5"><br>
On Thu, Jun 29, 2017 at 3:55 AM, Juan Orti Alcaine<br>
<<a href="mailto:j.orti.alcaine@gmail.com">j.orti.alcaine@gmail.com</a>> wrote:<br>
> 2017-06-29 3:17 GMT+02:00 Alex <<a href="mailto:mysqlstudent@gmail.com">mysqlstudent@gmail.com</a>>:<br>
>><br>
>> However, it still doesn't work. It still reports<br>
>><br>
>> (!)Avira SAVAPI av-scanner FAILED: run_av error: All attempts (1)<br>
>> failed connecting to savapi:/var/tmp/.savapi3\n<br>
>><br>
>> The savapi process is listening on that socket:<br>
>> # lsof<br>
>> /var/tmp/.savapi3<br>
>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME<br>
>> savapi 17290 amavis 9u unix 0xffff9268134efc00 0t0 6897894<br>
>> /var/tmp/.savapi3 type=STREAM<br>
>><br>
>> I'm running savapi as the amavis user with the following:<br>
>><br>
>> $ ./savapi --no-spv -N --config=savapi.conf --key-file=MYKEY.KEY<br>
>><br>
>> Is this how you're starting yours as well?<br>
>><br>
>> When I run status, I get the following:<br>
>><br>
>> # ./savapi --status<br>
>> SAVAPI service, running on the interface '/var/tmp/.savapi3:0', status<br>
>> check successful.<br>
>><br>
>> Any other ideas of what else I might be doing wrong?<br>
>><br>
>> Thanks,<br>
>> Alex<br>
><br>
><br>
> Is SELinux enforcing?<br>
><br>
> # getenforce<br>
><br>
> Please, show us "ls -lZ /var/tmp/.savapi3"<br>
><br>
> Creating the socket in /var/run/amavisd with the SELinux label<br>
> antivirus_var_run_t will probably fix your issue.<br>
<br>
</div></div>No, selinux disabled (security=0)<br>
<br>
# cat /proc/cmdline<br>
BOOT_IMAGE=/vmlinuz-4.11.5-<wbr>200.fc25.x86_64<br>
root=/dev/mapper/fedora--<wbr>server_honeynet-root ro<br>
<a href="http://rd.lvm.lv" rel="noreferrer" target="_blank">rd.lvm.lv</a>=fedora-server_<wbr>honeynet/swap<br>
<a href="http://rd.lvm.lv" rel="noreferrer" target="_blank">rd.lvm.lv</a>=fedora-server_<wbr>honeynet/root security=0 LANG=en_US.UTF-8<br>
<br>
# ls -lZ /var/tmp/.sav*<br>
srw-rw-rw- 1 amavis amavis ? 0 Jun 28 21:16 /var/tmp/.savapi3<br>
-rw------- 1 amavis amavis ? 0 Jun 28 21:16 /var/tmp/.savapi3.lock<br>
<br>
/var/tmp/.savapi3.0:<br>
total 0<br>
prw-r--r-- 1 amavis amavis ? 0 Jun 28 21:16 wpipe<br>
-rw------- 1 amavis amavis ? 0 Jun 28 21:16 wpipe.lock<br>
<br>
# egrep -v '^$|^#' /usr/local/savapi-sdk-linux_<wbr>glibc24_x86_64/bin/savapi.conf<br>
User amavis<br>
Group amavis<br>
KeyFile /usr/local/savapi-sdk-linux_<wbr>glibc24_x86_64/bin/MYKEY.KEY<br>
AveDir /usr/local/savapi-sdk-linux_<wbr>glibc24_x86_64/bin<br>
VdfDir /usr/local/savapi-sdk-linux_<wbr>glibc24_x86_64/bin<br>
ModulesDir /usr/local/savapi-sdk-linux_<wbr>glibc24_x86_64/modules<br>
DuplicateModules 1<br>
SocketPermissions 0666<br>
ListenAddress=unix:/var/tmp/.<wbr>savapi3<br>
ArchiveScan 1<br>
MailboxScan 1<br>
HeurLevel 2<br>
LogFileName /var/log/savapi.log<br>
ReportLevel 3<br>
SyslogFacility mail<br>
<br>
./savapi -N --config=savapi.conf --key-file=MYKEY.KEY<br>
<br>
Jun 29 08:30:08 catchme amavis[25066]: (25066-01) (!)connect to<br>
/var/tmp/.savapi3 failed, attempt #1: Can't connect to a UN<br>
IX socket /var/tmp/.savapi3: No such file or directory<br>
Jun 29 08:30:08 catchme amavis[25066]: (25066-01) (!)Avira-SAVAPI<br>
<span class="gmail-">av-scanner FAILED: run_av error: All attempts (1) failed<br>
connecting to savapi:/var/tmp/.savapi3\n<br>
<br>
</span><span class="gmail-"># lsof /var/tmp/.savapi3<br>
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME<br>
</span>savapi 18823 amavis 9u unix 0xffff926673dd0400 0t0 6992460<br>
/var/tmp/.savapi3 type=STREAM<br>
<br>
Thanks,<br>
Alex<br>
</blockquote></div><br><br><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Check the PrivateTmp directive in amavisd.service<br></div></div></div>