@@ -6,17 +6,21 @@ QMAIL_HOME="/var/qmail"
6
6
QMAIL_LOG_DIR=" /var/log/qmail"
7
7
VPOPMAIL_HOME=" /home/vpopmail"
8
8
9
- QMAIL_DOWNLOAD=" http://www.qmail.org/netqmail-1.06.tar.gz"
10
- VPOPMAIL_DOWNLOAD=" http://downloads.sourceforge.net/project/vpopmail/vpopmail-stable/5.4.33/vpopmail-5.4.33.tar.gz"
11
- AUTORESPOND_DOWNLOAD=" http://qmail.ixip.net/download/autorespond-2.0.5.tar.gz"
12
- QMAILADMIN_DOWNLOAD=" http://downloads.sourceforge.net/project/qmailadmin/qmailadmin-devel/qmailadmin-1.2.16.tar.gz"
13
- MAILDROP_DOWNLOAD=" http://downloads.sourceforge.net/project/courier/maildrop/2.8.1/maildrop-2.8.1.tar.bz2"
9
+ # QMAIL_DOWNLOAD="http://www.qmail.org/netqmail-1.06.tar.gz"
10
+ # VPOPMAIL_DOWNLOAD="http://downloads.sourceforge.net/project/vpopmail/vpopmail-stable/5.4.33/vpopmail-5.4.33.tar.gz"
11
+ # EZMLM_DOWNLOAD="https://github.com/bruceg/ezmlm-idx/archive/7.2.2.tar.gz"
12
+ # AUTORESPOND_DOWNLOAD="http://qmail.ixip.net/download/autorespond-2.0.5.tar.gz"
13
+ # AUTORESPOND_DOWNLOAD="https://github.com/roffe/autorespond-2.0.6/archive/master.zip"
14
+ # QMAILADMIN_DOWNLOAD="http://downloads.sourceforge.net/project/qmailadmin/qmailadmin-devel/qmailadmin-1.2.16.tar.gz"
15
+ # MAILDROP_DOWNLOAD="http://downloads.sourceforge.net/project/courier/maildrop/2.8.1/maildrop-2.8.1.tar.bz2"
14
16
15
17
# # QMAIL INSTALL BASED ON LWQ ##
16
18
cd /usr/src
17
- wget $QMAIL_DOWNLOAD -O netqmail-1.06.tar.gz
19
+ # wget $QMAIL_DOWNLOAD -O netqmail-1.06.tar.gz
20
+ # tar -zxf netqmail-1.06.tar.gz
21
+ echo " Installing QMAIL"
22
+ tar -zxf /app/setup/netqmail-1.06.tar.gz
18
23
19
- tar -zxf netqmail-1.06.tar.gz
20
24
cd netqmail-1.06
21
25
22
26
groupadd -g 161 nofiles
@@ -112,8 +116,9 @@ mkdir ${QMAIL_LOG_DIR}
112
116
# # VPOPMAIL INSTALL ##
113
117
cd /usr/src
114
118
115
- wget $VPOPMAIL_DOWNLOAD -O vpopmail-5.4.33.tar.gz
116
- tar -zxf vpopmail-5.4.33.tar.gz
119
+ # wget $VPOPMAIL_DOWNLOAD -O vpopmail-5.4.33.tar.gz
120
+ # tar -zxf vpopmail-5.4.33.tar.gz
121
+ tar -zxf /app/setup/vpopmail-5.4.33.tar.gz
117
122
cd vpopmail-5.4.33
118
123
119
124
groupadd -g 89 vchkpw
@@ -128,32 +133,43 @@ ln -s /home/vpopmail /var/lib/vpopmail
128
133
129
134
# # EZMLM
130
135
cd /usr/src
131
- git clone https://github.com/bruceg/ezmlm-idx.git
132
- cd ezmlm-idx
133
- bash tools/makemake
136
+ echo " installing ezmlm"
137
+ # git clone https://github.com/bruceg/ezmlm-idx.git
138
+ # wget ${EZMLM_DOWNLOAD} -O ezmlm-idx-7.2.2.tar.gz
139
+ # tar -zxvf ezmlm-idx-7.2.2.tar.gz
140
+ tar -zxvf /app/setup/ezmlm-idx-7.2.2.tar.gz
141
+ # cd ezmlm-idx
142
+ cd ezmlm-idx-7.2.2
143
+ bash ./tools/makemake
134
144
make clean
135
- make; make man
136
- make mysql
145
+ make
146
+ # make man
147
+ # make mysql
137
148
make install
138
149
139
150
# # Autoresponder ##
140
151
cd /usr/src
141
- wget ${AUTORESPOND_DOWNLOAD} -O autorespond-2.0.5.tar.gz
142
- tar -zxf autorespond-2.0.5.tar.gz
143
- cd autorespond-2.0.5
152
+ echo " installing Autoresponder"
153
+ # wget ${AUTORESPOND_DOWNLOAD} -O autorespond-2.0.6.tar.gz
154
+ # tar -zxf autorespond-2.0.6.tar.gz
155
+ tar -zvxf /app/setup/autorespond-2.0.6.tar.gz
156
+ cd autorespond-2.0.6-master
144
157
make && make install
145
158
146
159
# # Qmailadmin ##
147
160
cd /usr/src
148
- wget ${QMAILADMIN_DOWNLOAD} -O qmailadmin-1.2.16.tar.gz
149
- tar -zxf qmailadmin-1.2.16.tar.gz
161
+ echo " installing QmailAdmin"
162
+ # wget ${QMAILADMIN_DOWNLOAD} -O qmailadmin-1.2.16.tar.gz
163
+ # tar -zxf qmailadmin-1.2.16.tar.gz
164
+ tar -zxf /app/setup/qmailadmin-1.2.16.tar.gz
150
165
cd qmailadmin-1.2.16
151
166
152
167
./configure --enable-htmldir=/usr/share/qmailadmin/html --enable-imagedir=/usr/share/qmailadmin/images --enable-cgibindir=/usr/lib/cgi-bin --enable-htmllibdir=/usr/share/qmailadmin --enable-imageurl=/images --enable-cgipath=/qmailadmin
153
168
make
154
169
make install-strip
170
+ echo " Done installing QmailAdmin"
155
171
156
-
172
+ echo " Setting supervisor configs "
157
173
# make sure fcgi runs
158
174
cat > /etc/supervisor/conf.d/fgci.conf << EOF
159
175
[program:fcgi]
@@ -179,13 +195,14 @@ autorestart=true
179
195
stdout_logfile=/var/log/supervisor/%(program_name)s.log
180
196
stderr_logfile=/var/log/supervisor/%(program_name)s.log
181
197
EOF
182
-
198
+ echo " Setting nginx config "
183
199
rm -f /etc/nginx/sites-enabled/default
184
200
cp /app/setup/config/nginx-qmailadmin.conf /etc/nginx/sites-enabled/qmailadmin.conf
185
201
186
202
187
203
# # Dovecot
188
204
cd /usr/src
205
+ echo " Installing Dovecot"
189
206
apt-get source dovecot
190
207
apt-get -y build-dep dovecot
191
208
cd dovecot-*
0 commit comments