On 24 Nov 2009, at 00:03, mouss wrote: > Sean Holdsworth a écrit : >> On 21 Nov 2009, at 10:58, mouss wrote: >> >>> Sean Holdsworth a écrit : >>>> [snip] >>>> >>>> If I allow that address rewite then mail for p...@domain or p...@domain >>>> will >>>> get >>>> sent on to the MTA with an envelope recipient address of catch...@domain >>>> rather than their original recipient address. >>>> >>>> I've tried various work arounds without success. The one that seems most >>>> natural, but which DOES NOT WORK, is the following: >>>> >>>> virtual_aliases: >>>> p...@domain @domain p...@domain >>>> p...@domain @domain p...@domain >>>> >>>> This results in mail for either address only arriving in their own mailbox. >>>> >>>> Is there another approach to this that I'm missing? >>>> >>> you want smtp_generic_maps. >> >> Sorry but having reread the address rewrite documentation several times, I >> don't understand how smtp_generic maps would help in this case. To restate >> the problem, I'm trying to figure out a way of doing the following >> deliveries: >> > > > use virtual aliases like this: > > j...@example.com f...@example.net, bar+...@example.com > > > where "bar+joe" keeps the "joe" information. > > at the time of delivery, rewrite > bar+...@example.com j...@example.com > > > if this doesn't do what you want, please explain your problem without > citing any postfix methods/solutions/parameters. in short, explain your > problem in "the problem domain", not in the solution domain. >
Thanks for the additional suggestion but I'm still not able to do what I'm attempting without an address rewrite causing problems, so I'll do as you suggest and try and explain the problem without trying to solve it. I have two mail servers. The first mail server acts as MX for a domain. That domain has a catchall delivery rule and a few specific addresses. Mail that doesn't match a specific address is forwarded on to the second mail server (via SMTP). Mail to any of the specific addresses is delivered into a local, per address mailbox on the first mail server, but a copy is also sent on to the second mail server so that this second mail server receives a copy of any mail sent to an address in the domain. The second mail server must see mail being delivered to the same address to which it was sent on the first mail server. Is this possible without a custom delivery agent, which is how I'm currently solving this problem?