]> git.proxmox.com Git - pmg-api.git/log
pmg-api.git
7 years agomove trasport_maps to hash:/etc/pmg/transport
Dietmar Maurer [Sun, 26 Feb 2017 07:30:05 +0000 (08:30 +0100)]
move trasport_maps to hash:/etc/pmg/transport

7 years agoallow comment for relay domains
Dietmar Maurer [Sat, 25 Feb 2017 15:52:39 +0000 (16:52 +0100)]
allow comment for relay domains

7 years agowrite_pmg_domains: use correct format for postfix hash table
Dietmar Maurer [Sat, 25 Feb 2017 15:13:45 +0000 (16:13 +0100)]
write_pmg_domains: use correct format for postfix hash table

7 years agouse hash:/etc/pmg/domains
Dietmar Maurer [Sat, 25 Feb 2017 14:58:17 +0000 (15:58 +0100)]
use hash:/etc/pmg/domains

so that postfix automatically detect changes

7 years agorun postmap after updating domains file
Dietmar Maurer [Sat, 25 Feb 2017 14:54:30 +0000 (15:54 +0100)]
run postmap after updating domains file

7 years agonew helper run_postmap
Dietmar Maurer [Sat, 25 Feb 2017 14:48:12 +0000 (15:48 +0100)]
new helper run_postmap

7 years agoPMG/API2/Domains: fix API schema
Dietmar Maurer [Sat, 25 Feb 2017 13:30:41 +0000 (14:30 +0100)]
PMG/API2/Domains: fix API schema

7 years agoverifyreceivers: improve description
Dietmar Maurer [Sat, 25 Feb 2017 08:51:06 +0000 (09:51 +0100)]
verifyreceivers: improve description

7 years agochange option verifyreceivers into a string enum
Dietmar Maurer [Sat, 25 Feb 2017 08:48:26 +0000 (09:48 +0100)]
change option verifyreceivers into a string enum

7 years agomail.smarthost need to be an 'address'
Dietmar Maurer [Fri, 24 Feb 2017 08:46:16 +0000 (09:46 +0100)]
mail.smarthost need to be an 'address'

7 years agoallow mail.relay to be a DNS name
Dietmar Maurer [Fri, 24 Feb 2017 08:28:33 +0000 (09:28 +0100)]
allow mail.relay to be a DNS name

7 years agomail.relay should be an ip address
Dietmar Maurer [Fri, 24 Feb 2017 08:19:06 +0000 (09:19 +0100)]
mail.relay should be an ip address

7 years agoimprove description
Dietmar Maurer [Thu, 23 Feb 2017 15:59:17 +0000 (16:59 +0100)]
improve description

7 years agoPMG::Config::Mail: add int_port and ext_port settings
Dietmar Maurer [Thu, 23 Feb 2017 15:36:33 +0000 (16:36 +0100)]
PMG::Config::Mail: add int_port and ext_port settings

7 years agopostfix master.cf: listen on all addresses
Dietmar Maurer [Thu, 23 Feb 2017 15:12:42 +0000 (16:12 +0100)]
postfix master.cf: listen on all addresses

For multi stack support.

7 years agopmgnetcommit.service: new service to commit network changes at startup
Dietmar Maurer [Thu, 23 Feb 2017 11:52:34 +0000 (12:52 +0100)]
pmgnetcommit.service: new service to commit network changes at startup

7 years agogenerate and install cluster.conf.5
Dietmar Maurer [Thu, 23 Feb 2017 10:56:08 +0000 (11:56 +0100)]
generate and install cluster.conf.5

7 years agopmgperf: new cli tool
Dietmar Maurer [Thu, 23 Feb 2017 10:13:40 +0000 (11:13 +0100)]
pmgperf: new cli tool

7 years agogenerate and install pmgsh.1
Dietmar Maurer [Thu, 23 Feb 2017 09:47:32 +0000 (10:47 +0100)]
generate and install pmgsh.1

7 years agofix clamav systemd service names
Dietmar Maurer [Thu, 23 Feb 2017 09:18:53 +0000 (10:18 +0100)]
fix clamav systemd service names

