question question:
> I'm going through all of the qmail/djbdns/etc. archives, but it is slow
> going.
> I've used sendmail/DNS/BIND on various unix boxes for years and am
> absolutely sick of them.
> I would like to use qmail and Cyrus IMAP and djbdns, etc. on a single Redhat
> 7.0 server that has 8 IP addresses for 8 virtual websites.
> I've printed off reams of the documentation from D. J. Bernstein's website
> about qmail, tcpserver, djbdns, ucspi-tcp, daemontools, etc.
> My initial understanding was that qmail was a straight MTA replacement for
> sendmail so that I would be able to use Cyrus Imap. The Cyrus Imap is not
> supposed to require Unix accounts/homedirectories, so it scales for a larger
> number of webmail clients.
> In my reading of the Cyrus IMAP website, it only refers to postfix. I saw
> the sendmail/postfix April fool's joke, and it was quite funny.
> However, why do I not see any info about using qmail with either UW or Cyrus
> IMAP? Or am I missing something obvious?
Qmail is indeed a drop-in replacement for Sendmail and can therefore
be used with Cyrus. The key is the interface to get the mail into the
Cyrus mailboxes. You have to invoke /usr/cyrus/bin/deliver on the
message in a suitable .qmail file. Here is a very simple possible
setup, just to get you started. In /var/qmail/user/assign there is a
list of email adresses of your users plus delivery instructions. Note
that these users do not actually have to exist as Unix accounts, even
though you need to have some form of authentication, so that they can
get into their mailboxes:
=firstname1.lastname1:user1:96:12:/var/qmail/alias/delivery:-:userfolder:
=firstname2.lastname2:user2:96:12:/var/qmail/alias/delivery:-:userfolder:
=firstname3.lastname3:user3:96:12:/var/qmail/alias/delivery:-:userfolder:
.
firstname1.lastname1 is the email adress of the first user and user1
is the name of the Cyrus mailbox of that user. They cannot be the
same, since Cyrus mailboxes must not contain dots. 96 is the userid of
the Cyrus user an 12 the id of the group mail. You need to compile
that file into hashtable format with qmail-newu. Check out qmail
virtual domain support on how you could adapt this scheme for virtual
domains.
The directory /var/qmail/alias/delivery directory contains just one file,
.qmail-userfolder, with the single line
|/usr/cyrus/bin/deliver $USER || exit 111
That will either successfully deliver into the Mailbox of $USER (which
would be set to "user1" by qmail for the first example user) or
temporarily fail (with whatever reason /usr/cyrus/bin/deliver
gives). Qmail would retry delivery later on, for up to a week. In a
production enviroment you would probably want to refine this for
various exit conditions of deliver, some should probably cause the
mail to be rejected on first try. Try man qmail-command for the
various things that can be done in a .qmail file. Feel free to mail me
for further questions.
PS: Does your Webmail interface have a Imap backend? That is what you
would need to get into the Cyrus mailboxes to actually access the mail
after delivery.
--
Joerg Lenneis
email: [EMAIL PROTECTED]