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
fba4d470
Commit
fba4d470
authored
Feb 16, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install opendmarc to add Authentication-Results headers for DMARC too
parent
143bbf37
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
status_checks.py
management/status_checks.py
+1
-0
dkim.sh
setup/dkim.sh
+15
-5
No files found.
management/status_checks.py
View file @
fba4d470
...
@@ -65,6 +65,7 @@ def run_services_checks(env, output):
...
@@ -65,6 +65,7 @@ def run_services_checks(env, output):
{
"name"
:
"Postgrey"
,
"port"
:
10023
,
"public"
:
False
,
},
{
"name"
:
"Postgrey"
,
"port"
:
10023
,
"public"
:
False
,
},
{
"name"
:
"Spamassassin"
,
"port"
:
10025
,
"public"
:
False
,
},
{
"name"
:
"Spamassassin"
,
"port"
:
10025
,
"public"
:
False
,
},
{
"name"
:
"OpenDKIM"
,
"port"
:
8891
,
"public"
:
False
,
},
{
"name"
:
"OpenDKIM"
,
"port"
:
8891
,
"public"
:
False
,
},
{
"name"
:
"OpenDMARC"
,
"port"
:
8893
,
"public"
:
False
,
},
{
"name"
:
"Memcached"
,
"port"
:
11211
,
"public"
:
False
,
},
{
"name"
:
"Memcached"
,
"port"
:
11211
,
"public"
:
False
,
},
{
"name"
:
"Sieve (dovecot)"
,
"port"
:
4190
,
"public"
:
True
,
},
{
"name"
:
"Sieve (dovecot)"
,
"port"
:
4190
,
"public"
:
True
,
},
{
"name"
:
"Mail-in-a-Box Management Daemon"
,
"port"
:
10222
,
"public"
:
False
,
},
{
"name"
:
"Mail-in-a-Box Management Daemon"
,
"port"
:
10222
,
"public"
:
False
,
},
...
...
setup/dkim.sh
100644 → 100755
View file @
fba4d470
...
@@ -10,7 +10,7 @@ source setup/functions.sh # load our functions
...
@@ -10,7 +10,7 @@ source setup/functions.sh # load our functions
source
/etc/mailinabox.conf
# load global vars
source
/etc/mailinabox.conf
# load global vars
# Install DKIM...
# Install DKIM...
apt_install opendkim opendkim-tools
apt_install opendkim opendkim-tools
opendmarc
# Make sure configuration directories exist.
# Make sure configuration directories exist.
mkdir
-p
/etc/opendkim
;
mkdir
-p
/etc/opendkim
;
...
@@ -48,15 +48,25 @@ fi
...
@@ -48,15 +48,25 @@ fi
chown
-R
opendkim:opendkim
$STORAGE_ROOT
/mail/dkim
chown
-R
opendkim:opendkim
$STORAGE_ROOT
/mail/dkim
chmod
go-rwx
$STORAGE_ROOT
/mail/dkim
chmod
go-rwx
$STORAGE_ROOT
/mail/dkim
# Add OpenDKIM as a milter to postfix, which is how it intercepts outgoing
tools/editconf.py /etc/opendmarc.conf
-s
\
# mail to perform the signing (by adding a mail header).
"Syslog=true"
\
# Be careful. If we add other milters later, it needs to be concatenated on the smtpd_milters line. #NODOC
"Socket=inet:8893@[127.0.0.1]"
# Add OpenDKIM and OpenDMARC as milters to postfix, which is how OpenDKIM
# intercepts outgoing mail to perform the signing (by adding a mail header)
# and how they both intercept incoming mail to add Authentication-Results
# headers. The order possibly/probably matters: OpenDMARC relies on the
# OpenDKIM Authentication-Results header already being present.
#
# Be careful. If we add other milters later, this needs to be concatenated
# on the smtpd_milters line.
tools/editconf.py /etc/postfix/main.cf
\
tools/editconf.py /etc/postfix/main.cf
\
smtpd_milters
=
inet:127.0.0.1:8891
\
"smtpd_milters=inet:127.0.0.1:8891 inet:127.0.0.1:8893"
\
non_smtpd_milters
=
\$
smtpd_milters
\
non_smtpd_milters
=
\$
smtpd_milters
\
milter_default_action
=
accept
milter_default_action
=
accept
# Restart services.
# Restart services.
restart_service opendkim
restart_service opendkim
restart_service opendmarc
restart_service postfix
restart_service postfix
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