7 years agocorrectly expose option admin/email
Dietmar Maurer [Thu, 23 Feb 2017 09:16:30 +0000 (10:16 +0100)]
correctly expose option admin/email

7 years agofix config section name (s/administration/admin/)
Dietmar Maurer [Thu, 23 Feb 2017 09:12:56 +0000 (10:12 +0100)]
fix config section name (s/administration/admin/)

7 years agoPMG/API2/Config: alow to read empty sections
Dietmar Maurer [Thu, 23 Feb 2017 09:07:27 +0000 (10:07 +0100)]
PMG/API2/Config: alow to read empty sections

7 years agocreate and install pmgpolicy.8
Dietmar Maurer [Thu, 23 Feb 2017 08:40:56 +0000 (09:40 +0100)]
create and install pmgpolicy.8

7 years agogenerate and install pmg-smtp-filter.8
Dietmar Maurer [Thu, 23 Feb 2017 06:53:31 +0000 (07:53 +0100)]
generate and install pmg-smtp-filter.8

7 years agouse standard permissions for /var/log/pmgproxy
Dietmar Maurer [Thu, 23 Feb 2017 05:29:01 +0000 (06:29 +0100)]
use standard permissions for /var/log/pmgproxy

7 years agoinstall manual pages for services
Dietmar Maurer [Wed, 22 Feb 2017 17:12:31 +0000 (18:12 +0100)]
install manual pages for services

7 years agogenerate and install manual pages for pmgconfig and pmgdb
Dietmar Maurer [Wed, 22 Feb 2017 16:38:37 +0000 (17:38 +0100)]
generate and install manual pages for pmgconfig and pmgdb

7 years agofix typo
Dietmar Maurer [Wed, 22 Feb 2017 16:21:47 +0000 (17:21 +0100)]
fix typo

7 years agopostinst: call update-mime-database
Dietmar Maurer [Wed, 22 Feb 2017 16:01:03 +0000 (17:01 +0100)]
postinst: call update-mime-database

7 years agoadd NEWS: templates moved to /var/lib/pmg/templates
Dietmar Maurer [Wed, 22 Feb 2017 15:56:09 +0000 (16:56 +0100)]
add NEWS: templates moved to /var/lib/pmg/templates

7 years agomove run_silent_cmd to PMG::Utils
Dietmar Maurer [Wed, 22 Feb 2017 15:52:43 +0000 (16:52 +0100)]
move run_silent_cmd to PMG::Utils

and use it for gen_proxmox_tls_cert

7 years agopmgconfig: new apicert and tlscert helpers
Dietmar Maurer [Wed, 22 Feb 2017 15:46:40 +0000 (16:46 +0100)]
pmgconfig: new apicert and tlscert helpers

7 years agoalways call parser for pmg.conf
Dietmar Maurer [Wed, 22 Feb 2017 15:10:21 +0000 (16:10 +0100)]
always call parser for pmg.conf

7 years agouse /etc/pmg/ instead of /etc/proxmox
Dietmar Maurer [Wed, 22 Feb 2017 15:05:42 +0000 (16:05 +0100)]
use /etc/pmg/ instead of /etc/proxmox

7 years agotest-server.pl: removed - no need
Dietmar Maurer [Wed, 22 Feb 2017 14:54:00 +0000 (15:54 +0100)]
test-server.pl: removed - no need

7 years agouse new pmg-doc-generator package to generate pmg.conf.5
Dietmar Maurer [Wed, 22 Feb 2017 07:59:49 +0000 (08:59 +0100)]
use new pmg-doc-generator package to generate pmg.conf.5

7 years agouse local path to run test_greylist.pl
Dietmar Maurer [Wed, 22 Feb 2017 07:59:08 +0000 (08:59 +0100)]
use local path to run test_greylist.pl

7 years agoPMG::Config::get: die if porperty does not exist
Dietmar Maurer [Tue, 21 Feb 2017 16:19:56 +0000 (17:19 +0100)]
PMG::Config::get: die if porperty does not exist

