From a510250723b5166f8bef4a6986e2dee163d1f664 Mon Sep 17 00:00:00 2001 From: Thomas Merkel Date: Fri, 27 Mar 2015 13:56:25 +0100 Subject: [PATCH] Set hostname for nullmailer smtp out --- copy/opt/core/var/mdata-setup/includes/52-nullmailer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copy/opt/core/var/mdata-setup/includes/52-nullmailer.sh b/copy/opt/core/var/mdata-setup/includes/52-nullmailer.sh index c630748..2aac9cf 100644 --- a/copy/opt/core/var/mdata-setup/includes/52-nullmailer.sh +++ b/copy/opt/core/var/mdata-setup/includes/52-nullmailer.sh @@ -1,5 +1,7 @@ #!/bin/bash if mdata-get mail_smarthost 1>/dev/null 2>&1; then + echo "$(hostname)" > /opt/local/etc/nullmailer/defaulthost + if mdata-get mail_adminaddr 1>/dev/null 2>&1; then mdata-get mail_adminaddr > /opt/local/etc/nullmailer/adminaddr fi @@ -9,4 +11,4 @@ if mdata-get mail_smarthost 1>/dev/null 2>&1; then AUTH="--user=$(mdata-get mail_auth_user) --pass=$(mdata-get mail_auth_pass)" fi echo "$(mdata-get mail_smarthost) smtp --ssl $AUTH" > /opt/local/etc/nullmailer/remotes -fi \ No newline at end of file +fi