diff mail.py @ 41:768e655e487b

some mail fix
author drewp@bigasterisk.com
date Mon, 14 Feb 2022 18:20:25 -0800
parents fb226978c4d7
children 4cab03eb492e
line wrap: on
line diff
--- a/mail.py	Mon Jan 17 12:12:02 2022 -0800
+++ b/mail.py	Mon Feb 14 18:20:25 2022 -0800
@@ -18,6 +18,13 @@
 
     # something to run ~drewp/mbsync/go at startup
 
-    # maybe freshen the mbsync client cert when we're running this deploy, too
+    server.shell(commands=[
+        "cd /home/drewp/mbsync; /usr/bin/mbsync-get-cert 10.5.0.1 > servercert",
+    ])
 
 # other machines, route mail to bang or prime for delivery
+
+if host.name == 'bang':
+    server.shell(commands=[
+        "cd /my/serv/dovecot; invoke certs",
+    ])