setup-kolab needs more tweeks

Daniel Hoffend dh at dotlan.net
Wed Mar 11 23:10:26 CET 2015


The user/group isn't something you can fix with setup-kolab. setup-kolab 
is just preparing the configuration files for postfix, cyrus, etc. The 
socket (where the lmtp is pointing towards) is created by cyrus-imapd at 
runtime/start afaik.

You want to take a look at the /etc/cyrus.conf

lmtpunix    cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1

In your case (where your server is running in a chrooted environment you 
must take a closer look on how to get this socket imported. I guess 
user/group usually matches the one cyrus is running too.

--
Regards
Daniel

------ Originalnachricht ------
Von: "Thomas Spuhler" <thomas.spuhler at btspuhler.com>
An: users at lists.kolab.org
Gesendet: 11.03.2015 19:24:40
Betreff: setup-kolab needs more tweeks

>I now got the kolab stack on Mageia5 pretty much working out of the 
>box. However, I need to change a
>permission in the setup-script and need help.
>We are running postfix chrooted
>
>I need /var/spool/postfix/extern/cyrus, user cyrus group postfix and 
>mode 750
>
>I am using this patch wehn building pykolab, but how do I change the 
>permission?
>
>diff -ur pykolab-0.7.6/pykolab/setup/setup_mta.py 
>pykolab-0.7.6-mga/pykolab/setup/setup_mta.py
>--- pykolab-0.7.6/pykolab/setup/setup_mta.py 2015-01-14 
>04:38:40.000000000 -0700
>+++ pykolab-0.7.6-mga/pykolab/setup/setup_mta.py 2015-01-31 
>10:53:01.357098136 -0700
>@@ -165,7 +165,7 @@
>
>  query_filter = 
>(&(|(mailAlternateAddress=%%s)(alias=%%s)(mail=%%s))(objectclass=kolabinetorgperson))
>  result_attribute = mail
>-result_format = lmtp:unix:/var/lib/imap/socket/lmtp
>+result_format = lmtp:unix:extern/cyrus/lmtp
>  """ % {
>                          "base_dn": conf.get('ldap', 'base_dn'),
>                          "server_host": server_host,
>@@ -244,7 +244,7 @@
>          fp.close()
>
>      fp = open('/etc/postfix/transport', 'a')
>- fp.write("\n# Shared Folder Delivery for %(domain)s:
>\nshared@%(domain)s\t\tlmtp:unix:/var/lib/imap/socket/lmtp\n" % 
>{'domain': conf.get('kolab',
>'primary_domain')})
>+ fp.write("\n# Shared Folder Delivery for %(domain)s:
>\nshared@%(domain)s\t\tlmtp:unix:extern/cyrus/lmtp\n" % {'domain': 
>conf.get('kolab',
>'primary_domain')})
>      fp.close()
>
>      subprocess.call(["postmap", "/etc/postfix/transport"])
>
>
>
>--
>Best regards
>Thomas Spuhler
>
>All of my e-mails have a valid digital signature
>ID 60114E63
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5595 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20150311/e91f8f04/attachment.bin>


More information about the users mailing list