And add missing option smarthost.

7 years agouse correct microformat for ip address
Dietmar Maurer [Tue, 21 Feb 2017 15:53:23 +0000 (16:53 +0100)]
use correct microformat for ip address

7 years agopmgconfig: split command into smaller parts
Dietmar Maurer [Tue, 21 Feb 2017 15:46:35 +0000 (16:46 +0100)]
pmgconfig: split command into smaller parts

And print configuration in the format usable by templates.

7 years agofix remote_node_ip: correctly use hash values
Dietmar Maurer [Tue, 21 Feb 2017 15:45:57 +0000 (16:45 +0100)]
fix remote_node_ip: correctly use hash values

7 years agoremove debug statement
Dietmar Maurer [Tue, 21 Feb 2017 15:44:32 +0000 (16:44 +0100)]
remove debug statement

7 years agoadd test for pmgpolicy
Dietmar Maurer [Tue, 21 Feb 2017 11:59:30 +0000 (12:59 +0100)]
add test for pmgpolicy

7 years agopmgpolicy: always enable spf and greylist in testmode
Dietmar Maurer [Tue, 21 Feb 2017 11:58:43 +0000 (12:58 +0100)]
pmgpolicy: always enable spf and greylist in testmode

7 years agopmgpolicy: improve pre_server_close_hook
Dietmar Maurer [Tue, 21 Feb 2017 11:33:39 +0000 (12:33 +0100)]
pmgpolicy: improve pre_server_close_hook

wait for children

7 years agoinstall pmgpolicy service
Dietmar Maurer [Tue, 21 Feb 2017 11:12:19 +0000 (12:12 +0100)]
install pmgpolicy service

7 years agopmgpolicy: cleanup, remove old code
Dietmar Maurer [Tue, 21 Feb 2017 11:00:40 +0000 (12:00 +0100)]
pmgpolicy: cleanup, remove old code

7 years agouse new helper new_from_ldap_cfg()
Dietmar Maurer [Tue, 21 Feb 2017 10:57:14 +0000 (11:57 +0100)]
use new helper new_from_ldap_cfg()

7 years agouse full name for PMG::Utils::msgquote
Dietmar Maurer [Tue, 21 Feb 2017 10:08:07 +0000 (11:08 +0100)]
use full name for PMG::Utils::msgquote

7 years agoClusterConfig: remnodes is a list of IDs.
Dietmar Maurer [Tue, 21 Feb 2017 09:36:02 +0000 (10:36 +0100)]
ClusterConfig: remnodes is a list of IDs.

7 years agonew max_policy option
Dietmar Maurer [Tue, 21 Feb 2017 09:25:07 +0000 (10:25 +0100)]
new max_policy option

7 years agodepend on libmail-spf-perl
Dietmar Maurer [Tue, 21 Feb 2017 09:08:55 +0000 (10:08 +0100)]
depend on libmail-spf-perl

7 years agopmgpolicy: import from old repository
Dietmar Maurer [Tue, 21 Feb 2017 09:01:40 +0000 (10:01 +0100)]
pmgpolicy: import from old repository

7 years agoadd read-only API for cluster config
Dietmar Maurer [Tue, 21 Feb 2017 08:29:45 +0000 (09:29 +0100)]
add read-only API for cluster config

7 years agoPMG/ClusterConfig.pm: better code to read/write cluster config
Dietmar Maurer [Tue, 21 Feb 2017 08:14:14 +0000 (09:14 +0100)]
PMG/ClusterConfig.pm: better code to read/write cluster config

using SectionConfig.

7 years agoPMG/LDAPConfig.pm: verify sectionId inside parse_section_header
Dietmar Maurer [Tue, 21 Feb 2017 05:31:03 +0000 (06:31 +0100)]
PMG/LDAPConfig.pm: verify sectionId inside parse_section_header

7 years agoPMG/API2/Domains.pm: full implementation
Dietmar Maurer [Mon, 20 Feb 2017 15:23:53 +0000 (16:23 +0100)]
PMG/API2/Domains.pm: full implementation

