-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILDING
104 lines (90 loc) · 4.71 KB
/
BUILDING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
######################################################################
# eFa 4.0.3 BUILDING
######################################################################
# Copyright (C) 2021 https://efa-project.org
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#######################################################################
Welcome to eFa Version 4.0.3!
Many thanks goes to the developers of eFa and maintainers of all
3rd party packages!
!!!!!!!!!!!!!!!!!!DO NOT BUILD ON EXISTING SYSTEMS!!!!!!!!!!!!!!!!!!!!!
#######################################################################
# install using install.efa-project.org #1
#######################################################################
curl -sSL https://install.efa-project.org | bash
#######################################################################
# install using install.efa-project.org #2
#######################################################################
curl -sSL https://install.efa-project.org > build.bash
sudo bash build.bash
#######################################################################
# install on a vps, LXC container, or other existing CentOS instance
#######################################################################
curl -sSL https://install.efa-project.org > build.bash
chmod +x build.bash
./build.bash testing
#######################################################################
# Building using github clone for development
#######################################################################
For development purposes, you can clone the repo and use devbuild.sh
to build all rpm packages and install on a fresh CentOS 7
yum install git-core
git clone https://github.com/E-F-A/v4
cd v4/build
chmod +x devbuild.sh
./devbuild.sh
#######################################################################
# create docker container - based on CentOS 7
#######################################################################
Create docker image:
yum install git-core / apt install git
git clone https://github.com/E-F-A/v4
cd v4/build/docker
cp ../build.bash .
docker build -t efa .
Create docker container:
docker run --restart unless-stopped \
--name efa \
--hostname efa \
-e DOMAINNAME=local \
-e ADMINEMAIL=admin@local \
-e USERNAME=admin \
-e efauserpwd=adminpwd \
-e CLIUSERNAME=admin \
-e efaclipwd=cliadminpwd \
-e KEYBOARD=no \
-e MAILSERVER=mail.local \
-e IANACODE=au \
-e ORGNAME=Local \
-e TZ=Australia/Melbourne \
-v /etc/localtime:/etc/localtime:ro \
-v /mnt/efa/dcc:/var/dcc \
-v /mnt/efa/mysql:/var/lib/mysql \
-v /mnt/efa/spamassassin:/var/lib/spamassassin \
-v /mnt/efa/backup:/var/eFa/backup \
-v /mnt/efa/clamav:/var/lib/clamav \
-v /mnt/efa/clamav-us:/var/lib/clamav-unofficial-sigs \
-v /mnt/efa/postfix:/var/spool/postfix \
-v /mnt/efa/mailscanner:/var/spool/MailScanner \
-v /mnt/efa/log:/var/log \
-it \
-p 22:22 \
-p 25:25 \
-p 80:80 \
-p 443:443 \
-p 587:587 \
-d efa
Container log file will show the output from /var/log/maillog when built:
docker logs efa -f