#!/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:-defaria.com} mail_server=10.1.1.101 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 <