Handle new domains in mail.conf.
This commit is contained in:
parent
749def3b33
commit
c3903b4034
1 changed files with 5 additions and 8 deletions
|
|
@ -1,23 +1,20 @@
|
||||||
# This file is sourced by various scripts that need to send emails.
|
# This file is sourced by various scripts that need to send emails.
|
||||||
|
|
||||||
case "${HOSTNAME#*.}" in
|
case "${HOSTNAME#*.}" in
|
||||||
slackware.uk)
|
afterdark.lan)
|
||||||
EMAIL_DOMAIN="slackware.uk"
|
EMAIL_DOMAIN="afterdark.org.uk"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
EMAIL_DOMAIN="opensourcerers.uk"
|
EMAIL_DOMAIN="slackware.network"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
EMAIL_FROM="${HOSTNAME%%.*} <noreply@$EMAIL_DOMAIN>"
|
EMAIL_FROM="${HOSTNAME%%.*} <noreply@$EMAIL_DOMAIN>"
|
||||||
|
EMAIL_TO=("Systems Administrator <sysadmin@$EMAIL_DOMAIN>")
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
sbosrcarch)
|
sbosrcarch)
|
||||||
EMAIL_TO=("Systems Administrator <sysadmin@$EMAIL_DOMAIN>")
|
MAILX_ARGS=("-c" "Urchlay <urchlay@slackware.uk>")
|
||||||
MAILX_ARGS=("-c" "Urchlay <yalhcru@gmail.com>")
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
EMAIL_TO=("Systems Administrator <sysadmin@$EMAIL_DOMAIN>")
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue