💌 Mail app for ownCloud
PHP JavaScript CSS HTML Other
Clone or download
Latest commit 7561b14 Sep 27, 2016
Failed to load latest commit information.
.github remove useless information from CONTRIBUTING file and make it more cl… Aug 4, 2016
appinfo Merge pull request #1603 from owncloud/fix-automatic-redirects Aug 4, 2016
build move js build files to 'build' dir Aug 22, 2016
css attachment style fixes Aug 24, 2016
img add missing favicon types Mar 1, 2016
js Merge pull request #1635 from owncloud/tipsy-tooltip Sep 1, 2016
l10n [tx-robot] updated from transifex Aug 3, 2016
lib Merge pull request #1628 from owncloud/inject-prefill-data Aug 27, 2016
templates inject prefilled data Aug 25, 2016
tests fix phpunit whitelist path to re-enable code coverage reports Sep 1, 2016
.bowerrc use bower as dependency manager for front-end js libraries Aug 30, 2015
.gitattributes Prevent merge conflicts of the changelog files May 29, 2016
.gitignore move js build files to 'build' dir Aug 22, 2016
.jscsrc JSCS Fixes Aug 31, 2015
.jshintignore update npm packages; update jshint ignore list Sep 25, 2015
.jshintrc Fix jshint errors Aug 29, 2015
.scrutinizer.yml ignore test files on Scrutinizer Sep 1, 2016
.travis.yml clean up travis file and fix PostgreSQL Aug 24, 2016
CHANGELOG.md update changelog for 0.5.2 Jun 16, 2016
Gruntfile.js fix license headers Aug 4, 2016
Makefile adjust packaging Aug 22, 2016
README.md Moved to Nextcloud Sep 27, 2016
bower.json fix capitalization, update authors in package.json Aug 4, 2016
composer.json update horde libs Jul 12, 2016
composer.lock update horde libs Jul 12, 2016
karma.conf.js sync karma require config with runtime require config Jul 6, 2016
package.json fix capitalization, update authors in package.json Aug 4, 2016
translation-extractor.php add license header script and update php+js license headers Aug 4, 2016



This repo is no longer maintained. We moved the development of this app to Nextcloud instead.

Build Status Scrutinizer Code Quality Code Coverage PHP Dependency Status JS Dependency Status Bountysource

An email app for ownCloud and Nextcloud

Why is this so awesome?

  • 🚀 Integration with other ownCloud apps! Currently Contacts, Calendar & Files – more to come.
  • 📥 Multiple mail accounts! Personal and company account? No problem, and a nice unified inbox.
  • 🔒 Send & receive encrypted emails! Using the great Mailvelope browser extension.
  • 🙈 We’re not reinventing the wheel! Based on the great Horde libraries.

And in the works for the coming versions:


In your ownCloud, simply navigate to »Apps«, choose the category »Productivity«, find the Mail app and enable it. Then open the Mail app from the app menu. Put in your email account credentials and off you go!

If you experience any issues or have enhancement suggestions you can report them in our issue tracker. Please follow the issue template so we get the info we need to be able to debug and fix the problem. Thanks!


Christoph Wurst, Thomas Müller, Jan-Christoph Borchardt, Steffen Lindner and many more

If you’d like to join, just go through the issue list and fix some. :) We’re also in #owncloud-mail on freenode IRC.



If you can not access your Gmail account use https://accounts.google.com/DisplayUnlockCaptcha to unlock your account.


If you can not access your Outlook.com account try to enable the 'Two-Factor Verification' (https://account.live.com/proofs/Manage) and setup an app password (https://account.live.com/proofs/AppPassword), which you then use for the ownCloud Mail app.

Dovecot IMAP

If your Dovecot IMAP server prefixes all folders with INBOX, ownCloud Mail does not work correcty.

Check /etc/dovecot/dovecot.conf:

namespace inbox {
        separator = .
        # All folders prefixed
        # prefix = INBOX.
        prefix =
        inbox = yes
        type = private

Developer setup info

Just clone this repo into your apps directory (ownCloud core installation needed). Additionally, npm is needed for installing JavaScript dependencies. On Debian and Ubuntu Systems it can be installed with the following command:

sudo apt-get install nodejs-legacy npm

Once npm is installed, PHP and JavaScript dependencies can be installed by running

make install-composer-deps
make optimize-js

Nightly builds

Instead of setting everything up manually, you can just download the nightly builds instead. These builds are updated every 12 hours - 00:00 (12:00 AM) and 12:00 (12:00 PM) UTC+0200, and are pre-configured with all the needed dependencies.

  1. Download
  2. Extract the tar archive to 'path-to-owncloud/apps'
  3. Navigate to »Apps«, choose the category »Productivity«, find the Mail app and enable it.

The nightly builds are provided by Daniel Hansson

Resetting the app

Connect to your database and run the following commands (oc_ is the default table prefix):

DELETE FROM oc_appconfig WHERE appid = 'mail';
DROP TABLE oc_mail_accounts;
DROP TABLE oc_mail_collected_addresses;


Certain advanced or experimental features need to be specifically enabled in your config.php:

Debug mode

You can enable IMAP and SMTP backend logging. A horde_imap.log for IMAP and horde_smtp.log for SMTP will appear in the same directory as your owncloud.log.

IMAP logging:

'app.mail.imaplog.enabled' => true

SMTP logging:

'app.mail.smtplog.enabled' => true

Server-side caching

Mailbox messages and accounts can be cached on the ownCloud server to reduce mail server load: This requires a valid memcache to be configured

'app.mail.server-side-cache.enabled' => true

Use php-mail for mail sending

You can use the php mail function to send mails. This is needed for some webhosters (1&1 (1und1)):

'app.mail.transport' => 'php-mail'