John Grant (Concordant Networks) <[EMAIL PROTECTED]> wrote in message
000301bf4824$aead9fe0$[EMAIL PROTECTED]">news:000301bf4824$aead9fe0$[EMAIL PROTECTED]...
> 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,
Here's what I did to solve a similar situation.
1. Setup the domain as a virtual domain using vpopmail
2. Make the default delivery option to deliver to a Maildir, eg, in
/home/vpopmail/domains/domain_to_relay.com/.qmail-default:
| /home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/domain_to_relay.com/domain-default
3. Use maildirsmtp running under supervise to send all mail from the Maildir
to the required server.
Any addresses that you want to keep local you can handle by either creating
a new virtual user (vadduser) or creating a .qmail-user file in the
/home/vpopmail/domains/domain_to_relay.com
HTH,
R.