Roundcube for macOS Server

What’s new in version 1.3.6?
Compatibility
  • Mac OS X Server 10.8.3 w/ Server 2.x – through -> 10.13.x High Sierra w/ Server.app 5.6.x
Why we made this installer

Mac OS X Server administrators usually wear many hats (entrepreneur, designer, etc.). We choose the Mac expecting it to have a nice GUI interface and all our basic needs to be met out of the box.
Apple used to provide webmail services in earlier versions of OS X Server (10.7 and earlier). For reasons unknown, webmail was dropped in 10.8 leaving it up to administrators to roll their own solution.

An OS X Server administrator with a Unix background could jump through all the hoops in a couple of hours – but lets face it, most OS X Server administrators would be stuck facing a day or more of tutorials, articles and frustration to get webmail working on their server.

As consultants specializing in mail services for OS X Server, we found ourselves repeating the same steps over and over with each new server installation. So we decided to apply our rule of thumb: if a repeatable process takes more than 30 minutes – document, automate and share.

What does the installer do?

Our installer for Roundcube for OS X Server installs Roundcube Webmail as a simple WebApp available to any website configured inside Server.app. When the WebApp is enabled (by default, its enabled for all sites), you can access webmail by adding /mail /webmail or /roundcube to your website URL.

Please browse our FAQs for answers to most questions.

See current changelog for a complete list of fixes and additions.
Please read our FAQs as well.

The topicdesk Roundcube installer is a free download.

 

 

