Skip to content

Commit

Permalink
Use add-relay-rule on restoration and clone action
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed May 30, 2024
1 parent 056103d commit 6f5ea6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/actions/configure-module/90add-relay-rule
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ip_address = rdb.hget(f'node/{node_id}/vpn', 'ip_address')

if providers:
mail_id = providers[0]["module_id"]
if not os.environ.get("MAIL_SERVER"):
if not os.environ.get("MAIL_SERVER") or data.get("restore", False):
# first configuration, we add the relay rule
response = agent.tasks.run(f"module/{mail_id}", action='add-relay-rule', data={
"rule_type": "always-bcc",
Expand Down

0 comments on commit 6f5ea6f

Please sign in to comment.