On 6/27/2012 11:31 AM, James B. Byrne wrote:
> 
> On Wed, June 27, 2012 14:28, Noel Jones wrote:
>> On 6/27/2012 8:47 AM, James B. Byrne wrote:
>>
>>> The background is this.  We are moving from a Sendmail/Cyrus-imap
>>> based system of many years to a Postfix/Cyrus-imap based email
>>> system.
>>>  During the transitions the existing Sendmail/Cyrus-imap service
>>> naturally remains active.
>>>
>>
>> You describe a virtual mailbox domain.
>>
>>
>>> User accounts / domains are defined in hash:/etc/postfix/virtual
>>> according to the specifications in man 5 virtual and assigned to the
>>> variables $virtual_aliases and $virtual_alias_domains in main.cf.
>>
>> but you set it up as a virtual alias domain.  This is likely the
>> source of your problems.  List the domain in
>> virtual_mailbox_domains, list the recipients in virtual_mailbox_maps.
>>
>> Please refer to
>> http://www.postfix.org/ADDRESS_CLASS_README.html
>> http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox
> 
> This is where I go astray.  We use IMAP for user mailbox stores but
> every user also has a system account for authentication purposes.  I
> read the instructions in ADDRESS_CLASS_README as implying that these
> circumstances most closely match this specification:
> 
>> The virtual alias domain class.
>>
>>    Purpose: hosted domains where each recipient address is aliased
>> to a local UNIX system account or to a remote address.
> 
> Whereas this specification:
> 
>> The virtual mailbox domain class.
>>
>>    Purpose: final delivery for hosted domains where each recipient
>> address can have its own mailbox, and where users do not need to
>> have a UNIX system account. A virtual mailbox example is given in
>> the VIRTUAL_README file.
> 
> does not seem to me to match our user authentication or mailbox
> delivery mechanisms at all.  Further, the representations in the
> documentation deals solely with the case of direct delivery of email
> to an mbox or maildir type of arrangement.  To my understanding these
> are not compatible with the cyrus-imap protocol.

The fact that your users have unix accounts for auth does not change
the fact that you should use a virtual mailbox domain.

You'll use the cyrus-supplied delivery agent rather than the
postfix-supplied virtual(8).  This is covered in
http://www.postfix.org/MAILDROP_README.html#direct

It's also possible to set this up as a local domain using cyrus as
the local delivery agent, but I think it "fits" better as a virtual
mailbox domain. (virtual mailbox vs. local delivery is more of a
site judgement call than a right/wrong choice -- either way will
work).  This is covered in
http://www.postfix.org/MAILDROP_README.html#indirect

A virtual alias domain is not a good choice for your described
environment.  Please don't use that.

Be assured that if I'm giving bad advice, there's a dozen folks here
that would gently correct me (as I would do for them).  Any answer
on this list that stands for more than 30 minutes can be considered
peer-reviewed with no substantial flaws.

> 
>> Hints for configuring cyrus with postfix can be found in the
>> maildrop readme: http://www.postfix.org/MAILDROP_README.html
> 
> If there are references in http://www.postfix.org/MAILDROP_README.html
> that detail how to configure postfix and cyrus-imap together then I

You'll need to generalize s/maildrop/cyrus/ in the MAILDROP_README.
 Obviously it's not an exact recipe for cyrus, but all the
ingredients are there.




  -- Noel Jones

Reply via email to