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
9331dbc5
Commit
9331dbc5
authored
Oct 08, 2016
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
merge z-push-from-name #940
parents
8b5eba21
d8316119
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
backend_imap.php
conf/zpush/backend_imap.php
+9
-7
webmail.sh
setup/webmail.sh
+2
-5
zpush.sh
setup/zpush.sh
+1
-0
No files found.
conf/zpush/backend_imap.php
View file @
9331dbc5
...
...
@@ -8,7 +8,7 @@
define
(
'IMAP_SERVER'
,
'127.0.0.1'
);
define
(
'IMAP_PORT'
,
993
);
define
(
'IMAP_OPTIONS'
,
'/ssl/norsh/novalidate-cert'
);
define
(
'IMAP_DEFAULTFROM'
,
''
);
define
(
'IMAP_DEFAULTFROM'
,
'
sql
'
);
define
(
'SYSTEM_MIME_TYPES_MAPPING'
,
'/etc/mime.types'
);
define
(
'IMAP_AUTOSEEN_ON_DELETE'
,
false
);
...
...
@@ -23,15 +23,16 @@ define('IMAP_FOLDER_TRASH', 'TRASH');
define
(
'IMAP_FOLDER_SPAM'
,
'SPAM'
);
define
(
'IMAP_FOLDER_ARCHIVE'
,
'ARCHIVE'
);
// not used
define
(
'IMAP_FROM_SQL_DSN'
,
''
);
define
(
'IMAP_FROM_SQL_DSN'
,
'sqlite:STORAGE_ROOT/mail/roundcube/roundcube.sqlite'
);
define
(
'IMAP_FROM_SQL_USER'
,
''
);
define
(
'IMAP_FROM_SQL_PASSWORD'
,
''
);
define
(
'IMAP_FROM_SQL_OPTIONS'
,
serialize
(
array
(
PDO
::
ATTR_PERSISTENT
=>
true
)));
define
(
'IMAP_FROM_SQL_QUERY'
,
"select first_name, last_name, mail_address from users where mail_address = '#username@#domain'"
);
define
(
'IMAP_FROM_SQL_FIELDS'
,
serialize
(
array
(
'first_name'
,
'last_name'
,
'mail_address'
)));
define
(
'IMAP_FROM_SQL_FROM'
,
'#first_name #last_name <#mail_address>'
);
define
(
'IMAP_FROM_SQL_QUERY'
,
"SELECT name, email FROM identities i INNER JOIN users u ON i.user_id = u.user_id WHERE u.username = '#username' AND i.standard = 1 AND i.del = 0 AND i.name <> ''"
);
define
(
'IMAP_FROM_SQL_FIELDS'
,
serialize
(
array
(
'name'
,
'email'
)));
define
(
'IMAP_FROM_SQL_FROM'
,
'#name <#email>'
);
define
(
'IMAP_FROM_SQL_FULLNAME'
,
'#name'
);
// not used
define
(
'IMAP_FROM_LDAP_SERVER'
,
''
);
define
(
'IMAP_FROM_LDAP_SERVER_PORT'
,
'389'
);
define
(
'IMAP_FROM_LDAP_USER'
,
'cn=zpush,ou=servers,dc=zpush,dc=org'
);
...
...
@@ -40,6 +41,7 @@ define('IMAP_FROM_LDAP_BASE', 'dc=zpush,dc=org');
define
(
'IMAP_FROM_LDAP_QUERY'
,
'(mail=#username@#domain)'
);
define
(
'IMAP_FROM_LDAP_FIELDS'
,
serialize
(
array
(
'givenname'
,
'sn'
,
'mail'
)));
define
(
'IMAP_FROM_LDAP_FROM'
,
'#givenname #sn <#mail>'
);
define
(
'IMAP_FROM_LDAP_FULLNAME'
,
'#givenname #sn'
);
define
(
'IMAP_SMTP_METHOD'
,
'sendmail'
);
...
...
setup/webmail.sh
View file @
9331dbc5
...
...
@@ -160,11 +160,8 @@ chmod 775 $STORAGE_ROOT/mail
chown
root.www-data
$STORAGE_ROOT
/mail/users.sqlite
chmod
664
$STORAGE_ROOT
/mail/users.sqlite
# Run Roundcube database migration script, if the database exists (it's created by
# Roundcube on first use).
if
[
-f
$STORAGE_ROOT
/mail/roundcube/roundcube.sqlite
]
;
then
/usr/local/lib/roundcubemail/bin/updatedb.sh
--dir
/usr/local/lib/roundcubemail/SQL
--package
roundcube
fi
# Run Roundcube database migration script (database is created if it does not exist)
/usr/local/lib/roundcubemail/bin/updatedb.sh
--dir
/usr/local/lib/roundcubemail/SQL
--package
roundcube
# Enable PHP modules.
php5enmod mcrypt
...
...
setup/zpush.sh
View file @
9331dbc5
...
...
@@ -53,6 +53,7 @@ cp conf/zpush/backend_combined.php /usr/local/lib/z-push/backend/combined/config
# Configure IMAP
rm
-f
/usr/local/lib/z-push/backend/imap/config.php
cp
conf/zpush/backend_imap.php /usr/local/lib/z-push/backend/imap/config.php
sed
-i
"s%STORAGE_ROOT%
$STORAGE_ROOT
%"
/usr/local/lib/z-push/backend/imap/config.php
# Configure CardDav
rm
-f
/usr/local/lib/z-push/backend/carddav/config.php
...
...
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