On Sun, Mar 09, 2014 at 07:53:21PM +0000, Eino Tuominen wrote:
> > The handling of such lists with Postfix is best performed via the
> > local(8) delivery agent.
>
> I guess I'm not yet thinking "the Postfix way", but how would you configure
> the lists if I have multiple e.g. [email protected] -type lists? If I
> understand it correctly, local delivery agent only searches aliases with
> the local part of the address, that is delivering to a local user. So,
> the only options I come up with are:
>
> 1) a postfix instance per recipient domain
> 2) configure aliases info-example-com and info-another-domain and so on,
> that is a dummy "local" address for each "virtual" list and then configure
> corresponding owner-info-example-com aliases, and use expand_owner_alias
> to hide the intermediate local addresses.
The simplest is probably 2. Instead of 1, you may be able to employ
a local delivery transport per-domain (with master.cf overrides
for myorigin and the like). These could also use per-domain alias
maps. A lot depends on how many domains you need to do this for.
Another option is to perform the rewrite in a (recipient concurrency
= 1) pipe transport that re-injects messages back into the queue
for further processing.
--
Viktor.