On Fri, 20 Nov 2009, Sean Holdsworth wrote: > Suppose I have a catchall delivery for a (virtual) domain into a > mailbox: > > @domain => A > > I also have a couple of other addresses in the same domain delivering to > their own mailboxes: > > p...@domain => B > p...@domain => C > > So far so good, easy to set up and things work as expected. Now for the > complication. In addition to the fully qualified addresses delivering to > their own mailboxes I require a copy of this mail delivered into the > catchall mailbox: > > p...@domain => B, A > p...@domain => C, A > > Now, providing I'm prepared to do an address rewrite I can set this > up as > follows: > > virtual_alias_maps = hash:virtual_aliases > virtual_mailbox_maps = hash:virtual_mailbox_recipients > > virtual_aliases: > p...@domain p...@domain catch...@domain > p...@domain p...@domain catch...@domain
Add: @domain catch...@domain > virtual_mailbox_recipients: > @domain A Modify the LHS above to catch...@domain. > transport: > domain smtp:[MTA] Instead of that, just simplify things and configure the transport for catch...@domain. > p...@domain virtual > p...@domain virtual This does not appear to be appropriate transport(5) syntax, and if you configure a transport for catch...@domain, then you don't even need to explicitly specify p1 and p2; their virtual_transport should default to virtual(8). > I've tried various work arounds without success. The one that seems most > natural, but which DOES NOT WORK, is the following: Can you show 'postconf -n' and your actual transport maps, virtual alias and mailbox files? If you must obfuscate for privacy reasons, please be consistent about it. Some related logging would also help provide context and aid troubleshooting. Also let us know if you need to preserve the original envelope recipient information when transporting catchall messages to the other server. -- Sahil Tandon <sa...@tandon.net>