1 |
|
2 |
CYRUS MAILBOX LOOKUP FOR SENDMAIL |
3 |
--------------------------------- |
4 |
|
5 |
You have enabled modifications for sendmail for looking up |
6 |
whether a cyrus (2.2.3+) mailbox exists and is under quota |
7 |
before accepting any mail to be relayed to cyrus. |
8 |
|
9 |
They are based on the idea and work by |
10 |
|
11 |
Andrzej Filip, http://anfi.homeunix.net/sendmail/rtcyrus2.html |
12 |
and |
13 |
Mike Boev, http://tric.ru/users/mike/ckuser_cyrus/ |
14 |
|
15 |
Please, use these urls to learn all configuration details |
16 |
(although a quick recipe is provided below) and may be to give |
17 |
credits to the authors. |
18 |
****************************************************************** |
19 |
IMPORTANT: |
20 |
Now that the mrs_cyrus.m4 has been updated, you may need to adjust |
21 |
the modifications you made to your .mc file if you used the old one! |
22 |
See http://anfi.homeunix.net/sendmail/rtcyrus2.html for current |
23 |
installation instructions. |
24 |
****************************************************************** |
25 |
|
26 |
HOW TO : |
27 |
--------- |
28 |
|
29 |
0. Build the `mail/sendmail' sendmail port with |
30 |
SENDMAIL_WITH_SOCKETMAP=yes SENDMAIL_WITH_CYRUSLOOKUP=yes |
31 |
This is what you've just obviously done, unless you are just browsing the |
32 |
ports tree. To stick with these settings, you can place something like |
33 |
the following in your `/etc/make.conf'. |
34 |
|
35 |
PORTSDIR?= /usr/ports |
36 |
.if ${.CURDIR} == ${PORTSDIR}/mail/sendmail |
37 |
SENDMAIL_WITH_CYRUSLOOKUP= yes |
38 |
SENDMAIL_WITH_SOCKETMAP= yes |
39 |
# possibly other sendmail knobs here too. |
40 |
.endif |
41 |
|
42 |
You should have also installed and configured Cyrus IMAP server, |
43 |
version 2.2.3 or higher. Not the worst idea is to utilize the |
44 |
`mail/cyrus-imapd22' port. |
45 |
|
46 |
1. Insert the following lines to the SERVICES sections of `cyrus.conf'. |
47 |
By default, the port installs it to `/usr/local/etc'. |
48 |
|
49 |
# Sendmail socket map smmapd(8) |
50 |
smmap cmd="smmapd" listen="/var/imap/socket/smmapd" prefork=0 |
51 |
|
52 |
A SIGHUP would make the Cyrus master(8) process catch this change |
53 |
on-the-fly. Please, also note, that if sendmail and cyrus run on |
54 |
separate machines, you will obviously need to modify this line |
55 |
and a couple of others. |
56 |
|
57 |
2. As per the `install-configure' from Cyrus IMAP server's documentation, |
58 |
in the simplest case, you added: |
59 |
|
60 |
define(`confLOCAL_MAILER', `cyrusv2')dnl |
61 |
MAILER(`cyrusv2')dnl |
62 |
|
63 |
to your sendmail's .mc file to make local delivery to Cyrus mailboxes. |
64 |
Now, simply add (somewhere near other FEATURES, before MAILER lines): |
65 |
|
66 |
FEATURE(`ckuser_cyrus')dnl |
67 |
|
68 |
for sendmail to start rejecting local addresses for nonexisting and |
69 |
full mailboxes. Rebuild your sendmail.cf, restart sendmail, and enjoy! |
70 |
|
71 |
If your configuration is more complicated than just defining Cyrus |
72 |
as your local mailer, read Andrzej's article. It covers more of the |
73 |
other cases. |
74 |
|
75 |
****************************************************************** |
76 |
|
77 |
2004, September 16th |
78 |
Michael O. Boev, |
79 |
mike@tric.ru. |