X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=clients%2FHP%2Fbin%2Fsetup_ssmtp;fp=clients%2FHP%2Fbin%2Fsetup_ssmtp;h=b1ea7d22a7a6aeeda0dfed9f05ad5a7544c94d14;hb=a8c84d2892f07a6863b68a11eb0a4a79ffd71fb5;hp=0000000000000000000000000000000000000000;hpb=95384f94f88aceeb5eef2d322210ba4a438b6512;p=clearscm.git diff --git a/clients/HP/bin/setup_ssmtp b/clients/HP/bin/setup_ssmtp new file mode 100644 index 0000000..b1ea7d2 --- /dev/null +++ b/clients/HP/bin/setup_ssmtp @@ -0,0 +1,58 @@ +#!/bin/bash +################################################################################ +# +# File: setup_ssmtp +# Description: This script sets up ssmtp mail configuration +# Author: Andrew@DeFaria.com +# Created: Wed Jan 9 12:57:13 2002 +# Language: Bash Shell +# Modifications: +# +# (c) Copyright 2002, Andrew@DeFaria.com, all rights reserved +# +################################################################################ +# Setup /etc/ssmtp config directory +ssmtp_dir=/etc/ssmtp +domain=${domain:-broadcom.com} +mail_server=smtphost + +mkdir -p $ssmtp_dir +chmod 700 $ssmtp_dir + +# Make some simple aliases. Alias $USER to the proper email address and then +# alias root, Administrator and postmaster to the user's address thus making +# the user "god" of smtp on this machine only. +cat > $ssmtp_dir/revaliases < $ssmtp_dir/ssmtp.conf <