If you plan to put clapf into a chroot jail make sure te create a /tmp directory there.
I recommend you put the spool directory to a separate disk for a better performance.
- start the filter application:
su av -c 'export TMPDIR=/opt/av; /path/to/clapf &'
The util/check_clapf.sh script is planned to run regularly to check whether clapf is running and restart it if necessary.
Note that clapf (I mean the clamav library) usually tries to unpack CVD files in /tmp
I suggest you to change this setting with the TMPDIR environment variable (as shown above)
Be careful that clapf needs enough space under $TMPDIR
"LibClamAV Error: Wrote 0 instead of 512 (/tmp/clamav-75668d156e64018e/main.db).
LibClamAV Error: cli_cvdload(): Can't unpack CVD file."
"cl_loaddbdir: CVD extraction failure."
that means clapf has no enough space under $TMPDIR
Notice the following messages in syslog (typically /var/log/maillog):
'clapf < VERSION > starting'
'Loaded 22548 signatures.'
'using /opt/av/tokens.cdb as spamicity file' (if you configured to use the antispam module)
Configure postfix:
1. add the following line to main.cf:
content_filter = smtp:[127.0.0.1]:10025
2. add the following lines to master.cf:
127.0.0.1:10026 inet n - n - 10 smtpd -o content_filter=
-o receive_override_options=no_address_mappings
3. restart postfix
· История версий и изменений clapf
Версия: 0.3.29 RC2
· The openssl/evp.h inclusion was removed.
· A shell script for adding users to the spam quarantine was added.
· A Content-Type related issue was fixed.
· A single token hash is used if there are very few phrases.
· Some signed-unsigned compile time warnings on the x64 platform were fixed.
· Counting junk characters is skipped if there are iso-8859-2 letters.
· SQL files were merged into db.sql.
· Описание и дополнения от редакторов и пользователей сайта