Hi,
I was wondering if someone else has accomplished installing another antivirus besides avast. I was reading that proxmox does not support another antivirus. But I was dabbling around and i feel like im somewhat close. The before filter i was using scrolloutf1 which i was able to install bitdefender. The issue was that Proxmox did not have amavis. So i installed it.
These were the steps i did
then edited
vi /etc/amavis/conf.d/15-content_filter_mode
then added the user to clamav
then added content filter to the master
then edited the master.cf and added this
then restarted postfix
after that i installed bitdefender
then installed
then added the user
when i check the logs on proxmox i get this
any ideas?
Thank you
I was wondering if someone else has accomplished installing another antivirus besides avast. I was reading that proxmox does not support another antivirus. But I was dabbling around and i feel like im somewhat close. The before filter i was using scrolloutf1 which i was able to install bitdefender. The issue was that Proxmox did not have amavis. So i installed it.
These were the steps i did
Code:
apt-get install amavisd-new
then edited
vi /etc/amavis/conf.d/15-content_filter_mode
Code:
use strict;
# You can modify this file to re-enable SPAM checking through spamassassin
# and to re-enable antivirus checking.
#
# Default antivirus checking mode
# Uncomment the two lines below to enable it back
#
@bypass_virus_checks_maps = (
\%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
#
# Default SPAM checking mode
# Uncomment the two lines below to enable it back
#
@bypass_spam_checks_maps = (
\%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
1; # insure a defined return
then added the user to clamav
Code:
adduser clamav amavis
/etc/init.d/amavis restart
/etc/init.d/clamav-daemon restart
then added content filter to the master
Code:
postconf -e 'content_filter = amavis:[127.0.0.1]:10024'
postconf -e 'receive_override_options = no_address_mappings'
then edited the master.cf and added this
Code:
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
after that i installed bitdefender
Code:
wget http://download.bitdefender.com/SMB/Workstation_Security_and_Management/BitDefender_Antivirus_Scanner_for_Unices/Unix/Current/EN_FR_BR_RO/Linux/BitDefender-Antivirus-Scanner-7.7-1-linux-amd64.deb.run
then installed
Code:
test -f /tmp/BitDefender-Antivirus-Scanner-7.7-1-linux-amd64.deb.run && /bin/bash /tmp/BitDefender-Antivirus-Scanner-7.7-1-linux-amd64.deb.run
then added the user
Code:
sudo adduser bitdefender amavis
sudo adduser amavis bitdefender
/etc/init.d/amavis restart
when i check the logs on proxmox i get this
Code:
Nov 17 16:23:17 pmg amavis[4964]: Starting amavisd: head: cannot open '/etc/mailname' for reading: No such file or directory
Nov 17 16:23:17 pmg amavis[4971]: starting. /usr/sbin/amavisd-new at pmg.casa.local amavisd-new-2.10.1 (20141025), Unicode aware, LC_ALL="C", LANG="en_US.UTF-8"
Nov 17 16:23:17 pmg amavis[4980]: (!)Net::Server: 2018/11/17-16:23:17 Can't connect to TCP port 10024 on 127.0.0.1 [Address already in use]\n at line 68 in file /usr/share/perl5/Net/Server/Proto/TCP.pm
Nov 17 16:23:17 pmg amavis[4964]: amavisd-new.
any ideas?
Thank you