212 replies
Newer Comments »
  1. Willow
    Willow says:

    Help, thanks a lot for this.
    Now my roundcube respond 😀 and the webmail works. However i have a mistake whith manage sieve: when i want to connect on filter i have a message that he couldn’t connect to server. I test the command cardav but no way.
    Any idea?

  2. Willow
    Willow says:

    It’s again me…
    I solve my problem: the 0,95 files of round cube was already in the path of round cube, i put the file on the trash and round cube was broken. So i take the config’s file of managesieve and put them in round cube 1.03 file and it’s works.
    thanks again

  3. Guest
    Guest says:

    Can’t get filters working on Mavericks server. The error is “Unable to connect to manage sieve server”.

    Port 4190 is open and listening.

    /Library/Logs/Mail/mail-err.log has these entries:

    Nov 27 22:46:52 managesieve-login: Warning: Auth connection closed with 1 pending requests (max 0 secs, pid=57430, EOF)
    Nov 27 22:46:52 auth: Fatal: master: service(auth): child 56954 killed with signal 11 (core dumps disabled)
    Nov 27 22:54:57 managesieve-login: Warning: Auth connection closed with 1 pending requests (max 0 secs, pid=57706, EOF)
    Nov 27 22:54:57 auth: Fatal: master: service(auth): child 57435 killed with signal 11 (core dumps disabled)
    Nov 27 22:59:04 managesieve-login: Warning: Auth connection closed with 1 pending requests (max 0 secs, pid=57918, EOF)
    Nov 27 22:59:04 auth: Fatal: master: service(auth): child 57712 killed with signal 11 (core dumps disabled)

  4. Oliver
    Oliver says:

    Great installer for those who want webmail back on Os X Server 10.10.x, it works flawlessly.
    I have some little issues I’d like to work out so I could go on production. – from 10.6.8 to 10.10.x
    I can’t get autoreply/vacation to work ([url]”/faqs/roundcube-faq/192-why-do-vacation-messages-not-work-with-roundcube-webmail”[/url]) nor find some config settings ([url]”/faqs/roundcube-faq/195-topicdesk-roundcube-logs”[/url]) as I see nowhere the main “main.inc.php”. Does main.inc.php is now config.inc.php.

    Any insight would be appreciated, but I’ll continue digging by myself.
    thx.

  5. Jeff Johnson
    Jeff Johnson says:

    For the filter (vacation message) to work, make sure the filter set and the filter are both enabled.
    When you create the filter/vacation-message, in the ‘Additional EMail Addresses’ box, you must put your email even if its not an ‘additional’ address… If that box doesn’t contain your address, it won’t work.

    We’ll add this to a FAQ.

  6. Oliver
    Oliver says:

    OK I figure WHERE to add the additional email when creating the filter.
    Right in front of me 🙂
    And for the the log being created it is indeed in the defaults.inc.php

  7. Jeff Johnson
    Jeff Johnson says:

    Regarding config files.

    In version of roundcube before 1.0, you had:
    main.inc.php
    db.inc.php

    In 1.0+ things changed, the above were replaced with:
    defaults.inc.php
    contains the roundcube defaults for all settings previously in main.inc.php and db.in.php
    config.inc.php
    these are ‘your’ settings.. this is where you override any settings that are in defaults.inc.php

    The idea is that defaults.inc.php can change when you update roundcube.
    Any of your settings will remain though, because config.inc.php overrides them.

    Put any of your settings in config.inc.php

    main.inc.php and db.inc.php can be discarded.

    The roundcube documentation and release notes may help.
    http://roundcube.net/news/2014/04/07/roundcube-webmail-1.0.0-released/

  8. Jeff Johnson
    Jeff Johnson says:

    @Oliver

    Don’t change defaults.inc.php
    Any settings from defaults.inc.php that you would like to be different should go into config.inc.php

    Simply copy the line from defaults and paste to config.inc.php with your change.

  9. Olivier
    Olivier says:

    @Jeff

    yes I finaly did not touch the defaults.inc.php at all,
    as I realized this was not the correct way.
    So far everything is OK thanks to your script.

    Thank you for this !

    I’ve just try to get defaults.inc.php vacation_sieve ([url]”https://github.com/arodier/Roundcube-Plugins”[/url]) plugin working with no success at all. it is the simpliest and nicer one I’ve found. as it does not rely on postfixadmin or vacation binary as other plugins.

    Just can’t figure out to have the Os X GeneratedUID instead of the for the rules path, so I always have an error reading and saving.
    Weird too is that it seems to be the _www user and not _dovecot user acting ? and your setup works ok using the _dovecot user.

    I know there is a vacation sieve with your setup and it is working
    BUT
    it only send ONE email !? during the date range, and I want (would like) a responder for each email received.
    I’m not good enough – well I just don’t know at all – php, so even if I’ve tried many solution I did not suceed is saving the script.
    I did read the manage sieve.php as it is working ot try to figure out how to do but that’s too much for me.

    Is there a way to alter some config, somewhere, so an email is sent each time and not only once ?!
    I don’t get the purpose, and did not figure where was that parameter.

    I’d like to move 200 emails to deal from a 10.6 Server,
    we need webmail for sure, as I don’t see myself adding a script by hand each time someone goes in holidays.

    I’ll dig a bit more as I WANT this 🙂

    thx for all the help.

    cheers.

  10. Jeff Johnson
    Jeff Johnson says:

    @Oliver

    I’m not going to be much of a help with plugins.

    Our goal is to simplify the installation of roundcube (and its dependencies) and as part of this – we include a couple preconfigured plugins for convenience. I can’t claim any expertise with these plugins or others.

    You’ve probably already explored this site – but just in case:
    http://www.roundcubeforum.net

  11. Olivier
    Olivier says:

    @Jeff,

    Don’t worry, you did a very great job.
    I managed ot get the correct GUID with php exec, but still have the “Invalid script name … stuff.
    I’ll work on this when I have time and I now am going to get some rest.

    my best.

  12. Mike O'Connor
    Mike O'Connor says:

    Just curious if the script “touches” the php.ini file. The script worked flawlessly but just after I ran it I noticed that all 20 of my WordPress sites had lost the ability to be updated. The cause of the problem was the “max_post_size” parameter in PHP.INI had changed from 8M to 351 — which meant that various commands were failing. All good here, I changed PHP.INI back, but I wasn’t sure where the problem came from. Since it started right after I ran the script, I thought I’d post this here.

  13. Jeff Johnson
    Jeff Johnson says:

    @Mike
    We do modify /etc/php.ini
    This is a reqirement because we check for mcrypt and install if its missing, along with that – we update some settings to better accomodate the typical roundcube installation.

    I’ll contact you directly – I’d like to know more, and if we have a logic issue with the install script – we’ll fix that quickly.

    Jeff

  14. Jeff Johnson
    Jeff Johnson says:

    @Ricardo

    This is a ‘clean installation’ and does not retain user data.
    The database backend moves from postgres to sqlite, no data is retained from postgres.
    sqlite starts with a clean database.

    There are two types of addressbooks users can store addresses
    a) Built-in roundcube addressbook.
    This stores the data in the roundcube database.. your data is in postgres and not retained with the new sqlite version.

    b) CardDav Address Book
    If you have carddav enabled and working, users could store data in your carddav server.
    These addresses would be available on the new version because the data is not stored in the roundcube DB, its stored independent of roundcube.

    If your users stored contacts in the roundcube DB, then you will need to roll-back to your previous version.
    If your roundcube install was not working before upgrading – then you probably have a damaged installation.
    I have no recovery option to recommend – although I’m sure its possible.

    If your postgres DB was working before the upgrade, then your postgres database should be fine and its simple to roll-back.
    You just need to link the WebApp symlink to your previous version.
    Here’s an example:
    # go to roundcube directory
    cd /usr/local/topicdesk/roundcube

    # list the backups
    ls

    # Update WebApp symlink to whichever version you want to load
    # This is an example with the previous version named: “0.9.5a_2014-12-07_15h57m”
    sudo ln -sfh 0.9.5a_2014-12-07_15h57m WebApp

    Thats it.. Roundcube will switch to your previous version.

    If you do this, and it works – don’t upgrade to the non-postgres version, there is no reason for you to do this.
    If you want to upgrade the version of roundube, it can be done without re-installing.

    Jeff

  15. Ricardo Ferriera
    Ricardo Ferriera says:

    @Jeff

    The database was working fine until last night i installed an update por OS X 9 and Server App and the database stop working.

    in order to have the service working again i installed the update of roundcube.

    All the contacts were on the Built-in round cube addressbook how can i recover the information and put it on the CardDav Address Book on my mac server.

    Can you contact me and help me solve this?

    Thanks

  16. Jeff Johnson
    Jeff Johnson says:

    @Ricardo

    The problem is the OS X Server updates break the postgres database.
    This is Apple’s installation of postgres. We configure roundcube to use Apple’s postgres.
    Once the apple update breaks the database, I haven’t had any luck repairing it. It can be repaired, but that not my area of expertise, so can’t advise.

    Hopefully you made a clone of your system before the server.app upgrade. If you did, consider rolling back to it.

    I can’t be of much help recovering/fixing your postgres DB…

    Jeff

  17. Ricardo Ferreira
    Ricardo Ferreira says:

    @Jeff

    I did a clone of my system before the server.app update but still can’t access the database.
    I have OS X 10.9.4 and when i try to open the server.app it tells me i need OS X 10.9.5, i guess OS X downloaded the server.app update but still don’t understand why the database is corrupt if the server.app can’t be run. everything was running smoothly yesterday

    Any orientation will be helpful.

  18. Jeff Johnson
    Jeff Johnson says:

    Ricardo
    You need to go back to exactly the way things were before.
    In your case, sounds like you should have 10.9.4 and Server 3.1.2
    A clone made before the udpates were downloaded and applied would have a working copy.
    I assume your postgres data is stored on your startup drive? if its not on the internal, then it would have been upgraded with your server app upgrade (the upgrade fails) then it wouldn’t work even if you roll-back. You would need to roll-back your data in this case also.
    Sound like you simply have a non-matching OS/Server.app.

    I can assist on a consulting basis – my mail is jeff at the domain topicdesk.com

  19. bertrand
    bertrand says:

    Hi

    everything works fine with this installer!
    Thanks a lot, because 10.9.5 + Server upgrade brokes the webmail.

    Where can i find documentation about setting up vacation reply?
    I’ve found how it can be set up

    Thanks
    Bertrand.

  20. Luis Rojas
    Luis Rojas says:

    Hi All,

    I was wondering if this needs to be installed in the same server as the mail server so that sieve rules work correctly. Our mail server is still running on a 10.6 server, but we are moving away from it slowly, web was one of the first to go, thus we want to install round cube, Can someone tell me if the manageSieve plugin will be able to handle the rules on our mail server? ( 10.6 )

  21. Jeff Johnson
    Jeff Johnson says:

    Luis
    Yes, roundcube will run on a machine other than your server including the ability to add/edit filters.

    Port 4190 must be open from roundcube server to mail server.

    You’ll need to adjust imap/smtp settings here:
    /usr/local/topicdesk/roundcube/WebApp/config/config.inc.php
    Adjust the managesieve plugin config
    /usr/local/topicdesk/roundcube/WebApp/plugins/managesieve/config.inc.php

    If you are using carddav, edit the roundcube carddav plugin config
    /usr/local/topicdesk/roundcube/WebApp/plugins/carddav/config.inc.php
    If you are NOT using carddav, disable the roundcube carddav plugin with
    sudo perl -p -i -e “s/’managesieve’, ‘carddav’/’managesieve’/g” /usr/local/topicdesk/roundcube/WebApp/config/config.inc.php

    Jeff

  22. Emil Haslund Larsen
    Emil Haslund Larsen says:

    Hi.

    Everything works great except for the vacation/filter. I have set it up (with alternate e-mail), but do not receive a reply most of the times I’m testing. Why is this? I can see the test mails pop in, but the answer is in most cases not being sent.

    Thanks in advance.
    Emil

Newer Comments »

Comments are closed.