]> git.proxmox.com Git - pmg-api.git/log
pmg-api.git
7 years agopmg-smtp-filter: adjust size for fast exit (allow 400MB)
Dietmar Maurer [Fri, 17 Feb 2017 12:04:31 +0000 (13:04 +0100)]
pmg-smtp-filter: adjust size for fast exit (allow 400MB)

7 years agocorrectly use PMG::SMTPPrinter
Dietmar Maurer [Fri, 17 Feb 2017 12:01:05 +0000 (13:01 +0100)]
correctly use PMG::SMTPPrinter

7 years agoinstall pmg-smtp-filter.service
Dietmar Maurer [Fri, 17 Feb 2017 11:49:08 +0000 (12:49 +0100)]
install pmg-smtp-filter.service

7 years agoinstall pmg-smtp-filter
Dietmar Maurer [Fri, 17 Feb 2017 11:31:49 +0000 (12:31 +0100)]
install pmg-smtp-filter

7 years agouse texthash for /etc/postfix/transport
Dietmar Maurer [Fri, 17 Feb 2017 11:09:03 +0000 (12:09 +0100)]
use texthash for /etc/postfix/transport

7 years agoadd code to read/write transport map
Dietmar Maurer [Fri, 17 Feb 2017 11:04:09 +0000 (12:04 +0100)]
add code to read/write transport map

7 years agoimplement more configuration properies and templates
Dietmar Maurer [Fri, 17 Feb 2017 10:21:42 +0000 (11:21 +0100)]
implement more configuration properies and templates

7 years agodepend on clamav-freshclam and postfix
Dietmar Maurer [Thu, 16 Feb 2017 11:34:41 +0000 (12:34 +0100)]
depend on clamav-freshclam and postfix

7 years agonew helpers rewrite_dot_forward() and rewrite_config_postgres()
Dietmar Maurer [Thu, 16 Feb 2017 11:19:42 +0000 (12:19 +0100)]
new helpers rewrite_dot_forward() and rewrite_config_postgres()

7 years agopmgconfig: new CLI helper
Dietmar Maurer [Thu, 16 Feb 2017 11:08:00 +0000 (12:08 +0100)]
pmgconfig: new CLI helper

7 years agoPMG/Config.pm: new helper set()
Dietmar Maurer [Thu, 16 Feb 2017 09:25:20 +0000 (10:25 +0100)]
PMG/Config.pm: new helper set()

7 years agopmg-smtp-filter: avoid long sleep in testmode
Dietmar Maurer [Thu, 16 Feb 2017 08:14:53 +0000 (09:14 +0100)]
pmg-smtp-filter: avoid long sleep in testmode

use a retry loop instead.

7 years agoBCC.pm: correctly use PMG::Utils
Dietmar Maurer [Thu, 16 Feb 2017 07:58:30 +0000 (08:58 +0100)]
BCC.pm: correctly use PMG::Utils

7 years agopmg-smtp-filter: do not replace vars in RULE_INFO
Dietmar Maurer [Thu, 16 Feb 2017 07:46:09 +0000 (08:46 +0100)]
pmg-smtp-filter: do not replace vars in RULE_INFO

This never worked, because subst_vars is not recursive, so the result
depends on the hash sort order!

7 years agosubst_values: cleanup regex
Dietmar Maurer [Thu, 16 Feb 2017 07:41:19 +0000 (08:41 +0100)]
subst_values: cleanup regex

7 years agoanalyze_virus_clam: code cleanup
Dietmar Maurer [Thu, 16 Feb 2017 07:08:41 +0000 (08:08 +0100)]
analyze_virus_clam: code cleanup

7 years agouse template code to PMG::Config
Dietmar Maurer [Thu, 16 Feb 2017 06:58:25 +0000 (07:58 +0100)]
use template code to PMG::Config

7 years agoclamd.conf.in: remove unknown option AllowSupplementaryGroups
Dietmar Maurer [Wed, 15 Feb 2017 19:12:42 +0000 (20:12 +0100)]
clamd.conf.in: remove unknown option AllowSupplementaryGroups

