-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbsdmail.sh
More file actions
executable file
·55 lines (50 loc) · 1.49 KB
/
Copy pathbsdmail.sh
File metadata and controls
executable file
·55 lines (50 loc) · 1.49 KB
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
#!/bin/sh
# BEFORE INSTALLING
#
# Have a FreeBSD server with a static IP and DNS records (usually A/AAAA)
# that point your domain name to it.
#
# AFTER INSTALLING
#
# More DNS records will be given to you to install. One of them will be
# different for every installation and is uniquely generated on your machine.
umask 0022
BSDMAIL_ROOT="$(cd "$(dirname "$0")" && pwd)"
# shellcheck source=lib/common.sh
. "$BSDMAIL_ROOT/lib/common.sh"
# shellcheck source=lib/config.sh
. "$BSDMAIL_ROOT/lib/config.sh"
# shellcheck source=lib/install.sh
. "$BSDMAIL_ROOT/lib/install.sh"
# shellcheck source=lib/firewall.sh
. "$BSDMAIL_ROOT/lib/firewall.sh"
# shellcheck source=lib/ssl.sh
. "$BSDMAIL_ROOT/lib/ssl.sh"
# shellcheck source=lib/postfix.sh
. "$BSDMAIL_ROOT/lib/postfix.sh"
# shellcheck source=lib/dovecot.sh
. "$BSDMAIL_ROOT/lib/dovecot.sh"
# shellcheck source=lib/opendkim.sh
. "$BSDMAIL_ROOT/lib/opendkim.sh"
# shellcheck source=lib/security.sh
. "$BSDMAIL_ROOT/lib/security.sh"
# shellcheck source=lib/services.sh
. "$BSDMAIL_ROOT/lib/services.sh"
# shellcheck source=lib/dns.sh
. "$BSDMAIL_ROOT/lib/dns.sh"
# shellcheck source=lib/finalize.sh
. "$BSDMAIL_ROOT/lib/finalize.sh"
bsdmail_load_config
bsdmail_check_dns
bsdmail_configure_pf
bsdmail_setup_ssl
bsdmail_verify_ssl
bsdmail_configure_postfix_main
bsdmail_configure_postfix_master
bsdmail_configure_dovecot
bsdmail_configure_opendkim
bsdmail_configure_postfix_milters
bsdmail_configure_security
bsdmail_enable_services
bsdmail_restart_services
bsdmail_finalize