MailBoxer
MailBoxer with qmail - Mail lists with Zope
Introduction
We have just recently implemented MailBoxer on a community site we are developing. The only problem was we had decided to run qmail instead of Sendmail (due to combined concerns of maintenance time, security, and performance).
It's very simple, and the changes almost aren't even changes! You just need a few things:
Our mail server and Zope server are using Linux [1].
Zope and MailBoxer
The MailBoxer README
is excellent and will get you up and running with
MailBoxer in no time. However you do want to
set asisde the part that talks about the aliases
file and running the programming newaliases
, as
these are specific to Sendmail
.
Once you have everything setup in Zope, and you
can create your mail list object without errors,
you need to setup qmail
.
qmail
If you are used to sendmail
and all of its archane
complexity, qmail may be hard to get used to, as it
is much simpler. Well, some things, anyway ;-)
The document you really need to know and love is
Life with qmail by
Dave Sill. Reading this docuement will not only show
you how to setup aliases analogous to those in
the sendmail file aliases
, but it will also show
you how to setup virtual domains for mail users
on a system for which you control more than one
domain name.
For simplicity, I will outline the change you have to make if you are using an alias for a non-virtual domain on your box [2].
Remember that line from Maik's README that I told you to ignore?:
foo: "|smtp2zope.py http://ZopeServer:Port/PathTo/IdOfMailBoxer/manage_mailboxer [ maxBytes ]"
Well, you do almost the same exact thing with
qmail, except that you do it in the .qmail
file
for the alias that you set aside for your mail list.
So, if you have an alias called [email protected],
you would create a file called .qmail-l33tm4il
in
the /var/qmail/aliases
directory. The contents
of that file would be:
|/usr/bin/smtp2zope.py http://127.0.0.1:2600/secrethax0rz/IdOfMailBoxer/manage_mailboxer [ maxBytes ]
Okay, bad joke about the port; your Zope port is
probably something like 8080
;-)
If you didn't want to use an alias and actually had a system account that was used for the maillist, then you would just create the file here, instead:
/home/l33tm4il/.qmail
And that's all there is to it!
Special thanks to Maik for MailBoxer and all the good folks at Deutsche Zope User Group .
[1] uname -a
output:
Linux <hostname> 2.4.18-10 #1 Wed Aug 7 11:39:21 EDT 2002 i686 unknown
[2] In actuality, it's the same change as if you were doing this for virtual domains as well; the difference is that you have to do all that extra work in configuring qmail for virtual domains, which has nothing to do with Zope or MailBoxer ;-)