We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72013f7 + a45eb7a commit 504a8e6Copy full SHA for 504a8e6
imageroot/bin/expand-smarthost
@@ -6,10 +6,8 @@
6
#
7
8
import os
9
-import json
10
import agent
11
import agent.tasks
12
-import sys
13
14
from jinja2 import Environment, FileSystemLoader, select_autoescape
15
@@ -36,7 +34,7 @@ if receiver_emails and smtp['enabled']:
36
34
"smtp_username": smtp['username'],
37
35
"smtp_password": smtp['password'],
38
"smtp_port": smtp['port'],
39
- "sender_email": smtp['username'],
+ "sender_email": os.environ['MODULE_ID']+'@'+agent.get_hostname(),
40
"receiver_emails": receiver_emails.split(","),
41
"encryption_type": "none" if smtp['encrypt_smtp'] == "none" else "starttls" if smtp['encrypt_smtp'] == "starttls" else "ssltls",
42
"auth_type": "login",
0 commit comments