i followed some howtos on the net and provides wit cyrus, <br>it uses pam to store some stuff in a mysql 5.1 DB.<br>i can only login with imtest when i create the user I created with saslpasswd2 and "cm user.*" also create this user in the DB,
<br>which was installed during the web-cyradmin installation.<br><br>Do I understand right that I have the db with the user accounts on the frontend and the mailboxes on the backend, so I dont need any DB and accounts in the sasldb1 on the backend?
<br><br>Another point is that I cant delete any user with dm, it asks for a password, when i enter the correct one it asks again until i enter a wrong one..!<br><br>not an easy setup, but its making progress...<br><br><br>
<br>here are my config file:<br>frontend/mupdater<br>admins: cyrus cyrus-frontend cyrus-backend<br>configdirectory: /var/lib/imap<br>partition-default: /var/spool/imap<br>#admins: cyrus<br>sievedir: /var/lib/imap/sieve<br>
sendmail: /usr/sbin/sendmail<br>hashimapspool: true<br><br>##<br>sasl_pwcheck_method: saslauthd<br>sasl_mech_list: PLAIN LOGIN DIGEST-MD5<br>sasl_auxprop_plugin: sasldb<br>sasl_minimum_layer: 0<br>sasl_auto_transition: no
<br><br>#sasl_pwcheck_method: auxprop<br>#sasl_auxprop_plugin: sasldb<br>#sasl_auxprop_plugin: sql<br>#sasl_sql_engine: mysql<br>#sasl_sql_hostnames: localhost<br>#sasl_sql_user: sqlpassword<br>#sasl_sql_database: cyrus<br>
#sasl_sql_verbose: no<br>#sasl_sql_select: SELECT password FROM cyrus_mail WHERE username = '%u' AND active='1'<br>#sasl_sql_usessl: 0<br>#allowplaintext: yes<br><br>tls_cert_file: /etc/pki/cyrus-imapd/cyrus-
imapd.pem<br>tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem<br>tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt<br><br>postmaster: postmaster<br>allowanonymouslogin: no<br>allowplaintext: yes<br># servername: localhost<br>
autocreatequota: 10000<br>reject8bit: no<br>quotawarn: 90<br>timeout: 30<br>poptimeout: 10<br>dracinterval: 0<br>drachost: localhost<br>sieve_maxscriptsize: 32<br>sieve_maxscripts: 5<br>#unixhierarchysep: yes<br>#tls_ca_file:/var/lib/imap/server.pem
<br>#tls_cert_file:/var/lib/imap/server.pem<br>#tls_key_file:/var/lib/imap/server.pem<br>realm: mailfarm21.local<br>##################<br># MUPDATE Master #<br>##################<br>servername: mail2.mailfarm21.local<br><br>
<br># hier kommt der backend server<br>proxy_authname: cyrus-frontend<br>mail1_password: secret<br>proxy_password: secret<br>#proxyservers: mail1.mailfarm21.local<br>proxyd_disable_mailbox_referrals: 1<br><br>## mupdate client?
<br>mupdate_server: mail2.mailfarm21.local<br>mupdate_port: 3905<br>mupdate_username: cyrus-frontend<br>mupdate_authname: cyrus-frontend<br>mupdate_password: secret<br><br><br><br>backend:<br><br>admins: cyrus cyrus-frontend cyrus-backend
<br>configdirectory: /var/lib/imap<br>partition-default: /var/spool/imap<br><br>sievedir: /var/lib/imap/sieve<br>sendmail: /usr/sbin/sendmail<br>hashimapspool: true<br><br>tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
<br>tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem<br>tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt<br><br>postmaster: postmaster<br>allowanonymouslogin: no<br>allowplaintext: yes<br>servername: localhost<br>autocreatequota: 10000
<br>reject8bit: no<br>quotawarn: 90<br>timeout: 30<br>poptimeout: 10<br>dracinterval: 0<br>drachost: localhost<br>sieve_maxscriptsize: 32<br>sieve_maxscripts: 5<br>#unixhierarchysep: yes<br>#tls_ca_file:/var/lib/imap/server.pem
<br>#tls_cert_file:/var/lib/imap/server.pem<br>#tls_key_file:/var/lib/imap/server.pem<br><br>## sasl kram<br>sasl_auxprop_plugin: sasldb<br>sasl_pwcheck_method: saslauthd<br>#sasl_pwcheck_method: auxprop<br>sasl_mech_list: plain login DIGEST-MD5
<br><br><br>#################<br># mupdate slave #<br>#################<br>mupdate_server: mail2.mailfarm21.local<br>mupdate_port: 3905<br>mupdate_username: cyrus-backend<br>mupdate_authname: cyrus-backend<br>mupdate_password: secret
<br>#mupdate_config: unified<br><br># frontendzugriff<br>proxyservers: mail2.mailfarm21.local<br>proxy_authname: cyrus-backend<br><br># transfer between backends<br>allowusermoves: yes<br>allowsubscribes: yes <br><br>cyrus.conf
<br><br># standard standalone server implementation<br><br>START {<br> # do not delete this entry!<br> recover cmd="ctl_cyrusdb -r"<br><br> # this is only necessary if using idled for IMAP IDLE<br> idled cmd="idled"
<br>#<br># resync the mailbox with the master at startup<br>mupdatepush cmd="ctl_mboxlist -m"<br>}<br><br># UNIX sockets start with a slash and are put into /var/lib/imap/sockets<br>SERVICES {<br> # add or remove based on preferences
<br> imap cmd="imapd" listen="imap" prefork=5<br> imaps cmd="imapd -s" listen="imaps" prefork=1<br> pop3 cmd="pop3d" listen="pop3" prefork=3
<br> pop3s cmd="pop3d -s" listen="pop3s" prefork=1<br> sieve cmd="timsieved" listen="sieve" prefork=0<br><br> # these are only necessary if receiving/exporting usenet via NNTP
<br># nntp cmd="nntpd" listen="nntp" prefork=3<br># nntps cmd="nntpd -s" listen="nntps" prefork=1<br><br> # at least one LMTP is required for delivery<br># lmtp cmd="lmtpd" listen="lmtp" prefork=0
<br> lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1<br><br> # this is only necessary if using notifications<br># notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
<br><br>#<br>mupdate cmd="/usr/lib/cyrus-imapd/mupdate" listen="3905" prefork=1<br>fud cmd="fud" proto="udp" listen="4201" profork=0 maxchilds=10<br><br>}<br><br>EVENTS {
<br> # this is required<br> checkpoint cmd="ctl_cyrusdb -c" period=30<br><br> # this is only necessary if using duplicate delivery suppression,<br> # Sieve or NNTP<br> delprune cmd="cyr_expire -E 3" at=0400
<br>#delprune cmd="ctl_deliver -E 3" period=1440<br> # this is only necessary if caching TLS sessions<br> tlsprune cmd="tls_prune" at=0400<br><br> # Squat failed, helps<br> squatter cmd="squatter -r user" period=1440
<br>}<br><br><div class="gmail_quote">On Jan 11, 2008 2:30 PM, Ken Murchison <<a href="mailto:murch@andrew.cmu.edu">murch@andrew.cmu.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">rupert wrote:<br>> another questions is:<br>> does the mysql database have to be on both machines or does the frontend<br>> cyrus get its data from the backend and doesnt store anything inside its
<br>> local DB?<br><br></div>What MySQL database? For authentication? All user credentials need to<br>be verified on the frontends. If you IMAP client(s) support referrals,<br>then they might also authenticate directly on the backends. Otherwise,
<br>only the "murder" user authenticates on the backends.<br><div class="Ih2E3d"><br><br><br>> I created a new domain and user on the backend with web-cyradm and on<br>> the frontend/mupdate i can get the data with lm, but I cant connect with
<br>> a mail client.<br>><br>> On Jan 11, 2008 1:13 PM, Rupertt <<a href="mailto:rupertt@gmail.com">rupertt@gmail.com</a><br></div><div><div></div><div class="Wj3C7c">> <mailto:<a href="mailto:rupertt@gmail.com">
rupertt@gmail.com</a>>> wrote:<br>><br>> Ken Murchison wrote:<br>>> rupert wrote:<br>>><br>>>> Hello first,<br>>>> I was able to set up an murder cluster with one backend and a frontend
<br>>>> which also acts as a mupdate server.<br>>>> i could get the mailbox accounts from the backend, which was a<br>>>> standalone before.<br>>>> I read that now the murder is running i should "only" create accounts on
<br>>>> the frontend and dont do anything manually on the backend, right?<br>>>><br>>>> When I now create a user with web-cyradm on the frontend it creates the<br>>>> entry in the DB, but the logfile says:
<br>>>><br>>>> Jan 11 12:34:02 mail2 mupdate[2166]: cmd_set(fd:18, user.ralf)<br>>>> Jan 11 12:34:02 mail2 imap[2183]: mupdate NO response: mailbox already<br>>>> exists<br>
>>> Jan 11 12:34:02 mail2 imap[2183]: MUPDATE: can't reserve mailbox entry<br>>>> for 'user.ralf'<br>>>> Jan 11 12:34:02 mail2 imap[2183]: autocreateinbox: User ralf, INBOX
<br>>>> failed. unable to reserve mailbox on mupdate server<br>>>><br>>>><br>>>> when i try to add the user with "cm ralf" i get a permission denied<br>>>> error in the cyradm console.
<br>>>><br>>>> i could add a new mailbox on the backend by hand and when I do a "lm" on<br>>>> the frontend the new account gets listed there.<br>>>><br>>>> So how can I proceed?
<br>>>><br>>> Toplevel mailboxes MUST be created on the backend.<br>>><br>>><br>>><br>> you mean like "ralf", well i tried "user.ralf" and it still does not<br>
> work.<br>><br>> this is my current list:<br>><br>> sam (\HasNoChildren) user.sigi (\HasChildren)<br>> testuser (\HasNoChildren) user.sigi.Sent (\HasNoChildren)<br>>
user.box1 (\HasNoChildren) user.sigi.Trash (\HasNoChildren)<br>> user.jon (\HasNoChildren) user.tb0001 (\HasNoChildren)<br>> user.roy (\HasChildren) user.test1 (\HasNoChildren)<br>>
user.roy.Sent (\HasNoChildren) user.test2 (\HasNoChildren)<br>> user.roy.Trash (\HasNoChildren) user.testuser (\HasNoChildren)<br>><br>><br>><br>><br><br><br></div></div><div><div></div><div class="Wj3C7c">
--<br>Kenneth Murchison<br>Systems Programmer<br>Project Cyrus Developer/Maintainer<br>Carnegie Mellon University<br></div></div></blockquote></div><br>