mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 21:08:03 +00:00
don't try to get DKIM keys from pass; don't recreate DKIM keys if already existing
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import subprocess
|
||||
|
||||
|
||||
def get_pass(filename: str) -> str:
|
||||
"""Get the data from the password manager."""
|
||||
r = subprocess.run(["pass", "show", filename], capture_output=True, check=True)
|
||||
return r.stdout.decode("utf-8")
|
||||
|
||||
chatmail = [
|
||||
(
|
||||
"c1.testrun.org",
|
||||
@@ -13,8 +8,6 @@ chatmail = [
|
||||
"ssh_user": "root",
|
||||
"domain": "c1.testrun.org",
|
||||
"dkim_selector": "2023",
|
||||
"dkim_key": get_pass("delta/c1.testrun.org/dkim_key"),
|
||||
"dkim_txt": get_pass("delta/c1.testrun.org/dkim_txt"),
|
||||
},
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user