|
|
1.1 root 1: #! /bin/sh
2: #
3: # @(#)make.cf.sh 2.5 (smail) 9/15/87
4: #
5: cat <<!EOM!
6: This script will prompt you for the automatically configurable parameters
7: in the stock version of the sendmail configuration file. Naturally, any
8: local extensions will have to be added manually.
9:
10: Clyde is a VAX running AT&T System V Release 2.0, with a port of sendmail.
11: Clyde is a gateway for the domain .att.com.
12:
13: Below is a trace of the session that
14: configured the sendmail.cf on clyde.ATT.COM:
15: ===
16:
17: !EOM!
18:
19: echo "press return to continue"; read foo
20:
21: cat <<!EOM!
22: Enter Date (MM-DD-YY):
23: 06-24-86
24: Enter This Host's Name:
25: clyde
26: Enter This Host's Official Domain:
27: ATT.COM
28: Enter Any Equivalent Domain Classes:
29: ATT
30: Enter Any Domains For Which This Host Is An Authority:
31: ATT.UUCP
32: Does This Host Have SMTP Connections (y/n)?
33: no
34: Enter Full Path to Executable That Will Provide Local Mail Delivery:
35: /bin/lmail
36: Is /bin/lmail A Berkeley Mailer [i.e., use -r to specify sender] (y/n)?
37: no
38: Will This Host Act As A Gateway Between Domains (y/n)?
39: yes
40: Are subdomains beneath this hosts' domain to be hidden (y/n)?
41: yes
42: ===
43: !EOM!
44: # get date of configuration
45: CF_DATE=`/bin/sh ./smail.prompt string "Enter Date (MM-DD-YY):"`
46:
47: # get host name
48: CF_HOST=`/bin/sh ./smail.prompt string "Enter This Host's Name:"`
49:
50: # get host domain
51: CF_DOMAIN=`/bin/sh ./smail.prompt string "Enter This Host's Official Domain:"`
52:
53: # get domain classes
54: CF_DCLASS=`/bin/sh ./smail.prompt string "Enter Any Equivalent Domain Classes:"`
55:
56: # get domain authority
57: CF_AUTHORITY=`/bin/sh ./smail.prompt string "Enter Any Domains For Which This Host Is An Authority:"`
58:
59: CF_SMTP=`/bin/sh ./smail.prompt yesno "Does This Host Have SMTP Connections (y/n)?"`
60: if test "$CF_SMTP" = "yes"
61: then
62:
63: #get list of local SMTP connections
64: CF_SMTP=`/bin/sh ./smail.prompt file "Enter Full Path to File that Contains List of SMTP Connections:"`
65:
66: CF_SMTP="FE$CF_SMTP %s"
67: else
68: CF_SMTP=""
69: fi
70:
71: # get path to local delivery agent
72: CF_LOCALMAIL=`/bin/sh ./smail.prompt file "Enter Full Path to Executable That Will Provide Local Mail Delivery:"`
73:
74: CF_SYSTEM=`/bin/sh ./smail.prompt yesno "Is $CF_LOCALMAIL A Berkeley Mailer [i.e., use -r to specify sender] (y/n)?"`
75: if test "$CF_SYSTEM" = "yes"
76: then
77: CF_SVMAIL="#"
78: CF_BSMAIL=""
79: else
80: CF_SVMAIL=""
81: CF_BSMAIL="#"
82: fi
83:
84: CF_GATEWAY=`/bin/sh ./smail.prompt yesno "Will This Host Act As A Gateway Between Domains(y/n)?"`
85: if test "$CF_GATEWAY" = "yes"
86: then
87: CF_GATEWAY=""
88: else
89: CF_GATEWAY="#"
90: fi
91:
92: CF_HIDDENHOSTS=`/bin/sh ./smail.prompt yesno "Are subdomains beneath this hosts' domain to be hidden (y/n)?"`
93: if test "$CF_HIDDENHOSTS" = "yes"
94: then
95: CF_HIDDENHOSTS=""
96: else
97: CF_HIDDENHOSTS="#"
98: fi
99:
100: sed \
101: -e "s/CF_HOST/Dw$CF_HOST/" \
102: -e "s/CF_DOMAIN/DD$CF_DOMAIN/" \
103: -e "s/CF_AUTHORITY/DA$CF_AUTHORITY/" \
104: -e "s/CF_DCLASS/CDUUCP $CF_DCLASS/" \
105: -e "s;CF_SMTP;$CF_SMTP;" \
106: -e "s;CF_DATE;$CF_DATE;" \
107: -e "s;CF_LOCALMAIL;$CF_LOCALMAIL;" \
108: -e "s;CF_BSMAIL;$CF_BSMAIL;" \
109: -e "s;CF_SVMAIL;$CF_SVMAIL;" \
110: -e "s;CF_GATEWAY;$CF_GATEWAY;" \
111: -e "s;CF_HIDDENHOSTS;$CF_HIDDENHOSTS;" \
112: template.cf > sendmail.cf
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.