2 ################################################################################
5 # Description: This script sets up ssmtp mail configuration
6 # Author: Andrew@DeFaria.com
7 # Created: Wed Jan 9 12:57:13 2002
9 # Modifications:<modifications>
11 # (c) Copyright 2002, Andrew@DeFaria.com, all rights reserved
13 ################################################################################
14 # Setup /etc/ssmtp config directory
20 # Make some simple aliases. Alias $USER to the proper email address and then
21 # alias root, Administrator and postmaster to the user's address thus making
22 # the user "god" of smtp on this machine only.
23 cat > $ssmtp_dir/revaliases <<EOF
26 # Format: local_account:outgoing_address:mailhub
28 # Example: root:your_login@your.domain:mailhub.your.domain:[port]
29 # where [port] is an optional port number that defaults to 25.
30 $USER:$USER@salira.com:sons-exch02.salira.com:25
31 root:$USER@salira.com:sons-exch02.salira.com:25
32 Administrator:$USER@salira.com:sons-exch02.salira.com:25
33 postmaster:$USER@salira.com:sons-exch02.salira.com:25
36 # Get a downshifted hostname
37 hostname=$(hostname | tr '[:upper:]' '[:lower:]')
40 cat > $ssmtp_dir/ssmtp.conf <<EOF
41 # ssmtp.conf: Config file for Cygwin's sstmp sendmail
43 # The person who gets all mail for userids < 10
45 # The place where the mail goes. The actual machine name is required
46 # no MX records are consulted. Commonly mailhosts are named mail.domain.com
47 # The example will fit if you are in domain.com and you mailhub is so named.
48 mailhub=sons-exch02.salira.com
49 # Where will the mail seem to come from?
50 #rewriteDomain=$USER.salira.com
52 hostname=$hostname.salira.com
53 # Set this to never rewrite the "From:" line (unless not given) and to
54 # use that address in the "from line" of the envelope.