save dkim key after creation

This commit is contained in:
Alexander Graf
2021-07-25 15:51:13 +02:00
parent f8db4a0531
commit 54b46a13c6
2 changed files with 3 additions and 1 deletions

View File

@@ -272,7 +272,7 @@ class Domain(Base):
return dkim.strip_key(dkim_key).decode('utf8')
def generate_dkim_key(self):
""" generate and activate new DKIM key """
""" generate new DKIM key """
self.dkim_key = dkim.gen_key()
def has_email(self, localpart):