I now have this working properly for a test account.  It seems to me
now that many of my difficulties stem from trying to map Sendmail
techniques to Postfix.

I am now considering the relationship between /etc/postfix/virtual and
/etc/postfix/relay_domains.  To deliver email to a local mailbox where
the mailbox_transport has been defined, as is the case when delivering
to cyrus-imapd users, the address must be defined in either the
local_recipients_maps or the virtual_aliases_maps. Further, it seems
that domains other than the host's domain must be specified in both
virtual_alias_domains and relay_domains.

>From my readings of the various bits of documentation it appears that
the virtual domains and the virtual aliases may reside in the same
map.

Thus this is possible in /etc/postfix/virtual:

# These are the virtual domains
example.com                -
.example.com               -

# These are the virtual aliases
firstu...@example.com      firstuser
@example.com               mailbag


However, for Postfix to accept the mail for a virtual domain int he
first place it seems to me that domain must be given to the
relay_domain variable.  The form as I understand it is:

#/etc/postfix/relay_domains
example.com                -
.example.com               -

My questions is: Why not simply map all three as shown below?

#/etc/postfix/main.cf
   relay_domains = hash:/etc/postfix/virtual
   virtual_domains = $relay_domains
   virtual_aliases_map = regexp:/etc/postfix/virtual.regexp,
                         $virtual_domains

Is the separation of relay_domains and virtual_domains simply to allow
reception of domains that are then forwarded on by the transport map
instead of delivered locally?  If so then the question still remains:
why the distinction between virtual_domains and virtual_aliases_map?


-- 
***          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