Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
981d162f
Commit
981d162f
authored
Aug 31, 2013
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write configuration info to /etc/mailinabox.conf; other cleanup
parent
2d8ee993
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
add_mail_user.sh
scripts/add_mail_user.sh
+1
-1
start.sh
scripts/start.sh
+6
-0
system.sh
scripts/system.sh
+0
-2
No files found.
scripts/add_mail_user.sh
View file @
981d162f
...
@@ -10,6 +10,6 @@ if [ -z "$EMAIL_PW" ]; then
...
@@ -10,6 +10,6 @@ if [ -z "$EMAIL_PW" ]; then
read
-e
-p
"Email Password: "
EMAIL_PW
read
-e
-p
"Email Password: "
EMAIL_PW
fi
fi
echo
"INSERT INTO users (email, password) VALUES ('
$EMAIL_ADDR
', '
`
sudo
doveadm pw
-s
SHA512-CRYPT
-p
$EMAIL_PW
`
');"
\
echo
"INSERT INTO users (email, password) VALUES ('
$EMAIL_ADDR
', '
`
doveadm pw
-s
SHA512-CRYPT
-p
$EMAIL_PW
`
');"
\
| sqlite3
$STORAGE_ROOT
/mail/users.sqlite
| sqlite3
$STORAGE_ROOT
/mail/users.sqlite
scripts/start.sh
View file @
981d162f
...
@@ -17,6 +17,7 @@ if [ -z "$PUBLIC_HOSTNAME" ]; then
...
@@ -17,6 +17,7 @@ if [ -z "$PUBLIC_HOSTNAME" ]; then
echo
"We've guessed a value. Just backspace it if it's wrong."
echo
"We've guessed a value. Just backspace it if it's wrong."
echo
"Josh uses box.occams.info as his hostname. Yours should"
echo
"Josh uses box.occams.info as his hostname. Yours should"
echo
"be similar."
echo
"be similar."
echo
read
-e
-i
"
`
hostname
`
"
-p
"Hostname: "
PUBLIC_HOSTNAME
read
-e
-i
"
`
hostname
`
"
-p
"Hostname: "
PUBLIC_HOSTNAME
fi
fi
...
@@ -25,6 +26,7 @@ if [ -z "$PUBLIC_IP" ]; then
...
@@ -25,6 +26,7 @@ if [ -z "$PUBLIC_IP" ]; then
echo
"Enter the public IP address of this machine, as given to"
echo
"Enter the public IP address of this machine, as given to"
echo
"you by your ISP. We've guessed a value, but just backspace"
echo
"you by your ISP. We've guessed a value, but just backspace"
echo
"it if it's wrong."
echo
"it if it's wrong."
echo
read
-e
-i
"
`
hostname
-i
`
"
-p
"Public IP: "
PUBLIC_IP
read
-e
-i
"
`
hostname
-i
`
"
-p
"Public IP: "
PUBLIC_IP
fi
fi
...
@@ -34,6 +36,10 @@ if [ -z "$STORAGE_ROOT" ]; then
...
@@ -34,6 +36,10 @@ if [ -z "$STORAGE_ROOT" ]; then
mkdir
-p
$STORAGE_ROOT
mkdir
-p
$STORAGE_ROOT
fi
fi
cat
>
/etc/mailinabox.conf
<<
EOF
;
STORAGE_ROOT=
$STORAGE_ROOT
EOF
.
scripts/system.sh
.
scripts/system.sh
.
scripts/dns.sh
.
scripts/dns.sh
.
scripts/mail.sh
.
scripts/mail.sh
...
...
scripts/system.sh
View file @
981d162f
...
@@ -20,5 +20,3 @@ if [ -z "$DISABLE_FIREWALL" ]; then
...
@@ -20,5 +20,3 @@ if [ -z "$DISABLE_FIREWALL" ]; then
ufw
--force
enable
;
ufw
--force
enable
;
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment