Greg Elliott <[EMAIL PROTECTED]> wrote:

>b) The script would look at the domain of the intended recipient and if 
>   it matched maildomain.com (for example) it would then look at the
>   username being sent to.
>   A small(ish) text file would be kept on the mail server with a list of
>   usernames. If the username was found in the list, then the script would
>   modify the recipient's email address to [EMAIL PROTECTED]
>   and place the message back into the qmail-queue (or qmail-inject if that
>   is better).
>
>   If no match is found then the message would be handed onto
>   qmail-remote.real for normal processing.
>
>   [The effect would be to 'hijack' (for legitimate reasons) mail for a
>   subset of an upstream domain, and deliver it locally. (Attempting
>   to cut down on WAN traffic)].

It sounds like you're trying to reinvent qmail-style virtual
users. For example, if you want to "hijack" mail sent locally to your
Hotmail account, say "[EMAIL PROTECTED]", and your local
username is "greg", you could put the following in
control/virtualdomains:

  [EMAIL PROTECTED]:greg-hotmail

Then populate ~greg/.qmail-hotmail-default to direct the mail to the
appropriate mailbox.

-Dave

Reply via email to