<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2017-06-29 17:39 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
</span><span class="">> Check the PrivateTmp directive in amavisd.service<br>
<br>
</span>It's set to "true".<br>
<br>
# grep -i tmp /etc/amavisd/amavisd.conf<br>
$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T<br>
$ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR, used by SA, etc.<br>
<br>
# ls -la ~amavis/tmp/<br>
total 12<br>
drwxr-x--- 3 amavis amavis 4096 Jun 29 11:27 .<br>
drwxr-x--- 8 amavis amavis 4096 Jun 28 21:11 ..<br>
<br>
$ ps axu|grep savapi<br>
amavis   18823  0.1  5.6 647576 462884 pts/2   Sl+  Jun28   1:29<br>
./savapi -N --config=savapi.conf --key-file=MYKEY.KEY<br>
<br>
Thanks,<br>
Alex<br>
</blockquote></div><br><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">​The PrivateTmp directive sets a file system namespace for the amavisd service, so the /tmp and /var/tmp that amavisd sees is not the same as other processes.<br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">My recommendation is to create the socket in the /run/amavisd​ directory.<br><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">If that's not an option, you can edit the service unit with:<br> <br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">​# systemctl edit --full amavisd.service<br><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Best regards.​</div><br></div></div>