Front End not forwarding requests to the backend

Alberto Cardenas albertocardenas at netscape.net
Wed Nov 9 17:11:47 EST 2016


Hello Michael, 


You were right, I solved my problem adding the servername in imap.conf file at the backend server. Thank you very much!


Regards,
Alberto 



-----Original Message-----
From: Michael Menge via Info-cyrus <info-cyrus at lists.andrew.cmu.edu>
To: info-cyrus <info-cyrus at lists.andrew.cmu.edu>
Sent: Mon, Nov 7, 2016 3:33 am
Subject: Re: Front End not forwarding requests to the backend

Hi,Quoting Alberto Cardenas via Info-cyrus <info-cyrus at lists.andrew.cmu.edu>:> Hello,>>> I'm trying to setup Cyrus Murder for testing and have three virtual  > machines for this purpose (frontend, mupdate and backend). The three  > machines are running Centos 6.5, SASL 2.1.23 and Cyrus 2.3.16>you might want to consider using a more recent cyrus Version. Cyrus 2.3.16is about 7 years old. 2.5.10 is the latest stable, 3.0 will be coming outsoon. I don't think it has something to do with your problems but, therehave been many bugfixes and improvements since 2.3. And if you set up anew system it would make things easier in the future.>> Looks like communication from frontend to muptade and from backend  > to mupdate is working fine since I can list the mailboxes created in  > the backend using the “cyradm -u cyrus localhost” and “lm” commands,  > which shows the same user’s mailboxes result on the three boxes.>> The problem seems to be between the frontend and the backend since  > the frontend is not forwarding the imap requests to the backend. To  > test this, I am using the command “telnet localhost 143” on the  > frontend server. Once that I get connected and authenticated, I  > issue the command “select inbox”, but I receive the message “NO  > Server(s) unavailable to complete operation”. In the  > /usr/log/maillog file there is an error message that says “failed:  > Connection timed out”>>> I have not configured yet the smtp server, not sure if it is  > required, so I am trying to focus to get the imap part working.>The smtp server is needed to for the mail delivery and sieve redirectsand vacation but not for the imap access, so you can configure it later.>> Any guidance would be appreciated.  I have spent several days  > working in this problem without getting any progress at all.First, you din't set servername in you backend imapd.conf, which could leadto the problem that the wrong name is used in the mailbox.db on the  mupdate server.You can check that name used to register the created mailboxes on the  mupdate bymupdate> ctl_mboxlist -dThe 3. column is the name of the backend follwod by the partition name  seperated by !Make sure that the name used resolves to the correct ip address and  the the backendis listening on the imap port on this ipThe forndend needs to be able to connect to the backend on the imap  port. You can test thiswith telnet, but you can also use imtest which can help you to speak starttls.Also check your audit logs on the frontend, selinux tends to block  wanted connections.also "netstat -tupen | grep :143" can help to check the connection  between frontend and backend.>>> Here are my configuration files:> Frontend’s imap.conf> configdirectory: /var/lib/imap> partition-default: /var/spool/imap> admins: cyrus murder> sievedir: /var/lib/imap/sieve> sendmail: /usr/sbin/sendmail> hashimapspool: true> sasl_pwcheck_method: auxprop> sasl_mech_list: PLAIN> #tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem> #tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem> #tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt> allowplaintext: yes> mupdate_server: cyrus-mupdate.cvacyrus.com> mupdate_port: 3905> mupdate_username: murder> mupdate_authname: murder> mupdate_password: cvacva> cyrus-backend2_password: cvacva> proxy_authname: murder>>> Frontend’s cyrus.conf> START {>  recover cmd="ctl_cyrusdb -r">  idled         cmd="idled"> }> SERVICES {>  mupdate    cmd="mupdate" listen=3905 prefork=1>  imap          cmd="proxyd" listen="imap" prefork=5> }> EVENTS {>  checkpoint    cmd="ctl_cyrusdb -c" period=30>  delprune      cmd="cyr_expire -E 3" at=0400>  tlsprune      cmd="tls_prune" at=0400> }>>>>> Backend’s imap.conf> configdirectory: /var/lib/imap> partition-default: /var/spool/imap> admins: cyrus murder> sievedir: /var/lib/imap/sieve> sendmail: /usr/sbin/sendmail> hashimapspool: true> sasl_pwcheck_method: auxprop> sasl_mech_list: PLAIN> altnamespace: yes> allowplaintext: yes> proxyservers: murder> mupdate_server: cyrus-mupdate.cvacyrus.com> mupdate_port: 3905> mupdate_username: murder> mupdate_authname: murder> mupdate_password: cvacva>>> Backend’s cyrus.conf> START {>  recover       cmd="ctl_cyrusdb -r">  idled         cmd="idled">  mupdatepush cmd="ctl_mboxlist -m"> }> SERVICES {>  imap          cmd="imapd" listen="imap" prefork=5> }> EVENTS {>  checkpoint    cmd="ctl_cyrusdb -c" period=30>  delprune      cmd="cyr_expire -E 3" at=0400>  tlsprune      cmd="tls_prune" at=0400> }>>> Mupdate’s imap.conf> configdirectory: /var/lib/imap> partition-default: /var/spool/imap> admins: cyrus murder> sievedir: /var/lib/imap/sieve> sendmail: /usr/sbin/sendmail> hashimapspool: true> sasl_pwcheck_method: auxprop> sasl_mech_list: PLAIN> allowplaintext: 1>>> Mupsate’s cyrus.conf> START {>  recover       cmd="ctl_cyrusdb -r">  idled         cmd="idled"> }> SERVICES {>  imap          cmd="imapd" listen="imap" prefork=5>  mupdate cmd="mupdate -m" listen="mupdate" prefork=1> }> EVENTS {>  checkpoint    cmd="ctl_cyrusdb -c" period=30>  delprune      cmd="cyr_expire -E 3" at=0400>  tlsprune      cmd="tls_prune" at=0400> }--------------------------------------------------------------------------------M.Menge Tel.: (49) 7071/29-70316Universität Tübingen                   Fax.: (49) 7071/29-5912Zentrum für Datenverarbeitung          mail:  michael.menge at zdv.uni-tuebingen.deWächterstraße 7672074 Tübingen----Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/To Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20161109/87c689f1/attachment-0001.html>


More information about the Info-cyrus mailing list