]>
git.proxmox.com Git - pmg-api.git/log
Dietmar Maurer [Fri, 17 Nov 2017 10:29:12 +0000 (11:29 +0100)]
debian/postinst - fix postgres service name (postgresql.service)
Dietmar Maurer [Fri, 17 Nov 2017 10:27:38 +0000 (11:27 +0100)]
debian/postinst - simplify code
Dietmar Maurer [Fri, 17 Nov 2017 10:20:58 +0000 (11:20 +0100)]
bump version to 5.0-11
Dietmar Maurer [Fri, 17 Nov 2017 10:19:32 +0000 (11:19 +0100)]
do not use #DEBHELPER# macro inside comment
Dietmar Maurer [Fri, 17 Nov 2017 08:31:47 +0000 (09:31 +0100)]
bump version to 5.0-10
Dietmar Maurer [Fri, 17 Nov 2017 08:30:30 +0000 (09:30 +0100)]
debian/postinst - do not skip service setup in /proxmox_install_mode
Dietmar Maurer [Thu, 16 Nov 2017 11:01:34 +0000 (12:01 +0100)]
avoid warning when transport file does not exist
Dietmar Maurer [Tue, 14 Nov 2017 12:08:54 +0000 (13:08 +0100)]
bump version to 5.0-9
Dietmar Maurer [Tue, 14 Nov 2017 12:04:13 +0000 (13:04 +0100)]
debian/pmgbanner.service - setup login banner
Dietmar Maurer [Tue, 14 Nov 2017 11:46:12 +0000 (12:46 +0100)]
templates/fetchmailrc.tt - fix syntax
Dietmar Maurer [Tue, 14 Nov 2017 11:27:28 +0000 (12:27 +0100)]
PMG/API2/APT.pm - fix package names
Dietmar Maurer [Tue, 14 Nov 2017 11:18:47 +0000 (12:18 +0100)]
PMG/Service/pmgproxy.pm - fix package names
Dietmar Maurer [Tue, 14 Nov 2017 10:51:44 +0000 (11:51 +0100)]
rename package to pmg-api, bump version to 5.0-8
Dietmar Maurer [Tue, 14 Nov 2017 07:30:46 +0000 (08:30 +0100)]
bump version to 5.0-7
Dietmar Maurer [Tue, 14 Nov 2017 06:13:09 +0000 (07:13 +0100)]
PMG/API2/SMTPWhitelist.pm - update postfix files after modifications
Dietmar Maurer [Tue, 14 Nov 2017 05:40:43 +0000 (06:40 +0100)]
PMG/API2/SMTPWhitelist.pm - call reload_ruledb when removing an object
Dietmar Maurer [Mon, 13 Nov 2017 11:20:02 +0000 (12:20 +0100)]
PMG/Backup.pm - restore: keep directory /etc/pmg
Else we confuse our INotify watch.
Dietmar Maurer [Mon, 13 Nov 2017 10:31:08 +0000 (11:31 +0100)]
PMG/API2/Cluster.pm - use PMG::MailQueue::create_spooldirs
Because PMG::Cluster::create_needed_dirs() was removed long time ago.
Dietmar Maurer [Mon, 13 Nov 2017 10:14:06 +0000 (11:14 +0100)]
PMG/API2/SMTPWhitelist.pm - fix delete object
We need to run 'proctected' to gain database permission.
Dietmar Maurer [Mon, 13 Nov 2017 09:52:17 +0000 (10:52 +0100)]
PMG/Backup.pm - fix ruledb restore
Dietmar Maurer [Mon, 13 Nov 2017 07:51:28 +0000 (08:51 +0100)]
PMG/API2/Cluster.pm - new option list_single_node
To simplify GUI dashboard.
Dietmar Maurer [Mon, 13 Nov 2017 06:47:40 +0000 (07:47 +0100)]
PMG/API2/Cluster.pm - fix permissions
Allow role qmanager and audit to read cluster status
Dietmar Maurer [Mon, 13 Nov 2017 06:10:49 +0000 (07:10 +0100)]
PMG/ClusterConfig.pm - minor code cleanup
Dietmar Maurer [Fri, 10 Nov 2017 07:45:54 +0000 (08:45 +0100)]
PMG/Backup.pm - restore /etc/mail/spamassassin/custom.cf
Dietmar Maurer [Fri, 10 Nov 2017 07:37:10 +0000 (08:37 +0100)]
PMG/Backup.pm - do not store system users secrets in backup
Dietmar Maurer [Fri, 10 Nov 2017 07:22:55 +0000 (08:22 +0100)]
PMG/API2/Backup.pm - allow more flexible file names
Dietmar Maurer [Fri, 10 Nov 2017 06:42:20 +0000 (07:42 +0100)]
PMG/API2/Backup.pm - include statistic database by default
Dietmar Maurer [Fri, 10 Nov 2017 06:37:21 +0000 (07:37 +0100)]
PMG/API2/Backup.pm - code cleanup
Dietmar Maurer [Fri, 10 Nov 2017 05:34:48 +0000 (06:34 +0100)]
PMG/API2/Backup.pm - add timestamp to backup file
Dietmar Maurer [Thu, 9 Nov 2017 09:35:33 +0000 (10:35 +0100)]
PMG/API2/Backup.pm - implement restore
Dietmar Maurer [Thu, 9 Nov 2017 09:34:14 +0000 (10:34 +0100)]
PMG/API2/Cluster.pm - fix rewrite config, move db_service_list to PMG::Utils
Dietmar Maurer [Thu, 9 Nov 2017 07:09:20 +0000 (08:09 +0100)]
change backup dir to /var/lib/pmg/backup
Dietmar Maurer [Thu, 9 Nov 2017 06:23:39 +0000 (07:23 +0100)]
PMG/API2/Backup.pm - allow to download backup files
Dietmar Maurer [Tue, 7 Nov 2017 06:31:08 +0000 (07:31 +0100)]
PMG/API2/Backup.pm - implement delete
Dietmar Maurer [Tue, 7 Nov 2017 05:13:02 +0000 (06:13 +0100)]
insert /nodes/<name>/backup API entry point
Dietmar Maurer [Mon, 6 Nov 2017 11:47:13 +0000 (12:47 +0100)]
PMG/API2/Backup.pm - implement list backups
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