submit.py SMTP :587 + otp_api.py mailbox API, imap_code strict-parse fix, auto.py SPF, login.py uid-select, READMEs

This commit is contained in:
Vlad Gothbreach
2026-10-15 23:02:57 +03:00
parent 830cdcbfaa
commit 51e4c5fd0b
7 changed files with 432 additions and 8 deletions
+2 -1
View File
@@ -127,7 +127,8 @@ def main():
elif args.mail == "dns":
ip = os.environ.get("DNS_A_IP", "")
a_args = ["--a", "mail=" + ip] if ip else []
run("setup_dns.py", dom, *a_args, "--mx", "@=mail." + dom + ":5")
t_args = ["--txt", "@=v=spf1 ip4:" + ip + " ~all"] if ip else []
run("setup_dns.py", dom, *a_args, "--mx", "@=mail." + dom + ":5", *t_args)
st[dom]["mail"] = "self-hosted-mx"
else:
st[dom]["mail"] = st[dom].get("mail", "pending")