7 years agoPMG::Config::get_config: iterate over all sections
Dietmar Maurer [Wed, 15 Feb 2017 18:49:52 +0000 (19:49 +0100)]
PMG::Config::get_config: iterate over all sections

7 years agoPMG/Config.pm: add more config properties, new helper rewrite_config_clam()
Dietmar Maurer [Wed, 15 Feb 2017 18:31:04 +0000 (19:31 +0100)]
PMG/Config.pm: add more config properties, new helper rewrite_config_clam()

7 years agoinstall clamav config templates
Dietmar Maurer [Wed, 15 Feb 2017 18:29:46 +0000 (19:29 +0100)]
install clamav config templates

7 years agotemplates/freshclam.conf.in: add template for freshclam config
Dietmar Maurer [Wed, 15 Feb 2017 18:28:28 +0000 (19:28 +0100)]
templates/freshclam.conf.in: add template for freshclam config

7 years agotemplates/clamd.conf.in: new template for clamd
Dietmar Maurer [Wed, 15 Feb 2017 18:04:02 +0000 (19:04 +0100)]
templates/clamd.conf.in: new template for clamd

7 years agoPMG/Config.pm: new helper rewrite_config_spam()
Dietmar Maurer [Wed, 15 Feb 2017 16:30:08 +0000 (17:30 +0100)]
PMG/Config.pm: new helper rewrite_config_spam()

7 years agoPMG::Utils::rewrite_config_file: pass pmg_cfg as first argument
Dietmar Maurer [Wed, 15 Feb 2017 16:29:06 +0000 (17:29 +0100)]
PMG::Utils::rewrite_config_file: pass pmg_cfg as first argument

7 years agoMakefile: install templates
Dietmar Maurer [Wed, 15 Feb 2017 16:27:55 +0000 (17:27 +0100)]
Makefile: install templates

7 years agotemplates/razor-agent.conf.in: template for razor2 config
Dietmar Maurer [Wed, 15 Feb 2017 16:11:56 +0000 (17:11 +0100)]
templates/razor-agent.conf.in: template for razor2 config

7 years agoPMG/Config.pm: add use_awl and use_razor options
Dietmar Maurer [Wed, 15 Feb 2017 15:57:42 +0000 (16:57 +0100)]
PMG/Config.pm: add use_awl and use_razor options

7 years agotemplates/v320.pre.in: add another SA config template
Dietmar Maurer [Wed, 15 Feb 2017 15:53:53 +0000 (16:53 +0100)]
templates/v320.pre.in: add another SA config template

7 years agotemplates/v310.pre.in: add anothe SA config template
Dietmar Maurer [Wed, 15 Feb 2017 15:51:36 +0000 (16:51 +0100)]
templates/v310.pre.in: add anothe SA config template

7 years agoPMG/Config.pm: add use_ocr options
Dietmar Maurer [Wed, 15 Feb 2017 15:45:25 +0000 (16:45 +0100)]
PMG/Config.pm: add use_ocr options

7 years agotemplates/init.pre.in: add another SA config template
Dietmar Maurer [Wed, 15 Feb 2017 15:41:45 +0000 (16:41 +0100)]
templates/init.pre.in: add another SA config template

7 years agoadd template for SA config local.cf
Dietmar Maurer [Wed, 15 Feb 2017 12:07:40 +0000 (13:07 +0100)]
add template for SA config local.cf

7 years agoPMG/Utils.pm: new helper rewrite_config_file()
Dietmar Maurer [Wed, 15 Feb 2017 11:54:27 +0000 (12:54 +0100)]
PMG/Utils.pm: new helper rewrite_config_file()

7 years agoPMG/Config.pm: new helper get_config()
Dietmar Maurer [Wed, 15 Feb 2017 11:52:37 +0000 (12:52 +0100)]
PMG/Config.pm: new helper get_config()

7 years agoadd more configuration properties, new helper get_section()
Dietmar Maurer [Wed, 15 Feb 2017 11:47:18 +0000 (12:47 +0100)]
add more configuration properties, new helper get_section()

7 years agofix expected test output
Dietmar Maurer [Wed, 15 Feb 2017 09:35:46 +0000 (10:35 +0100)]
fix expected test output

