sendmail-8.12.6+cyrus-imapd-2.0.17: check presence of the cyrus mailbox during establishing SMTP connection

Andrzej Filip anfi at priv.onet.pl
Tue Nov 4 12:35:31 EST 2003


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?
> 
> 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 ]

-- 
Andrzej [pl>en: Andrew] Adam Filip http://www.polbox.com/a/anfi/
anfi at priv.onet.pl anfi at xl.wp.pl [former: anfi at Box43.pl]





More information about the Info-cyrus mailing list