mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #28] Include Proxmox Mail Gateway (PMG) Support #12
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ananiasfilho on GitHub (Jun 15, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/28
Originally assigned to: @jhollowe on GitHub.
Hello, is possible to include a parameter to define if you will use PVE or PMG?
To proxmoxer lib work with proxmox mail gateway i just changed line bellow:
https://github.com/proxmoxer/proxmoxer/blob/develop/proxmoxer/backends/https.py#L83
return cookiejar_from_dict({"PVE"AuthCookie: self.pve_auth_ticket})
TO
return cookiejar_from_dict({"PMG"AuthCookie: self.pve_auth_ticket})
and call my pmg api using same resources/requests as:
Example: All users statistics - /api2/json/statistics/sender
Reference: https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/statistics/sender
So we can define host, user,password and service.
Services are: PVE, PMG and in future PBS - Proxmox Backup Server.
@nemmeviu commented on GitHub (Jun 15, 2020):
+1
@Disapper commented on GitHub (Jun 15, 2020):
+1
@samirbatista commented on GitHub (Jun 15, 2020):
+1
@jhollowe commented on GitHub (Jun 20, 2020):
Yeah, this seems like it shouldn't be that hard. I will need to spin up a PMG instance to test, so it might be on the back burner for a bit, but this will get added soon(tm)
@ananiasfilho commented on GitHub (Jun 20, 2020):
Great!
We are running these changes on Productions servers (12 servers) and created Zabbix and Grafana templates. Its running more than 3 weeks on high load servers. Since its follow same arch of pve api, we have not see differences. Also, just deploy PMG container on your PVE and test. If you have any question, i will be available to help you!
Thank you!
@garbled1 commented on GitHub (Oct 25, 2020):
It looks like this code is now merged, per the readme, but the package in pypi doesn't have the new code. Could you do a new release please? I want to make a package that depends on this.
@jhollowe commented on GitHub (Oct 28, 2020):
I'd like to do some more work with this and close a few other loose ends before releasing a new version.
I'll try to find some time in the next week or so to release a 1.2.0b1 beta release so you can start playing around with it before the full release. This functionality shouldn't change, just some tidying up of the code.
@jhollowe commented on GitHub (Nov 7, 2020):
version 1.2.0b1 is in pypi. Since it is a prerelease, you will have to manually specify that version for pip to grab it instead of the standard release.
@jhollowe commented on GitHub (May 20, 2021):
@ananiasfilho (and others) Can you try running the code in #43 and report back if it works as expected?
You can clone the PR branch, and in its directory run
pip install .to use the branch as the installed version of proxmoxer. You can then import proxmoxer as normal and test its functionality with PBS.@ananiasfilho commented on GitHub (May 20, 2021):
@jhollowe Sure! Lets ask Proxmox BS Brazil Group (Telegram) to test it too. I will back with news when finish tests. Thank you so much!