Hi,

I'm trying to setup a Postfix instance but I'm having issues trying to meet all 
requirements. I'll summarize the details quickly:

 - This Postfix instance will be responsable only for incoming mail.

 - All the mailboxes and aliases details are saved in a database

 - Mailboxes can have one or more aliases. The aliases can point to mailboxes 
in the same domain or to domains hosted somewhere else.

 - Every domain can have one or more domain aliases. Every domain alias inherit 
the mailboxes and mailbox aliases from the original domain.

 - Some of the mailboxes have a BCC address (which is also configured into the 
database). The mailbox aliases and domains aliases that resolves into real 
mailboxes needs to inherit the BCC address from the real mailbox.



Right now I'm able to fulfill everything except the last requirement. I've 
looked into recipient_bcc_maps and it seems to be what I'm looking for, except 
that seems to work only when the recipient is not an alias. I think this 
happens because the recipient_bcc_maps ignores virtual_alias_maps (?).

So I started to look again, and I found recipient_canonical_maps, but it works 
only for domain aliases and it breaks the mailbox aliases.

I'm probably doing something wrong because I'm sure I misunderstood something 
in the documentation so I'm open to new ideas to improve my logic.



For reference this is my config:



virtual_mailbox_domains =

        proxy:mysql:/etc/postfix/sql/domains.cf

        proxy:mysql:/etc/postfix/sql/domains_alias.cf



virtual_alias_maps =

        proxy:mysql:/etc/postfix/sql/aliased_domains.cf

        proxy:mysql:/etc/postfix/sql/aliased_mailboxes.cf



virtual_mailbox_maps = proxy:mysql:/etc/postfix/sql/mailboxes.cf



# domains.cf returns contains the real domains.

# domains_alias.cf returns the real domain from a domain alias.

# aliased_domains.cf is like domains_alias.cf except that returns the full 
address instead of just the domain
# aliased_mailboxes.cf returns the real mailbox from a mailbox alias

# mailboxes.cf returns the real mailboxes
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to