Browse Source

actually call the dovecot module from main if it is requested

Helmut Pozimski 7 years ago
parent
commit
4a8f4e68f1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      amulib/main.py

+ 7 - 0
amulib/main.py

@@ -27,6 +27,7 @@ import sys
 from amulib.helpers import get_log_level
 from amulib import apache
 from amulib import postfix
+from amulib import dovecot
 
 
 def main():
@@ -71,3 +72,9 @@ def main():
                         config["named_key_path"])
         else:
             postfix.run()
+    if args.dovecot:
+        if config:
+            dovecot.run(config["postifx"], config["acme_dir"],
+                        config["named_key_path"])
+        else:
+            dovecot.run()