7 years agoadd application/x-ms-dos-executable for dangerous content filter
Dietmar Maurer [Wed, 15 Feb 2017 09:34:12 +0000 (10:34 +0100)]
add application/x-ms-dos-executable for dangerous content filter

7 years agoadd NEWS file
Dietmar Maurer [Wed, 15 Feb 2017 09:32:52 +0000 (10:32 +0100)]
add NEWS file

7 years agoAccept.pm: fix short_descr
Dietmar Maurer [Wed, 15 Feb 2017 09:18:56 +0000 (10:18 +0100)]
Accept.pm: fix short_descr

7 years agobetter test output: call diff with option -u
Dietmar Maurer [Wed, 15 Feb 2017 09:10:18 +0000 (10:10 +0100)]
better test output: call diff with option -u

7 years agoMatchField.pm: call correct constructor
Dietmar Maurer [Wed, 15 Feb 2017 09:09:24 +0000 (10:09 +0100)]
MatchField.pm: call correct constructor

7 years agopmg-smtp-filter: create spool directories at startup
Dietmar Maurer [Wed, 15 Feb 2017 07:34:55 +0000 (08:34 +0100)]
pmg-smtp-filter: create spool directories at startup

7 years agodo not use taint mode (revert previous commit)
Dietmar Maurer [Wed, 15 Feb 2017 07:33:25 +0000 (08:33 +0100)]
do not use taint mode (revert previous commit)

Too many side effects ...

7 years agoPMG/Utils: use trim from PVE::Tools
Dietmar Maurer [Wed, 15 Feb 2017 07:31:47 +0000 (08:31 +0100)]
PMG/Utils: use trim from PVE::Tools

7 years agocorrectly quote regex in dangerous files rules
Dietmar Maurer [Wed, 15 Feb 2017 07:29:54 +0000 (08:29 +0100)]
correctly quote regex in dangerous files rules

7 years agoPMG/Utils.pm: use File::Basename
Dietmar Maurer [Wed, 15 Feb 2017 07:18:05 +0000 (08:18 +0100)]
PMG/Utils.pm: use File::Basename

7 years agoMailQueue: use new helper from PMG::Utils
Dietmar Maurer [Wed, 15 Feb 2017 07:15:22 +0000 (08:15 +0100)]
MailQueue: use new helper from PMG::Utils

7 years agonew helper add_ct_marks
Dietmar Maurer [Wed, 15 Feb 2017 07:14:21 +0000 (08:14 +0100)]
new helper add_ct_marks

7 years agouse $spooldir from MailQueue class
Dietmar Maurer [Wed, 15 Feb 2017 07:09:57 +0000 (08:09 +0100)]
use $spooldir from MailQueue class

7 years agonew helper create_sppoldirs, export $spooldir
Dietmar Maurer [Wed, 15 Feb 2017 07:09:00 +0000 (08:09 +0100)]
new helper create_sppoldirs, export $spooldir

7 years agoPMG/SMTP.pm: correctly log error messages
Dietmar Maurer [Wed, 15 Feb 2017 06:49:56 +0000 (07:49 +0100)]
PMG/SMTP.pm: correctly log error messages

7 years agocleanup amd use PMG/RuleDB/ArchiveFilter.pm
Dietmar Maurer [Wed, 15 Feb 2017 06:15:09 +0000 (07:15 +0100)]
cleanup amd use PMG/RuleDB/ArchiveFilter.pm

7 years agoimport PMG/RuleDB/ArchiveFilter.pm
Dietmar Maurer [Wed, 15 Feb 2017 06:05:19 +0000 (07:05 +0100)]
import PMG/RuleDB/ArchiveFilter.pm

7 years agopmg-smtp-filter: use perl taint mode
Dietmar Maurer [Wed, 15 Feb 2017 05:47:37 +0000 (06:47 +0100)]
pmg-smtp-filter: use perl taint mode

7 years agoinitialize database in postinst script
Dietmar Maurer [Wed, 15 Feb 2017 05:44:46 +0000 (06:44 +0100)]
initialize database in postinst script

7 years agopmgdb: implement statistic database update
Dietmar Maurer [Wed, 15 Feb 2017 05:37:04 +0000 (06:37 +0100)]
pmgdb: implement statistic database update

