<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>https://wiki.gacq.com/index.php?action=history&amp;feed=atom&amp;title=Cyrus_-_Basic_Configuration</id>
		<title>Cyrus - Basic Configuration - Historial de revisiones</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.gacq.com/index.php?action=history&amp;feed=atom&amp;title=Cyrus_-_Basic_Configuration"/>
		<link rel="alternate" type="text/html" href="https://wiki.gacq.com/index.php?title=Cyrus_-_Basic_Configuration&amp;action=history"/>
		<updated>2026-04-04T16:48:28Z</updated>
		<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>https://wiki.gacq.com/index.php?title=Cyrus_-_Basic_Configuration&amp;diff=1451&amp;oldid=prev</id>
		<title>192.168.0.105 en 18:10 27 jul 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.gacq.com/index.php?title=Cyrus_-_Basic_Configuration&amp;diff=1451&amp;oldid=prev"/>
				<updated>2006-07-27T18:10:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To setup Cyrus so that you can administer it (i.e. create users),&lt;br /&gt;
and get email inside it for those users:&lt;br /&gt;
&lt;br /&gt;
1. Make sure libsasl2-modules, libsasl2 and sasl2-bin are installed&lt;br /&gt;
&lt;br /&gt;
2. Make sure /etc/sasldb2 is readable by group sasl.  Pay attention to overrides (dpkg-statoverride)!&lt;br /&gt;
&lt;br /&gt;
3. Make sure user cyrus belongs to group sasl (cyrus21-common's install tries to do this automatically for you).&lt;br /&gt;
&lt;br /&gt;
4. Edit /etc/cyrus.conf, and make sure the services you need are enabled.  These are most probably &amp;quot;imap&amp;quot;, &amp;quot;pop3&amp;quot;, &amp;quot;lmtpunix&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
5. Edit /etc/imapd.conf, and make sure you have some admin users listed in the entry &amp;quot;admins:&amp;quot;.  I suggest using &amp;quot;cyrus&amp;quot; as your    admin.&lt;br /&gt;
I also suggest enabling plain text logins, and setting sasl_minimum_layer: 0&lt;br /&gt;
&lt;br /&gt;
If you have unixhierarchysep enabled in imapd.conf, change all &amp;quot;.&amp;quot; in mailbox names mentioned on this document to &amp;quot;/&amp;quot;, since Cyrus    will use &amp;quot;/&amp;quot; as the hierarchy separator instead of the default &amp;quot;.&amp;quot;. I suggest you just leave unixhierarchysep set to false for now.&lt;br /&gt;
&lt;br /&gt;
6. Restart Cyrus  (/etc/init.d/cyrus21 restart)&lt;br /&gt;
&lt;br /&gt;
7. Use saslpasswd2 -c  to create an account for your admin: saslpasswd2 -c cyrus&lt;br /&gt;
&lt;br /&gt;
8. Use sasldblistusers2 to make sure step 7 worked fine.&lt;br /&gt;
&lt;br /&gt;
9. Add other users to SASL likewise (saslpasswd2 -c).&lt;br /&gt;
&lt;br /&gt;
10. Log in cyrus as the administrator, and create the mailboxes:&lt;br /&gt;
    cyradm --user cyrus localhost&lt;br /&gt;
    cm user.bob&lt;br /&gt;
    cm user.anna&lt;br /&gt;
    cm user.clark...&lt;br /&gt;
    ^D&lt;br /&gt;
&lt;br /&gt;
    (notice that there is an &amp;quot;user.&amp;quot; in front of the mailbox name!)&lt;br /&gt;
    You must use &amp;quot;user/bob&amp;quot;, &amp;quot;user/anna&amp;quot; instead if you have the&lt;br /&gt;
    unixhierarchysep option enabled in imapd.conf.&lt;br /&gt;
&lt;br /&gt;
    For this to work, you obviously need the cyrus21-admin package&lt;br /&gt;
    installed.&lt;br /&gt;
&lt;br /&gt;
11. Try to login as a normal user, using imtest or a IMAP/POP3 client.&lt;br /&gt;
    If you have trouble with mutt and CRAM-MD5 or DIGEST-MD5, edit&lt;br /&gt;
    /etc/imapd.conf, and look for sasl_mech_list.  Set it to:&lt;br /&gt;
    sasl_mech_list: plain cram-md5&lt;br /&gt;
    (this will disable digest-md5, which causes trouble with mutt).&lt;br /&gt;
&lt;br /&gt;
12. Setup your MTA to deliver email inside Cyrus.  Basically that can&lt;br /&gt;
    be done (easily) by:&lt;br /&gt;
&lt;br /&gt;
    a)  running /usr/sbin/cyrdeliver  (SLOW)&lt;br /&gt;
        You need the lmtpunix service enabled in /etc/cyrus.conf for this&lt;br /&gt;
        to work.&lt;br /&gt;
    b)  delivering using LMTP to /var/run/cyrus/socket/lmtp&lt;br /&gt;
        You need the lmtpunix service enabled in /etc/cyrus.conf for this&lt;br /&gt;
        to work.&lt;br /&gt;
