Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deliver local system emails to user email #75

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,17 @@ if command -v postfix > /dev/null; then
sudo systemctl enable postfix
sudo systemctl restart postfix
fi

if [ -f /etc/aliases ]; then
### Set the email address to deliver System emails
logg info 'Set the email address to deliver System emails'
sed s/^root.*/root:\ {{ .user.email }}/ -i /etc/aliases && newaliases
fi
else
logg warn '/etc/postfix is not a directory! Skipping SendGrid Postfix setup.'
fi
else
logg info 'Skipping Postfix configuration because Postfix is not installed'
fi

{{ end -}}
{{ end -}}
Loading