Menu

RTcyrus3 without virtual domains?

Help
Kevin Kobb
2009-04-25
2013-04-24
  • Kevin Kobb

    Kevin Kobb - 2009-04-25

    I am running cyrus 2.3.14 and sendmail 8.14.3, but at the moment I am not using virtual domains.
    Will RTcyrus3 work without any virtual domains?

    In the future, I do intend to use virtual domains, but at the moment I'm just wanting to get real time checking for cyrus mailboxes working. Should I use one of the older RTcyrus configs?

    Thanks.

     
    • Andrzej Filip

      Andrzej Filip - 2009-04-26

      Consider using RTCyrus2 available at http://anfi.homeunix.org/sendmail/rtcyrus2.html

      I would suggest using:
      * LUSER_RELAY version for delivering to existing cyrus mailbox if OS account is absent
      * LOCAL_RELAY version for delivering to OS account mailbox if cyrus mailbox is absent

      BTW Which IMAP servers have you evaluated before choosing Cyrus?

       
    • Kevin Kobb

      Kevin Kobb - 2009-04-27

      Hi Andrzej,

      OK, I have done a quick look at the RTCyrus2 instructions and done the following:

      cd /usr/local/share/sendmail/cf/m4
      fetch http://anfi.homeunix.org/sendmail/mrs-8.12.11.patch
      patch < mrs-8.12.11.patch
      (Patch applied OK on 8.14.3 with an offset of about 25 lines)

      cd /usr/local/share/sendmail/cf/feature
      fetch http://anfi.homeunix.org/sendmail/mrs.m4
      fetch http://anfi.homeunix.org/sendmail/mrs_cyrus.m4

      Created /etc/mail/mailertable and added a entry like:
      domain.com         mrs_cyrus_user:

      cd /usr/local/share/sendmail/cf/mailer
      fetch http://anfi.homeunix.org/sendmail/cyrusv2.m4

      Added these entries to sendmail.mc file
      define(`LUSER_RELAY',`mrs_cyrus_user:error:5.1.1:550 User unknown')dnl

      FEATURE(`mrs')dnl
      FEATURE(`mrs_cyrus')dnl
      MODIFY_MAILER_FLAGS(`CYRUSV2',`-A5')dnl Required ONLY if you use mrs_cyrus_user

      MAILER(local)
      MAILER(smtp)
      MAILER(`cyrusv2')dnl Required release B if you use mrs_cyrus_mailertable

      Built maps, cf files and restarted sendmail

      Did a couple quick checks

      mail# sendmail -bv root
      root... deliverable: mailer local, user root
      mail# sendmail -bv cyrususer@domain.com
      cyrususer@domain.com... deliverable: mailer cyrusv2, host dummy, user cyrususer

      Seems to be working for the most part. I'm not sure if I missed something, but I am going to do more testing look at the documentation again. If I have totally screwed this up, (wouldn't be the first time) please let me know.

      As far as other IMAP servers I have looked at, we have/are using Dovecot. It is a slightly out of date version, but is what comes with Red Hat EL5.

      Dovecot works pretty well, and is probably easier to setup than Cyrus, but there are some things I like better in Cyrus.

      1. No system accounts for IMAP users. I know you can do this with Dovecot, but it is basically the "native" operation mode for Cyrus.
      2. ACLs, quotas, and shared mailboxes seem better supported in Cyrus. Again I know newer version of Dovecot have improvements in this area.
      3. sieve support seems better in Cyrus.
      4. Duplicate suppression in Cyrus, which I don't think is available in Dovecot at the moment. The way our users work, this saves a fair amount of disk space.
      5. We aren't using them at the moment, but the Cyrus replication and cluster features look interesting.

      I am by no means trying to put down Dovecot, as I think it is a very good product seems to be under heavy development. I also don't claim to be an expert on Cyrus/Dovecot, just saying what works for me.

      Thanks.

       
      • Andrzej Filip

        Andrzej Filip - 2009-04-27

        I have decided to use Dovecot instead of Cyrus as my "single person" IMAP server because
        1) Dovecot is based on standard mailbox/folder format (maildir) - I have had sporadic problems with "something wrong" with custom format of Cyrus folders.
        2) Dovecot can very easily deliver imap server over stdin/stdout so e.g. emacs/gnus can access maildirs via IMAP without "system wide" IMAP server

         
    • Kevin Kobb

      Kevin Kobb - 2009-04-27

      Very valid points. On our Dovecot setup were using mbox format, which has advantages and disadvantages. I do need to spend some time making sure I can get consistent backups and recovery of Cyrus before we go further.

      Do you plan to keep working on RTcyrus, or are you going to be developing tools for Dovecot instead?

       
      • Andrzej Filip

        Andrzej Filip - 2009-04-28

        I think about making RTCyrus more general.

        The same "core" should support cyrus, dovecot and other similar packages with very small (or none) "package specific" parts.

        My central objective is to make sendmail support a few local mailer at the same time e.g. classic local mailer cyrus and dovecot on single host.

         
    • Kevin Kobb

      Kevin Kobb - 2009-04-29

      Sounds good.

      It would be nice to see your mailer included in the sendmail distribution by default.

       

Log in to post a comment.