]>
git.proxmox.com Git - pmg-api.git/log
Dominik Csapak [Thu, 19 Oct 2017 12:36:19 +0000 (14:36 +0200)]
make ldap paging working again
the cookie can be defined but 0, so we need to check it like this
(the code is taken from the documentation of Net::LDAP::Control::Paged)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 19 Oct 2017 12:36:18 +0000 (14:36 +0200)]
add groupclass as parameter in LDAPConfig
since different LDAP servers have different objectclasses for groups,
we have to make them configureable
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 19 Oct 2017 12:36:17 +0000 (14:36 +0200)]
make accountattr a list, and get the defaults from the config
since different ldap servers use different objectclasses for users,
we have at least to use sAMAccountName and uid
also get the defaults from the LDAPConfig class instead of
hardcoding them a second time
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 19 Oct 2017 12:36:16 +0000 (14:36 +0200)]
add link relation to ldap users api call
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Thu, 19 Oct 2017 10:30:25 +0000 (12:30 +0200)]
PMG/Fetchmail.pm - correctly set/parse enable
Dietmar Maurer [Thu, 19 Oct 2017 10:29:13 +0000 (12:29 +0200)]
PMG/API2/Fetchmail.pm - update all values on write
Dietmar Maurer [Thu, 19 Oct 2017 09:08:20 +0000 (11:08 +0200)]
PMG/API2/Fetchmail.pm - implement read/write API
Dietmar Maurer [Thu, 19 Oct 2017 09:07:21 +0000 (11:07 +0200)]
white space cleanup
Dietmar Maurer [Wed, 18 Oct 2017 11:24:59 +0000 (13:24 +0200)]
PMG/Fetchmail.pm - fix quoting (allow ":")
Dietmar Maurer [Wed, 18 Oct 2017 11:17:17 +0000 (13:17 +0200)]
fetchmailrc.tt - use double quotes
Dietmar Maurer [Wed, 18 Oct 2017 11:01:10 +0000 (13:01 +0200)]
PMG/Fetchmail.pm - try to quote/unquote data correctly
As described in the fetchmailrc manual page.
Dietmar Maurer [Wed, 18 Oct 2017 09:31:57 +0000 (11:31 +0200)]
PMG/API2/Domains.pm - remove dead code
Dietmar Maurer [Wed, 18 Oct 2017 07:21:40 +0000 (09:21 +0200)]
PMG/Fetchmail.pm - use enable instead of disabled
Dietmar Maurer [Wed, 18 Oct 2017 06:21:10 +0000 (08:21 +0200)]
PMG/Fetchmail.pm - implement disabled property
Dietmar Maurer [Wed, 18 Oct 2017 05:51:39 +0000 (07:51 +0200)]
start implementation of fetchmail api
Dietmar Maurer [Wed, 18 Oct 2017 05:43:44 +0000 (07:43 +0200)]
remove unused HTTP::Status use
Dietmar Maurer [Tue, 17 Oct 2017 12:02:58 +0000 (14:02 +0200)]
PMG/Config.pm - use PMG::Cluster, remove dead code
Dietmar Maurer [Tue, 17 Oct 2017 12:00:15 +0000 (14:00 +0200)]
PMG/Fetchmail.pm - new class to read/write fetchmail configuration
Dominik Csapak [Mon, 16 Oct 2017 12:03:44 +0000 (14:03 +0200)]
implement remove attachments api
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 16 Oct 2017 12:03:43 +0000 (14:03 +0200)]
implement disclaimer api
and wrap 'value' with 'disclaimer'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 16 Oct 2017 12:03:42 +0000 (14:03 +0200)]
implement notification api
wrap the 'attach' parameter from 'O' to 1/0
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 16 Oct 2017 12:03:41 +0000 (14:03 +0200)]
implement mod field api
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Mon, 16 Oct 2017 10:11:11 +0000 (12:11 +0200)]
PMG/Fetchmail.pm - new dummy class
Dietmar Maurer [Mon, 16 Oct 2017 10:02:51 +0000 (12:02 +0200)]
PMG/API2/Services.pm - add fetchmail service
Dietmar Maurer [Fri, 13 Oct 2017 05:03:48 +0000 (07:03 +0200)]
PMG/API2/AccessControl.pm - auto-replace root@pmg with root@pam
Dominik Csapak [Thu, 12 Oct 2017 09:39:59 +0000 (11:39 +0200)]
implement virusfilter api
virusfilter has no options/parameters
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 12 Oct 2017 08:08:15 +0000 (10:08 +0200)]
limit the 'recent_mailcount' to the correct time
when the api call began an the end of a second, and the
database query at the beginning of the next second, while
a new mail was coming in, we would get one row to many, triggering
a result verification exception
with limiting the query to the given endtime also, we
loose at most a fraction of the second and the rowcount is
correct
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Wed, 11 Oct 2017 08:59:44 +0000 (10:59 +0200)]
PMG/Ticket.pm: use "$pmail@quarantine" for quarantine users
Dietmar Maurer [Wed, 11 Oct 2017 07:56:22 +0000 (09:56 +0200)]
implement new '@quarantine' realm
Dominik Csapak [Tue, 10 Oct 2017 13:09:00 +0000 (15:09 +0200)]
fix 'free' property of rootfs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 10 Oct 2017 13:08:59 +0000 (15:08 +0200)]
add 'recentreceivers' api count
this returns the top email receivers
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 10 Oct 2017 13:08:58 +0000 (15:08 +0200)]
add 'recent' statistics api call
this api call returns a time grouped series of mail type counts
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Mon, 9 Oct 2017 10:02:40 +0000 (12:02 +0200)]
PMG/API2/Subscription.pm - allow admin role to test subscription
Dietmar Maurer [Mon, 9 Oct 2017 09:52:57 +0000 (11:52 +0200)]
PMG/API2/SMTPWhitelist.pm - fix permissions
Dietmar Maurer [Mon, 9 Oct 2017 09:50:57 +0000 (11:50 +0200)]
fix ruledb permissions
Dietmar Maurer [Mon, 9 Oct 2017 09:33:38 +0000 (11:33 +0200)]
PMG/API2/MyNetworks.pm - fix permissions
Dietmar Maurer [Mon, 9 Oct 2017 09:29:28 +0000 (11:29 +0200)]
PMG/API2/Transport.pm - fix permissions
Dietmar Maurer [Mon, 9 Oct 2017 09:23:36 +0000 (11:23 +0200)]
PMG/API2/Domains.pm - fix permissions
Dietmar Maurer [Mon, 9 Oct 2017 09:14:02 +0000 (11:14 +0200)]
PMG/API2/Config.pm - fix permissions
Dietmar Maurer [Mon, 9 Oct 2017 09:11:57 +0000 (11:11 +0200)]
allow role 'admin' and 'audit' to read network configuration
But only root is allowed to change it.
Dietmar Maurer [Mon, 9 Oct 2017 09:03:26 +0000 (11:03 +0200)]
PMG/API2/Nodes.pm - fix syslog permissions
Dietmar Maurer [Mon, 9 Oct 2017 08:07:08 +0000 (10:07 +0200)]
PMG/API2/Tasks.pm - fix permissions
Dietmar Maurer [Mon, 9 Oct 2017 07:59:38 +0000 (09:59 +0200)]
PMG/API2/APT.pm - fix permissions
Dietmar Maurer [Mon, 9 Oct 2017 07:53:50 +0000 (09:53 +0200)]
PMG/API2/Services.pm - fix permisions
Dietmar Maurer [Mon, 9 Oct 2017 07:50:23 +0000 (09:50 +0200)]
PMG/API2/Nodes.pm - fix permissions for rrddata
Dietmar Maurer [Mon, 9 Oct 2017 07:45:47 +0000 (09:45 +0200)]
PMG/API2/Postfix.pm - allow audit role to view mail queue
Dietmar Maurer [Mon, 9 Oct 2017 07:44:04 +0000 (09:44 +0200)]
PMG/API2/MailTracker.pm - fix permissions
Dietmar Maurer [Fri, 6 Oct 2017 09:39:27 +0000 (11:39 +0200)]
get_template_vars: compute wl_bounce_relays, always include local fqdn
Backscatter filter should work out of the box as soon as pmg.spam.bounce_score > 0.
Dietmar Maurer [Thu, 5 Oct 2017 11:50:50 +0000 (13:50 +0200)]
do not depend on clamav-unofficial-sigs
Dietmar Maurer [Thu, 5 Oct 2017 11:44:10 +0000 (13:44 +0200)]
fix typo
Dietmar Maurer [Thu, 5 Oct 2017 11:34:20 +0000 (13:34 +0200)]
PMG/API2/MailTracker.pm - assume syslog data if UTF-8 encoded
Dietmar Maurer [Thu, 5 Oct 2017 10:16:17 +0000 (12:16 +0200)]
PMG/CLI/pmgqm.pm - simplify code
Dietmar Maurer [Thu, 5 Oct 2017 09:43:34 +0000 (11:43 +0200)]
PMG/CLI/pmgqm.pm - correctly set href in spam report
Dietmar Maurer [Thu, 5 Oct 2017 09:30:49 +0000 (11:30 +0200)]
PMG/CLI/pmgqm.pm: overwrite report style none when debug flag enabled or receiver specified
Dietmar Maurer [Thu, 5 Oct 2017 09:13:12 +0000 (11:13 +0200)]
PMG/CLI/pmgqm.pm - implement new status command
And do nothing in 'send' if reportyle is set to 'none'.
Dietmar Maurer [Thu, 5 Oct 2017 08:16:01 +0000 (10:16 +0200)]
PMG/CLI/pmgqm.pm - remove dead code
Dietmar Maurer [Wed, 4 Oct 2017 13:47:42 +0000 (15:47 +0200)]
PMG/SMTP.pm - stricter address parser
Do not allow '>' and spaces, try to parse whole lines skipping esmtp attributes.
Dietmar Maurer [Wed, 4 Oct 2017 09:48:00 +0000 (11:48 +0200)]
add test for language file
Dietmar Maurer [Tue, 3 Oct 2017 12:12:25 +0000 (14:12 +0200)]
PMG/API2/Nodes.pm - return subscription level in status API call
Dietmar Maurer [Tue, 3 Oct 2017 11:23:10 +0000 (13:23 +0200)]
install pmgsubscription
Dietmar Maurer [Fri, 29 Sep 2017 08:18:37 +0000 (10:18 +0200)]
PMG/API2/Subscription.pm - use new PVE::Subscription class
And implement pmgsubscription.
Dominik Csapak [Thu, 28 Sep 2017 11:44:18 +0000 (13:44 +0200)]
make spamscore a number
so that we get really a number from the api
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Fri, 29 Sep 2017 05:33:56 +0000 (07:33 +0200)]
PMG/API2/Quarantine.pm - allways set spamlevel
To make result verification happy.
Dietmar Maurer [Tue, 26 Sep 2017 11:09:35 +0000 (13:09 +0200)]
PMG/CLI/pmgversion.pm - corretly use PVE::CLIHandler
Dietmar Maurer [Tue, 26 Sep 2017 10:54:02 +0000 (12:54 +0200)]
vncshell api: implement upgrade
Dietmar Maurer [Tue, 26 Sep 2017 10:50:19 +0000 (12:50 +0200)]
add pmgupgrade binary
Dietmar Maurer [Tue, 26 Sep 2017 08:14:29 +0000 (10:14 +0200)]
implement API to delete all postfix queues
Dietmar Maurer [Mon, 25 Sep 2017 06:29:48 +0000 (08:29 +0200)]
add PMG/API2/Subscription.pm stub
Dietmar Maurer [Fri, 22 Sep 2017 09:30:18 +0000 (11:30 +0200)]
implement pmgversion
Dietmar Maurer [Fri, 22 Sep 2017 08:05:36 +0000 (10:05 +0200)]
add package update API (apt)
Dietmar Maurer [Fri, 22 Sep 2017 08:51:17 +0000 (10:51 +0200)]
use single http_proxy config
Dietmar Maurer [Fri, 22 Sep 2017 05:46:56 +0000 (07:46 +0200)]
new helper get_hwaddress
Dietmar Maurer [Thu, 21 Sep 2017 07:19:10 +0000 (09:19 +0200)]
MailTracker.pm - allow short filter parameters
To avoid confusing parameter verification errors.
Dietmar Maurer [Thu, 21 Sep 2017 06:40:20 +0000 (08:40 +0200)]
MailTracker.pm - return status message in 'changes' attribute
Also set a reasonable timeout and return up to 2000 entries.
Dietmar Maurer [Wed, 20 Sep 2017 10:15:08 +0000 (12:15 +0200)]
MailTracker.pm: fix time (syslog use local time)
Dietmar Maurer [Wed, 20 Sep 2017 08:00:31 +0000 (10:00 +0200)]
improve API docu
Dietmar Maurer [Wed, 20 Sep 2017 07:19:01 +0000 (09:19 +0200)]
PMG/API2/MailTracker.pm - add filters
Dietmar Maurer [Wed, 20 Sep 2017 06:21:55 +0000 (08:21 +0200)]
run parser as root, improve parser
Dietmar Maurer [Mon, 18 Sep 2017 07:59:21 +0000 (09:59 +0200)]
use new pmg-log-tracker syntax (-vv and multiple -q)
Dietmar Maurer [Fri, 15 Sep 2017 10:26:26 +0000 (12:26 +0200)]
add extra API entry point to get mail log details.
Dietmar Maurer [Fri, 15 Sep 2017 08:25:47 +0000 (10:25 +0200)]
add lock tracking API
Dominik Csapak [Wed, 13 Sep 2017 13:09:48 +0000 (15:09 +0200)]
add api calls to spamlevel, archivefilter and filenamefilter
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 13 Sep 2017 13:09:47 +0000 (15:09 +0200)]
implement necessary subs for spamlevel api
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 13 Sep 2017 13:09:46 +0000 (15:09 +0200)]
implement necessary subs for matchfilename api
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 13 Sep 2017 13:09:45 +0000 (15:09 +0200)]
do not use the __ sub
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 13 Sep 2017 13:09:44 +0000 (15:09 +0200)]
add regex test api call
for testing in the user interface, we use a timeout here, so that
an admin cannot block the daemon indefinitely
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Wed, 13 Sep 2017 07:41:39 +0000 (09:41 +0200)]
depend on pmg-log-tracker
Dietmar Maurer [Tue, 12 Sep 2017 07:54:37 +0000 (09:54 +0200)]
fix time for statistic data
use inteval start time instead of end time - This is less confusing when
user changes timespan granularity (form daily to hourly).
Dietmar Maurer [Tue, 12 Sep 2017 06:06:49 +0000 (08:06 +0200)]
round timespan to integer
old code was a NOP, because it uses float.
Dietmar Maurer [Tue, 12 Sep 2017 05:55:30 +0000 (07:55 +0200)]
remove dead code
Dietmar Maurer [Tue, 12 Sep 2017 05:12:25 +0000 (07:12 +0200)]
list mimetypes in API directory index
Dominik Csapak [Mon, 11 Sep 2017 11:23:07 +0000 (13:23 +0200)]
fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 11 Sep 2017 11:23:06 +0000 (13:23 +0200)]
make contenttype and matchfield available in the api
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 11 Sep 2017 11:23:05 +0000 (13:23 +0200)]
implement matchfield and contenttype api call methods
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 11 Sep 2017 11:23:04 +0000 (13:23 +0200)]
remove mimetype code from contenttypefilter module
we generate the list elsewhere now
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 11 Sep 2017 11:23:03 +0000 (13:23 +0200)]
add mimetypes api call
this gets us a server generated list of mimetypes for e.g. the
contenttype filter rule
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Mon, 11 Sep 2017 11:23:02 +0000 (13:23 +0200)]
use otype() sub instead of $self->{otype}
the sub otype() is always the one defined in the class we instantiated,
but $self->{otype} is set at creation and does not work if we do not set
it in the 'new' sub of the object (for example in ContentTypeFilter.pm)
so now we get the correct otype from the current class
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Mon, 11 Sep 2017 10:11:00 +0000 (12:11 +0200)]
add rbl count statistics API
Dietmar Maurer [Mon, 11 Sep 2017 09:55:40 +0000 (11:55 +0200)]
pmgpolicy: extract RBL count, store into database
Dietmar Maurer [Mon, 11 Sep 2017 07:38:58 +0000 (09:38 +0200)]
scan_journal_for_rbl_rejects: new helper to extract RBL rejects from journal