7 years agoLDAPCache.pm: fix argument passing
Dietmar Maurer [Tue, 14 Feb 2017 16:15:32 +0000 (17:15 +0100)]
LDAPCache.pm: fix argument passing

7 years agouse pmg-smtp-filter instead of 'proxprox'
Dietmar Maurer [Tue, 14 Feb 2017 16:06:36 +0000 (17:06 +0100)]
use pmg-smtp-filter instead of 'proxprox'

7 years agocleanup and install PMG/Statistic.pm
Dietmar Maurer [Tue, 14 Feb 2017 15:58:51 +0000 (16:58 +0100)]
cleanup and install PMG/Statistic.pm

7 years agoimport Proxmox::Statistic class
Dietmar Maurer [Tue, 14 Feb 2017 15:53:38 +0000 (16:53 +0100)]
import Proxmox::Statistic class

7 years agocleanup
Dietmar Maurer [Tue, 14 Feb 2017 15:52:46 +0000 (16:52 +0100)]
cleanup

remove old code for commtouch and avira

7 years agocleanup and install SMTP server class
Dietmar Maurer [Tue, 14 Feb 2017 15:44:23 +0000 (16:44 +0100)]
cleanup and install SMTP server class

7 years agoimport Proxmox::SMTP class
Dietmar Maurer [Tue, 14 Feb 2017 15:33:12 +0000 (16:33 +0100)]
import Proxmox::SMTP class

7 years agoUnpack: use newer mime types
Dietmar Maurer [Tue, 14 Feb 2017 15:28:04 +0000 (16:28 +0100)]
Unpack: use newer mime types

7 years agofix typo
Dietmar Maurer [Tue, 14 Feb 2017 11:03:54 +0000 (12:03 +0100)]
fix typo

7 years agocleanup and install PMG/Unpack.pm
Dietmar Maurer [Tue, 14 Feb 2017 11:02:02 +0000 (12:02 +0100)]
cleanup and install PMG/Unpack.pm

7 years agodepend on tnef
Dietmar Maurer [Tue, 14 Feb 2017 10:56:24 +0000 (11:56 +0100)]
depend on tnef

7 years agodepend on p7zip-full
Dietmar Maurer [Tue, 14 Feb 2017 10:55:17 +0000 (11:55 +0100)]
depend on p7zip-full

7 years agonew helper magic_mime_type_for_file()
Dietmar Maurer [Tue, 14 Feb 2017 10:47:49 +0000 (11:47 +0100)]
new helper magic_mime_type_for_file()

7 years agodepend on libarchive-perl
Dietmar Maurer [Tue, 14 Feb 2017 10:42:49 +0000 (11:42 +0100)]
depend on libarchive-perl

7 years agodepend on libarchive-zip-perl
Dietmar Maurer [Tue, 14 Feb 2017 10:31:14 +0000 (11:31 +0100)]
depend on libarchive-zip-perl

7 years agodepend on libcompress-bzip2-perl
Dietmar Maurer [Tue, 14 Feb 2017 10:27:20 +0000 (11:27 +0100)]
depend on libcompress-bzip2-perl

7 years agoimport roxmox::Unpack class
Dietmar Maurer [Tue, 14 Feb 2017 10:23:08 +0000 (11:23 +0100)]
import roxmox::Unpack class

7 years agopmg-smtp-filter: add missing 'use Net::SMTP'
Dietmar Maurer [Tue, 14 Feb 2017 10:04:46 +0000 (11:04 +0100)]
pmg-smtp-filter: add missing 'use Net::SMTP'

7 years agodepend on libfile-sync-perl
Dietmar Maurer [Tue, 14 Feb 2017 10:00:05 +0000 (11:00 +0100)]
depend on libfile-sync-perl

7 years agoLDAPSet.pm: fix typo
Dietmar Maurer [Tue, 14 Feb 2017 09:59:39 +0000 (10:59 +0100)]
LDAPSet.pm: fix typo

7 years agoinstall PMG::MailQueue class
Dietmar Maurer [Tue, 14 Feb 2017 09:56:52 +0000 (10:56 +0100)]
install PMG::MailQueue class