7 years agoPMG/API2/Config.pm: use correct section IDs
Dietmar Maurer [Mon, 20 Feb 2017 15:08:05 +0000 (16:08 +0100)]
PMG/API2/Config.pm: use correct section IDs

7 years agoadd API for relay domains
Dietmar Maurer [Mon, 20 Feb 2017 15:05:29 +0000 (16:05 +0100)]
add API for relay domains

7 years agofully implement ldap configuration API.
Dietmar Maurer [Mon, 20 Feb 2017 11:42:24 +0000 (12:42 +0100)]
fully implement ldap configuration API.

7 years agoPMG/LDAPConfig.pm: new helper lock_config
Dietmar Maurer [Mon, 20 Feb 2017 11:13:47 +0000 (12:13 +0100)]
PMG/LDAPConfig.pm: new helper lock_config

7 years agoPMG/API2/LDAP.pm: start LDAP API
Dietmar Maurer [Mon, 20 Feb 2017 10:47:41 +0000 (11:47 +0100)]
PMG/API2/LDAP.pm: start LDAP API

7 years agofix permissions on /etc/proxmox/ldap.conf
Dietmar Maurer [Mon, 20 Feb 2017 10:34:37 +0000 (11:34 +0100)]
fix permissions on /etc/proxmox/ldap.conf

This file may contain passwords.

7 years agoadd more ldap properties, cleanup code
Dietmar Maurer [Mon, 20 Feb 2017 10:32:22 +0000 (11:32 +0100)]
add more ldap properties, cleanup code

7 years agoPVE::Config: remove type ldap (use PVE::LDAPConfig instead)
Dietmar Maurer [Mon, 20 Feb 2017 09:24:37 +0000 (10:24 +0100)]
PVE::Config: remove type ldap (use PVE::LDAPConfig instead)

7 years agoadd new class to read ldap configuration
Dietmar Maurer [Mon, 20 Feb 2017 09:04:54 +0000 (10:04 +0100)]
add new class to read ldap configuration

we use a separate file now.

7 years agoNEWS: comment about remove FuzzyOCR
Dietmar Maurer [Mon, 20 Feb 2017 08:37:11 +0000 (09:37 +0100)]
NEWS: comment about remove FuzzyOCR

7 years agomove ruledb API to /config/ruledb
Dietmar Maurer [Mon, 20 Feb 2017 07:54:47 +0000 (08:54 +0100)]
move ruledb API to /config/ruledb

7 years agocorrectly declare $output var
Dietmar Maurer [Mon, 20 Feb 2017 07:54:19 +0000 (08:54 +0100)]
correctly declare $output var

7 years agouse 'postfix@-' if $service eq 'postfix';
Dietmar Maurer [Mon, 20 Feb 2017 07:51:35 +0000 (08:51 +0100)]
use 'postfix@-' if $service eq 'postfix';

7 years agorestart services when configuration changes
Dietmar Maurer [Mon, 20 Feb 2017 06:51:48 +0000 (07:51 +0100)]
restart services when configuration changes

7 years agoadd pmg-smtp-filter to service list
Dietmar Maurer [Mon, 20 Feb 2017 06:40:25 +0000 (07:40 +0100)]
add pmg-smtp-filter to service list

7 years agouse new helper PMG::Utils::service_cmd()
Dietmar Maurer [Mon, 20 Feb 2017 06:20:40 +0000 (07:20 +0100)]
use new helper PMG::Utils::service_cmd()

7 years agoPMG/Utils.pm: new helper service_cmd()
Dietmar Maurer [Mon, 20 Feb 2017 06:18:37 +0000 (07:18 +0100)]
PMG/Utils.pm: new helper service_cmd()

7 years agoPMG::Config::rewrite_config_*: return true if something changed
Dietmar Maurer [Mon, 20 Feb 2017 06:08:56 +0000 (07:08 +0100)]
PMG::Config::rewrite_config_*: return true if something changed

