Updates for 5.2

127 views
Skip to first unread message

Marcus Bointon

unread,
May 8, 2013, 5:12:51 AM5/8/13
to mail...@googlegroups.com
Hi All,

I've been working on the 5.2 setup - there was lots that needed changing! It's all lurking in my devel branch: https://github.com/Synchro/mailserv/tree/devel

Running with the stock chrooted nginx isn't really practical - there are inherently so many locally inter-connected services that we'd end up putting more or less everything inside the chroot, removing the point of having it. So I scrapped that and have reverted to installing a separate nginx package.

Changes:

Install memcached
Use memcached for roundcube sessions instead of db
Add memcached, nginx and PHP status to dashboard page
Add god tasks for Memcache and freshclam
Added imap log to admin log page
Added an index section to admin logs page
Removed the user alias attribute as it was breaking adding new users in admin?
Install specific versions of packages to avoid install-time questions - this does mean that the installation is specific to OpenBSD 5.2, but I think we should probably build branches for each anyway.
Added ability to install from a specific named branch instead of just 'devel'.
Add more ntp servers
Add a favicon
Switched roundcube to use mysqli, mysqlnd and pdo.
Add some PHP packages to enable various extra roundcube features for image handling etc
Use unix sockets instead of TCP connections wherever feasible

Overall the install now works much more smoothly, asking only which version of postfix you want.

Of course all this is done just as OpenBSD 5.3 is released! The ability to install from a named branch should make development for that much easier.

Through all of this I've mainly been concerned with the UI and IMAP config, so all the SMTP/Spam/AV stuff could do with testing - please give it a go.

Marcus

David Gnojek

unread,
May 14, 2013, 5:20:28 AM5/14/13
to mail...@googlegroups.com
Hi Marcus,

cool, I will see. btw have not you problem starting  Dovecot properly caused by low open files limit  (ulimit -n >  128)


Cheers

David



Marcus

--
You received this message because you are subscribed to the Google Groups "mailserv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailserv+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Marcus Bointon

unread,
May 14, 2013, 5:23:14 AM5/14/13
to mail...@googlegroups.com
On 14 May 2013, at 11:20, David Gnojek <gno...@gmail.com> wrote:

cool, I will see. btw have not you problem starting  Dovecot properly caused by low open files limit  (ulimit -n >  128) 

I've incorporated the fix for that too.

I''m still having a bit of trouble getting roundcube to talk to memcached via a socket, even though it works fine when tested manually.

Marcus

David Gnojek

unread,
May 18, 2013, 5:03:54 AM5/18/13
to mail...@googlegroups.com
I think this memcached via socked could be related to the low open files limit and maxproc size too.have you tried to experiment with maxproc-cur/max and openfiles in login.conf? but just guessing now.

here are some my notes when obsd5.2 had installed. watching your notes and  seems you solved it in your branch too even better.


1st problem Symlink and chroot path /var/www/webmail/webmail

solution
rm /var/www/webmail/webmail
cd /var/www/webmail
ln -s roundcubemail-0.9.0 webmail


2nd problem RoundCube blank screen

PHP Fatal error:  Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in
/var/www/i-bs.pl/rcubegit/program/lib/Roundcube/rcube_db_mysql.php on
line 127

solved installing PDO library
http://ftp.openbsd.dk/pub/OpenBSD/5.2/packages/i386/php-pdo_mysql-5.3.14p0.tgz

ln -sf /etc/php-5.3.sample/pdo_mysql.ini /etc/php-5.3/pdo_mysql.ini

3rd problem

dovecot does not start properly
because of low files.
trying to solve with uname -Sn 1024 and with a dovecot rule in login.conf
but mostlikely reboot is necessary to apply this change

dovecot:\
        :openfiles-cur=1024:\
        :openfiles-max=2048:\
        :tc=daemon:

4rd
it does not create users home folder
solved commenting 'alias' in
admin/app/models/user.rb
~                         

btw: because of interested tried the obsd5.3 + mailserv installation and hoped the troubles related to system level will be vanished and mailserv53 installation will run more easy but not.new think has happened there. RoR has been taken away from repository so we will have to install it using gem.

Cheers

David


--

David Gnojek

unread,
May 26, 2013, 11:28:39 AM5/26/13
to mail...@googlegroups.com
Hi,
up to now:
+ added Marcus install.sh with extended devel installation switch
so now you can install f.e ./install.sh --devel next-devel-branch-name
+ created a devel-5.3 fork for mailserv5.3 plays
   so for installation under bsd5.3 type:
   #/var/mailserv/install/install.sh --devel devel-5.3

+ in 10_install script is installed most of packages directly so less choices and annoying questions during installation (practically only postfix)

+ updated ssl security configuration for nginx tahnks Graham&Marcus

so the mailserv52 works, still until first devel branch
because still resting some final solution for  'low open files limit' for
dovecot after installation.
 added a reboot command after install which is now only working way to activate
higher openfiles limit and start dovecot properly.
until now I have tried this ways to enable higher limits for dovecot from cmd line to avoid rebooting:
 ulimit -Sn 1024
 sysctl kern.openmaxfiles=7030
 added dovecot class to /etc/login.conf

for Markus:
mentioned when played with the synchro/devel fork the installation got frozen me during  20_install...sh  just after rake command done. I think the tricky freezing could be caused when the dovecot class was pasted in the end of  login.conf or sysctl  changed.
strange is when I interrupted installation and run 20_install script  manually once again it runs fine til the end.

Cheers
David


Reply all
Reply to author
Forward
0 new messages