John,

I'm not sure this is exactly what you are looking for, but I have an
alternate solution to your problem.

If you remove the smtproutes entry, and enter the following into
virtualhosts:

domain_to_relay.com:relaydomain

Then all mail bound for domain_to_relay.com can be forwarded by

~relaydomain/.qmail-default (which can contain):
| forward ${EXT}@server_to_relay_to.domain.com

And you can make as many exceptions as you like to this rule, e.g.
~relaydomain/.qmail-admin (which could contain):

./Maildir/

or whatever delivery address you would prefer.

Now the only problem with this solution is that your message makes two
trips through the queue--if it's not a heavily loaded box, then you are
set.

Good luck,

-Martin
-- 
Martin A. Brown --- Wonderfrog Enterprises --- [EMAIL PROTECTED]

On Thu, 16 Dec 1999, John Grant (Concordant Networks) wrote:

-->Well after a successful installation that receives
-->email for a domain and just sends it on to the real server I have hit a snag.
-->
-->Current fix: smtproutes contains the following:
-->
-->domain_to_relay.com:server_to_relay_to
-->
-->Alas *one* email address at domain_to_relay.com 
-->has to stay local to my server (without getting relayed
-->on and then back (tried that approach).
-->
-->Anyone have a good suggestion how to relay all,
-->but that one special address ?
-->
-->---
-->
-->                                      John 

Reply via email to