Amavisd and Avira savapi

Alex mysqlstudent at gmail.com
Fri Jun 30 01:12:56 CEST 2017


Hi,

>> > Check the PrivateTmp directive in amavisd.service
>>
>> It's set to "true".
>>
>> # grep -i tmp /etc/amavisd/amavisd.conf
>> $TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T
>> $ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR, used by SA,
>> etc.
>>
>> # ls -la ~amavis/tmp/
>> total 12
>> drwxr-x--- 3 amavis amavis 4096 Jun 29 11:27 .
>> drwxr-x--- 8 amavis amavis 4096 Jun 28 21:11 ..
>>
>> $ ps axu|grep savapi
>> amavis   18823  0.1  5.6 647576 462884 pts/2   Sl+  Jun28   1:29
>> ./savapi -N --config=savapi.conf --key-file=MYKEY.KEY
>>
>> Thanks,
>> Alex
>
>
> 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.
> My recommendation is to create the socket in the /run/amavisd directory.
>
> If that's not an option, you can edit the service unit with:
>
> # systemctl edit --full amavisd.service

That was effectively what the problem was, thanks. For the archives,
the following are the working instructions for configuring Avira
SAVAPI with fedora25 and amavisd-new-2.11.0

amavisd.conf:
  ['Avira-SAVAPI',
    \&ask_daemon, ["*", 'savapi:/var/run/amavisd/savapi3', '11536'],
    qr/^(200|210) /m,  qr/^(310|420|319)/m,
    qr/^(?:310|420)[,\s]*(?:.* <<< )?(.+?)(?: ; |$)/m ],


# egrep -v '^$|^#' /usr/local/savapi-sdk-linux_glibc24_x86_64/bin/savapi.conf
User amavis
Group amavis
KeyFile /usr/local/savapi-sdk-linux_glibc24_x86_64/bin/HBEDV.KEY
AveDir /usr/local/savapi-sdk-linux_glibc24_x86_64/bin
VdfDir /usr/local/savapi-sdk-linux_glibc24_x86_64/bin
ModulesDir /usr/local/savapi-sdk-linux_glibc24_x86_64/modules
DuplicateModules 1
SocketPermissions 0666
ListenAddress=unix:/var/run/amavisd/savapi3
ArchiveScan 1
MailboxScan 1
HeurLevel 2
LogFileName /var/log/savapi.log
ReportLevel 3
SyslogFacility mail

# ps axu|grep savapi
amavis   32681  3.5  5.6 647576 462936 ?       Sl   19:04   0:14
./savapi -N --config=savapi.conf --key-file=MYKEY.KEY

Thanks for everyone's help.


More information about the amavis-users mailing list