Skip to content

Commit

Permalink
Set hostname for nullmailer smtp out
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Mar 27, 2015
1 parent 2c93ae2 commit a510250
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion copy/opt/core/var/mdata-setup/includes/52-nullmailer.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
fi

0 comments on commit a510250

Please sign in to comment.