]>
git.proxmox.com Git - pmg-api.git/log
Dietmar Maurer [Mon, 6 Nov 2017 07:58:13 +0000 (08:58 +0100)]
PMG/Backup.pm - implement backup
Dietmar Maurer [Thu, 2 Nov 2017 10:05:22 +0000 (11:05 +0100)]
PMG/API2/Backup.pm - implement dummy backup API
and the associated CLI tools 'pmgbackup';
Dietmar Maurer [Fri, 27 Oct 2017 12:42:04 +0000 (14:42 +0200)]
permission fix fro ClamAV and SpamAssassin API
Dominik Csapak [Fri, 27 Oct 2017 11:15:34 +0000 (13:15 +0200)]
correct child link for the clamav api
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 27 Oct 2017 11:15:33 +0000 (13:15 +0200)]
add spamassassin update api calls
/nodes/NODE/spamassassin/rules
GET
gets a list of channels (currently only updates.spamassassin.org)
with its update status/version
POST
updates the rules via 'sa-update'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 25 Oct 2017 12:27:51 +0000 (14:27 +0200)]
update spamassassin rules daily
after the update, restart the pmg-smtp-filter
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 25 Oct 2017 12:38:57 +0000 (14:38 +0200)]
also load SpamAssassin descriptions from local dir
SpamAssassin updates into
/var/lib/spamassassin/VERSION/CHANNEL/
by default, so we should get the descriptions also from there
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Tue, 24 Oct 2017 08:57:43 +0000 (10:57 +0200)]
correctly update /etc/default/fetchmail and /etc/fetchmailrc symlink
Dietmar Maurer [Tue, 24 Oct 2017 07:27:10 +0000 (09:27 +0200)]
PMG/Cluster.pm - correctly update fetchmailrc
Dietmar Maurer [Tue, 24 Oct 2017 06:34:56 +0000 (08:34 +0200)]
depend on vncterm
Dietmar Maurer [Tue, 24 Oct 2017 06:32:01 +0000 (08:32 +0200)]
bump version to 5.0-6
Dominik Csapak [Mon, 23 Oct 2017 10:20:29 +0000 (12:20 +0200)]
add date to the mail link for the verbose report
we will use this for showing the quarantineview for the correct time
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Mon, 23 Oct 2017 08:31:26 +0000 (10:31 +0200)]
PMG/API2/Fetchmail.pm - implement create
Dietmar Maurer [Mon, 23 Oct 2017 07:18:58 +0000 (09:18 +0200)]
PMG/API2/Fetchmail.pm - implement delete
Dominik Csapak [Thu, 19 Oct 2017 12:36:20 +0000 (14:36 +0200)]
add new LDAP group member api call
in order to avoid duplication of a lot of code,
rework the list_users and list_group subs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
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>