sendmail-8.12.6+cyrus-imapd-2.0.17: check presence of the cyrus
mailbox during establishing SMTP connection
Igor Brezac
igor at ipass.net
Tue Nov 4 13:30:50 EST 2003
On Tue, 4 Nov 2003, Andrzej Filip wrote:
> Mike Brodbelt wrote:
> > A Clockwork Orange wrote:
> >
> >>sendmail-8.12.6+cyrus-imapd-2.0.17
> >>
> >>I'd like sendmail to check presence of the cyrus mailbox during
> >>establishing SMTP connection.
> >>If the cyrus mailbox doesn't present sendmail drops SMTP connection
> >>(doesn't recieve email).
> >>What have i to write in sendmail.mc file?
> >
I use virtusertable map for this purpose. You need to ensure that the
virtusertable is in sync with the cyrus mailbox list.
-Igor
> > There's a page about it here:-
> >
> > http://www.polbox.com/a/anfi/sendmail/rtcyrus.html
>
> It is nice to see that somebody knows about my rtcyrus existence ;)
> RTCyrus requires sendmail patch (new custom "file" map) but sendmail.org was
> "reluctant" to accept it.
>
> > Unfortunately, this relies on giving sendmail knowledge of the internal
> > arrangement of Cyrus mailboxes, to check for the existence of the user.
> > I've avoided implementing it, as I feel it goes counter to the idea of
> > Cyrus as a "black box", accessible via IMAP/LMTP/POP only. As such it'll
> > only work where sendmail and Cyrus are on the same machine.
> >
> > If there are any better ways to achieve the same end, I'd also be
> > interested.
>
> There are two alternative approaches I can think of right now:
> 1) custom milter
> [servicing only "RCPT TO:"]
> 2) socket map
> [ available in 8.13 preview http://www.sendmail.org/8.13.0.PreAlpha4.html ]
>
> Both will make sendmail ask separate process (which may be located on another
> server) if the given envelope recipient address should be accepted.
>
> IMHO socket map will be a better solution of the problem:
> Are you interested in testing simple perl based "socket map" server for cyrus?
> [ and testing sendmail 8.12 of course ]
>
>
--
Igor
More information about the Info-cyrus
mailing list