sendmail-8.12.6+cyrus-imapd-2.0.17: check presence of the cyrus
mailbox during establishing SMTP connection
igor at ipass.net
Wed Nov 5 17:36:27 EST 2003
I am including cyrus-devel to this discussion:
> I could probably write this service in a couple hours given its
> simplicity, but I have a few of questions:
> - What would the map name be? cyrus?
I would make this a param setting. You can default to 'cyrus', but I
imagine most people will use virtuser. (This is a default mapname for
virtual user map)
> envision different types of maps that this daemon would have to support?
Possibly: access, mailer and other maps that sendmail might need.
VirtHosts (list of domains for which sendmail accepts mail) class may be
> - Is the key always the RCPT TO address, including +detail info, or does
> Sendmail strip this before doing the map lookup?
You need to process whatever the protocol passes to the server. A
question might be, how is cyrus going to respond when +detail is not
available but the root mbox is? I see other strange scenarions here.
Again, this can be controlled with config parameters.
> - How do we handle lookups of public mailboxes? Always return OK?
I would say no. If the public box does not exist, answer FAIL.
> - I assume that the "mapping" would be a noop, we just spit out the
> input if the user exists and is under quota.
Check http://www.ypass.net/~igor/op.html and search for 'The socket map
uses a simple'. This will give you glory details.
More information about the Info-cyrus