&lt;br /&gt;
        Just make sure (and use dpkg-statoverride to do that) that your&lt;br /&gt;
        MTA can get to /var/run/cyrus/socket/lmtp.  It works just like any&lt;br /&gt;
        file in a Unix system.&lt;br /&gt;
&lt;br /&gt;
    Cyrus REQUIRES a valid RFC2822 message, and will refuse messages with&lt;br /&gt;
    bad headers (such as that From foobar header, notice the missing ':'),&lt;br /&gt;
    embedded NULLs or any other crap.&lt;br /&gt;
&lt;br /&gt;
That's it.  See /usr/share/doc/cyrus21-common/README.{postfix,exim,sendmail}&lt;br /&gt;
for help on how to setup your MTA to correctly deliver to Cyrus.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Comandos =&lt;br /&gt;
Comandos para dejarlo andando en Sarge - http://www.linuxsilo.net/articles/postfix.html&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
apt-get install cyrus21-admin cyrus21-common cyrus21-doc cyrus21-imapd cyrus21-clients cyrus21-pop3d&lt;br /&gt;
apt-get install libsasl2 sasl2-bin libsasl2-modules&lt;br /&gt;
&lt;br /&gt;
vi /etc/default/saslauthd&lt;br /&gt;
    START=yes&lt;br /&gt;
    MECHANISMS=&amp;quot;sasldb&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/saslauthd start&lt;br /&gt;
&lt;br /&gt;
vi /etc/imapd.conf&lt;br /&gt;
    admins: cyrus&lt;br /&gt;
    sasl_minimum_layer: 0&lt;br /&gt;
    sasl_mech_list: PLAIN&lt;br /&gt;
    sasl_pwcheck_method: saslauthd&lt;br /&gt;
    sasl_auxprop_plugin: sasldb&lt;br /&gt;
&lt;br /&gt;
saslpasswd2 -c cyrus&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/cyrus21 restart&lt;br /&gt;
&lt;br /&gt;
# Probar que funcione&lt;br /&gt;
imtest -a cyrus localhost&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Admin ==&lt;br /&gt;
&lt;br /&gt;
=== Crear usuario ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
geacequ:/etc# cyradm --user cyrus localhost&lt;br /&gt;
IMAP Password:&lt;br /&gt;
localhost.localdomain&amp;gt; cm user.prueba&lt;br /&gt;
localhost.localdomain&amp;gt; exit&lt;br /&gt;
geacequ:/etc# saslpasswd2 -c prueba&lt;br /&gt;
Password:&lt;br /&gt;
Again (for verification):&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Listas usuarios ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
sasldblistusers2&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cambiar passwords ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
saslpasswd2 -c prueba&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Borrar cuentas ==&lt;br /&gt;
To delete a mailbox, you must fix give the admin user 'create' permissions on the mailbox. To many people's suprise, the admin does not have this permission by default. Then you can delete the mailbox with 'dm'.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
localhost&amp;gt; lam user.test&lt;br /&gt;
test lrswipcda&lt;br /&gt;
localhost.localdomain&amp;gt; dm user.test&lt;br /&gt;
deletemailbox: Permission denied&lt;br /&gt;
localhost&amp;gt; sam user.test cyrus c &lt;br /&gt;
localhost&amp;gt; lam user.test&lt;br /&gt;
test lrswipcda&lt;br /&gt;
cyrus c&lt;br /&gt;
localhost&amp;gt; dm user.test&lt;br /&gt;
exit&lt;br /&gt;
saslpasswd2 -c test&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.0.105</name></author>	</entry>

	</feed>