Update README.md (#1)
* Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md
This commit is contained in:
37
README.md
37
README.md
@@ -3,3 +3,40 @@ A python daemon to perform virus scans with uvscan (McAfee) over TCP socket, mai
|
|||||||
|
|
||||||
## Developer information
|
## Developer information
|
||||||
Everyone who wants to improve or extend this project is very welcome.
|
Everyone who wants to improve or extend this project is very welcome.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
git clone https://github.com/spacefreak86/uvscand
|
||||||
|
cd uvscand
|
||||||
|
python3 setup.py build
|
||||||
|
python3 setup.py install
|
||||||
|
|
||||||
|
cp docs/uvscand.conf /etc/
|
||||||
|
|
||||||
|
cat << 'EOF'>> /etc/systemd/system/uvscand.service
|
||||||
|
[Unit]
|
||||||
|
Description=uvscand Service
|
||||||
|
After=multi-user.target
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
ExecStart=/usr/bin/python3 /usr/local/bin/uvscand
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
|
||||||
|
systemctl restart uvscand
|
||||||
|
systemctl status uvscand
|
||||||
|
systemctl enable uvscand
|
||||||
|
|
||||||
|
cat << 'EOF'>> /etc/rspamd/local.d/antivirus.conf
|
||||||
|
uvscan {
|
||||||
|
scan_mime_parts = true;
|
||||||
|
scan_text_mime = true;
|
||||||
|
scan_image_mime = true;
|
||||||
|
type = "clamav";
|
||||||
|
symbol = "MCAFEE_VIRUS";
|
||||||
|
servers = "127.0.0.1:10060";
|
||||||
|
action = "reject";
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
systemctl restart rspamd
|
||||||
|
|||||||
Reference in New Issue
Block a user