On Thu, June 28, 2012 15:21, Noel Jones wrote:
> On 6/28/2012 10:54 AM, James B. Byrne wrote:
>
>> And in virtual_aliases_maps those entries in virtual_mailbox_maps
>> need be mapped to actual delivery points that cyrus-imapd
>> recognizes:
>
> Actual user->mailbox mapping is done is cyrus.  Postfix neither uses
> nor needs to know this information, only that the user exists.

Unless I map user.s...@example.com to someuser or at least to
someu...@example.com how else will cyrus-imapd identify the mailbox? 
I cannot recall ever providing cyrus itself with a map of allowable
email addresses in RFC821 format. To the best of my knowledge imap
will only look at the local part of the address.

>
> However, it is possible -- and desirable -- to share the cyrus
> delivery table between postfix and cyrus if the table happens to be
> in a format postfix can use.
>
>
>> And nothing should appear in virtual_alias_domains;
>> And nothing should appear in relay_domains;
>
> Yes and yes.
>
>> And mydestination should only contain:
>>
>> mydestination = $myhostname, localhost.$mydomain, localhost
>
> $myhostname doens't belong here if it conflicts with
> virtual_mailbox_domains.  These local domains will be mostly unused
> except for maybe some system role accounts such as root, cron, etc.
>  Or you might alias those elsewhere and leave mydestination empty.
>

The difficulty here is that the local system accounts have to pass
through the aliases map.  These have to be recognized as local
otherwise Postfix will not expand the aliases associated with them.


>> Q. Which parts do I still have confused?
>
> You're making progress.
>
>> Q. It is not clear to me from the documentation as to whether or not
>> virtual_aliases supports the :include:, |, and / constructs of
>> alias_maps. Does it?
>
> No.  Includes and pipe-to-command are features of the local(8)
> delivery agent.

This requires, in our case, that some virtual domain mailbox have to
be mapped to local.  Will any of these placed in virtual_aliases will
have that effect where example.com is in virtual_mailbox_domains?

1. some.u...@example.com                 someuser@$myhostname
or
2. some.u...@example.com                 someuser


>>
>> It seems that virtual_mailbox_maps essentially duplicates the keys
>> of virtual_alias_maps.
>
> Users listed in virtual_mailbox_maps should not be duplicated in
> virtual_alias_maps.  It is not necessary to list recipients in more
> than one place.
>
>>
>>   Q. Is there any case where the keys in the first would not align
>> in
>> 1:1 correspondence with those in the second?
>
> Again, there is no need to duplicate entries.
>
>>
>>   Q. Could virtual_alias_maps and virtual_mailbox_maps point to the
>> same map file?
>
> There is no need for that.  Typically virtual_alias_maps would be
> only aliases that cyrus doesn't know about, and all valid cyrus
> recipients listed in virtual_mailbox_maps.
>

Given I have the following address formats:

first.l...@example.com
last.fi...@example.com
lastshortf...@example.com
last.departm...@example.com

All of which are aliases for one email account "someuser". If I list
these in virtual_aliases_maps where the value portion of the mapping
is unused and I do not put these entries in virtual_aliases and map
them to someuser then how does cyrus-imap perform the mapping?  Where
does it get its information?


-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:byrn...@harte-lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

Reply via email to