7 years agocleanup PMG::MailQueue class
Dietmar Maurer [Tue, 14 Feb 2017 09:54:34 +0000 (10:54 +0100)]
cleanup PMG::MailQueue class

7 years agoimport MailQueue.pm
Dietmar Maurer [Tue, 14 Feb 2017 09:46:16 +0000 (10:46 +0100)]
import MailQueue.pm

7 years agoinstall missing files
Dietmar Maurer [Tue, 14 Feb 2017 09:45:17 +0000 (10:45 +0100)]
install missing files

7 years agoimprove PMG::Config class, add more configuration properties
Dietmar Maurer [Tue, 14 Feb 2017 09:40:23 +0000 (10:40 +0100)]
improve PMG::Config class, add more configuration properties

7 years agonew helper analyze_virus()
Dietmar Maurer [Tue, 14 Feb 2017 09:36:35 +0000 (10:36 +0100)]
new helper analyze_virus()

7 years agodepend on clamav-daemon
Dietmar Maurer [Tue, 14 Feb 2017 09:06:08 +0000 (10:06 +0100)]
depend on clamav-daemon

7 years agoadd cluster.conf parser/writer
Dietmar Maurer [Tue, 14 Feb 2017 06:53:44 +0000 (07:53 +0100)]
add cluster.conf parser/writer

7 years agodepend on libnet-server-perl
Dietmar Maurer [Tue, 14 Feb 2017 05:40:16 +0000 (06:40 +0100)]
depend on libnet-server-perl

7 years agorenamed: bin/proxprox.pl -> bin/pmg-smtp-filter
Dietmar Maurer [Tue, 14 Feb 2017 05:32:47 +0000 (06:32 +0100)]
renamed: bin/proxprox.pl -> bin/pmg-smtp-filter

use a better name

7 years agoimport proxprox.pl from old repository
Dietmar Maurer [Tue, 14 Feb 2017 05:31:15 +0000 (06:31 +0100)]
import proxprox.pl from old repository

7 years agoadd new config class PMG::Config::Mail
Dietmar Maurer [Tue, 14 Feb 2017 05:24:40 +0000 (06:24 +0100)]
add new config class PMG::Config::Mail

7 years agoadd dummy class for new configuration file pmg.conf
Dietmar Maurer [Mon, 13 Feb 2017 13:51:30 +0000 (14:51 +0100)]
add dummy class for new configuration file pmg.conf

We want to use PVE::SectionConfig instead of the old hack.

7 years agodebian/postinst: add triggered action
Dietmar Maurer [Mon, 13 Feb 2017 12:55:36 +0000 (13:55 +0100)]
debian/postinst: add triggered action

7 years agoimprove ruledb API
Dietmar Maurer [Fri, 3 Feb 2017 11:20:23 +0000 (12:20 +0100)]
improve ruledb API

7 years agoadd ruledb API
Dietmar Maurer [Fri, 3 Feb 2017 10:43:25 +0000 (11:43 +0100)]
add ruledb API

7 years agopmgdb: use missing classes
Dietmar Maurer [Fri, 3 Feb 2017 09:58:40 +0000 (10:58 +0100)]
pmgdb: use missing classes

7 years agoimprove Makefile
Dietmar Maurer [Fri, 3 Feb 2017 09:58:22 +0000 (10:58 +0100)]
improve Makefile

7 years agoadd expected output for regression test
Dietmar Maurer [Fri, 3 Feb 2017 09:23:34 +0000 (10:23 +0100)]
add expected output for regression test

7 years agomore tests
Dietmar Maurer [Fri, 3 Feb 2017 09:18:53 +0000 (10:18 +0100)]
more tests

7 years agoadd some regression tests
Dietmar Maurer [Fri, 3 Feb 2017 09:08:13 +0000 (10:08 +0100)]
add some regression tests

7 years agoadd LDAPSet.pm class
Dietmar Maurer [Fri, 3 Feb 2017 08:48:16 +0000 (09:48 +0100)]
add LDAPSet.pm class

not working because of missing system configuration classes

7 years agoadd LDAPCache.pm
Dietmar Maurer [Fri, 3 Feb 2017 08:40:45 +0000 (09:40 +0100)]
add LDAPCache.pm