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
1cc81e48
Commit
1cc81e48
authored
Sep 04, 2013
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase dovecot mx connections per mailbox
parent
a50f30c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
mail.sh
scripts/mail.sh
+10
-1
No files found.
scripts/mail.sh
View file @
1cc81e48
...
@@ -151,8 +151,11 @@ sed -i "s/#port = 110/port = 0/" /etc/dovecot/conf.d/10-master.conf
...
@@ -151,8 +151,11 @@ sed -i "s/#port = 110/port = 0/" /etc/dovecot/conf.d/10-master.conf
# in a manner that made postfix configuration above easy.
# in a manner that made postfix configuration above easy.
#
#
# We also have dovecot listen on port 10026 (localhost only) for LMTP
# We also have dovecot listen on port 10026 (localhost only) for LMTP
# in case we have other services that want to deliver local mail, namly
# in case we have other services that want to deliver local mail, nam
e
ly
# spampd.
# spampd.
#
# Also increase the number of allowed connections per mailbox because we
# all have so many devices lately.
cat
>
/etc/dovecot/conf.d/99-local.conf
<<
EOF
;
cat
>
/etc/dovecot/conf.d/99-local.conf
<<
EOF
;
service auth {
service auth {
unix_listener /var/spool/postfix/private/auth {
unix_listener /var/spool/postfix/private/auth {
...
@@ -171,6 +174,10 @@ service lmtp {
...
@@ -171,6 +174,10 @@ service lmtp {
port = 10026
port = 10026
}
}
}
}
protocol imap {
mail_max_userip_connections = 20
}
EOF
EOF
# Drew Crawford sets the auth-worker process to run as the mail user, but we don't care if it runs as root.
# Drew Crawford sets the auth-worker process to run as the mail user, but we don't care if it runs as root.
...
@@ -189,6 +196,8 @@ mkdir -p $STORAGE_ROOT/ssl
...
@@ -189,6 +196,8 @@ mkdir -p $STORAGE_ROOT/ssl
if
[
!
-f
$STORAGE_ROOT
/ssl/ssl_certificate.pem
]
;
then
cp
/etc/dovecot/dovecot.pem
$STORAGE_ROOT
/ssl/ssl_certificate.pem
;
fi
if
[
!
-f
$STORAGE_ROOT
/ssl/ssl_certificate.pem
]
;
then
cp
/etc/dovecot/dovecot.pem
$STORAGE_ROOT
/ssl/ssl_certificate.pem
;
fi
if
[
!
-f
$STORAGE_ROOT
/ssl/ssl_private_key.pem
]
;
then
cp
/etc/dovecot/private/dovecot.pem
$STORAGE_ROOT
/ssl/ssl_private_key.pem
;
fi
if
[
!
-f
$STORAGE_ROOT
/ssl/ssl_private_key.pem
]
;
then
cp
/etc/dovecot/private/dovecot.pem
$STORAGE_ROOT
/ssl/ssl_private_key.pem
;
fi
#
# Ensure configuration files are owned by dovecot and not world readable.
# Ensure configuration files are owned by dovecot and not world readable.
chown
-R
mail:dovecot /etc/dovecot
chown
-R
mail:dovecot /etc/dovecot
chmod
-R
o-rwx /etc/dovecot
chmod
-R
o-rwx /etc/dovecot
...
...
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