Add DNS record management module for Mail-in-a-Box

This commit is contained in:
2025-12-27 10:11:42 +01:00
parent 68b7bd9997
commit b78c848525
5 changed files with 105 additions and 0 deletions

7
miab/__init__.py Normal file
View File

@@ -0,0 +1,7 @@
# Initializer for helpers package
from os import getenv
from base64 import b64encode
MIAB_HOST = getenv('MIAB_HOST', 'box.koszewscy.waw.pl')
MIAB_AUTH_HEADER = "Basic " + b64encode(f"{getenv('MIAB_USERNAME', 'admin')}:{getenv('MIAB_PASSWORD', 'password')}".encode()).decode()