7 years agoremove unused rewrite_config_script
Dietmar Maurer [Mon, 20 Feb 2017 05:53:23 +0000 (06:53 +0100)]
remove unused rewrite_config_script

7 years agoPMG/Config.pm: use file_get/set_contents instead of AtomicFile.
Dietmar Maurer [Mon, 20 Feb 2017 05:50:36 +0000 (06:50 +0100)]
PMG/Config.pm: use file_get/set_contents instead of AtomicFile.

And detect changes.

7 years agoremove wrong my declaration
Dietmar Maurer [Sun, 19 Feb 2017 13:34:26 +0000 (14:34 +0100)]
remove wrong my declaration

7 years agoset proxyto attribute for config API
Dietmar Maurer [Sun, 19 Feb 2017 13:33:26 +0000 (14:33 +0100)]
set proxyto attribute for config API

7 years agopmgsh: implement porxyto master
Dietmar Maurer [Sun, 19 Feb 2017 13:33:07 +0000 (14:33 +0100)]
pmgsh: implement porxyto master

7 years agomove get_cluster_node to PMG::Cluster
Dietmar Maurer [Sun, 19 Feb 2017 13:32:26 +0000 (14:32 +0100)]
move get_cluster_node to PMG::Cluster

7 years agofully implement config read/write API
Dietmar Maurer [Sun, 19 Feb 2017 11:00:33 +0000 (12:00 +0100)]
fully implement config read/write API

7 years agonew helper lock_config()
Dietmar Maurer [Sun, 19 Feb 2017 08:42:07 +0000 (09:42 +0100)]
new helper lock_config()

7 years agoarchivemaxrec: add missing property type
Dietmar Maurer [Sun, 19 Feb 2017 08:30:45 +0000 (09:30 +0100)]
archivemaxrec: add missing property type

7 years agomove config API from /nodes/config to /config
Dietmar Maurer [Sun, 19 Feb 2017 08:21:59 +0000 (09:21 +0100)]
move config API from /nodes/config to /config

7 years agoinstall PMG/API2/Config.pm
Dietmar Maurer [Fri, 17 Feb 2017 18:08:20 +0000 (19:08 +0100)]
install PMG/API2/Config.pm

7 years agorun pmgsh verifyapi
Dietmar Maurer [Fri, 17 Feb 2017 18:03:45 +0000 (19:03 +0100)]
run pmgsh verifyapi

7 years agofix typos
Dietmar Maurer [Fri, 17 Feb 2017 18:02:35 +0000 (19:02 +0100)]
fix typos

7 years agoPMG::Cluster::remote_node_ip: lookup ip in cluster config
Dietmar Maurer [Fri, 17 Feb 2017 17:58:33 +0000 (18:58 +0100)]
PMG::Cluster::remote_node_ip: lookup ip in cluster config

7 years agoPMG/HTTPServer.pm: allow to set proxyto => 'master'
Dietmar Maurer [Fri, 17 Feb 2017 17:32:56 +0000 (18:32 +0100)]
PMG/HTTPServer.pm: allow to set proxyto => 'master'

7 years agoPMG/API2/Config.pm: update_section dummy
Dietmar Maurer [Fri, 17 Feb 2017 16:59:00 +0000 (17:59 +0100)]
PMG/API2/Config.pm: update_section dummy

does not work ...

7 years agorename section_id to section
Dietmar Maurer [Fri, 17 Feb 2017 16:58:31 +0000 (17:58 +0100)]
rename section_id to section

7 years agoadd configuration API
Dietmar Maurer [Fri, 17 Feb 2017 16:13:25 +0000 (17:13 +0100)]
add configuration API

7 years agodepend on libterm-readline-gnu-perl
Dietmar Maurer [Fri, 17 Feb 2017 15:58:10 +0000 (16:58 +0100)]
depend on libterm-readline-gnu-perl

used by pmgsh

7 years agonew tool pmgsh
Dietmar Maurer [Fri, 17 Feb 2017 15:48:56 +0000 (16:48 +0100)]
new tool pmgsh

mostly copied from pve-manager (pvesh)

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