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
b9ca74c9
Commit
b9ca74c9
authored
Jan 31, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement Mozilla (e.g. Thunderbird) autoconfiguration file
fixes #241
parent
7e05d747
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
mozilla-autoconfig.xml
conf/mozilla-autoconfig.xml
+44
-0
nginx.conf
conf/nginx.conf
+3
-0
web.sh
setup/web.sh
+10
-0
No files found.
conf/mozilla-autoconfig.xml
0 → 100644
View file @
b9ca74c9
<?xml version="1.0"?>
<clientConfig
version=
"1.1"
>
<emailProvider
id=
"PRIMARY_HOSTNAME"
>
<domain>
PRIMARY_HOSTNAME
</domain>
<displayName>
PRIMARY_HOSTNAME (Mail-in-a-Box)
</displayName>
<displayShortName>
PRIMARY_HOSTNAME
</displayShortName>
<incomingServer
type=
"imap"
>
<hostname>
PRIMARY_HOSTNAME
</hostname>
<port>
993
</port>
<socketType>
SSL
</socketType>
<username>
%EMAILADDRESS%
</username>
<authentication>
password-cleartext
</authentication>
</incomingServer>
<outgoingServer
type=
"smtp"
>
<hostname>
PRIMARY_HOSTNAME
</hostname>
<port>
587
</port>
<socketType>
STARTTLS
</socketType>
<username>
%EMAILADDRESS%
</username>
<authentication>
password-cleartext
</authentication>
<addThisServer>
true
</addThisServer>
<useGlobalPreferredServer>
true
</useGlobalPreferredServer>
</outgoingServer>
<documentation
url=
"https://PRIMARY_HOSTNAME/"
>
<descr
lang=
"en"
>
PRIMARY_HOSTNAME website.
</descr>
</documentation>
</emailProvider>
<webMail>
<loginPage
url=
"https://PRIMARY_HOSTNAME/mail/"
/>
<loginPageInfo
url=
"https://PRIMARY_HOSTNAME/mail/"
>
<username>
%EMAILADDRESS%
</username>
<usernameField
id=
"rcmloginuser"
name=
"_user"
/>
<passwordField
id=
"rcmloginpwd"
name=
"_pass"
/>
<loginButton
id=
"rcmloginsubmit"
/>
</loginPageInfo>
</webMail>
<clientConfigUpdate
url=
"https://PRIMARY_HOSTNAME/.well-known/autoconfig/mail/config-v1.1.xml"
/>
</clientConfig>
conf/nginx.conf
View file @
b9ca74c9
...
...
@@ -38,6 +38,9 @@ server {
location
=
/mailinabox.mobileconfig
{
alias
/var/lib/mailinabox/mobileconfig.xml
;
}
location
=
/.well-known/autoconfig/mail/config-v1.1.xml
{
alias
/var/lib/mailinabox/mozilla-autoconfig.xml
;
}
# Roundcube Webmail configuration.
rewrite
^/mail
$
/mail/
redirect
;
...
...
setup/web.sh
View file @
b9ca74c9
...
...
@@ -53,6 +53,16 @@ cat conf/ios-profile.xml \
>
/var/lib/mailinabox/mobileconfig.xml
chmod
a+r /var/lib/mailinabox/mobileconfig.xml
# Create the Mozilla Auto-configuration file which is exposed via the
# nginx configuration at /.well-known/autoconfig/mail/config-v1.1.xml.
# The format of the file is documented at:
# https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat
# and https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration/FileFormat/HowTo.
cat
conf/mozilla-autoconfig.xml
\
|
sed
"s/PRIMARY_HOSTNAME/
$PRIMARY_HOSTNAME
/"
\
>
/var/lib/mailinabox/mozilla-autoconfig.xml
chmod
a+r /var/lib/mailinabox/mozilla-autoconfig.xml
# make a default homepage
if
[
-d
$STORAGE_ROOT
/www/static
]
;
then
mv
$STORAGE_ROOT
/www/static
$STORAGE_ROOT
/www/default
;
fi
# migration #NODOC
mkdir
-p
$STORAGE_ROOT
/www/default
...
...
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