Hello fellow Postfix users,
I am attempting to configure a postfix server for multiple domains,
which will use a milter to send an email to a mailarchiving store
(mailarchiva). What I would like to do is:
Match the originating domain in outbound mail using a hash table or sql
lookup and use a specific milter depending on domain
Match the to: address in incoming mail to similarly choose a milter
based on domain
The reason is that I should like each company(domain) to have its own
mailarchiving store containing only their own emails, and I would like
to run multiple instances of the mailarchiving software on another
server distinguished from each other by port number.
I guess some sort of domain:port_number mapping would suffice. Is this
possible using milters or might it be easier to use a custom script?
I would be most grateful for any help on this, I haven't found a surfeit
of information online as yet.
Thanks,
Jon