On Sun 1999-01-31 (20:11), Mate Wierdl wrote:
>    
>        | newinject
>    
>    in ~alias/.qmail-company-domain, putting the rewriting rules in
>    control/rewrite.
> 
> Typo: it is `|new-inject'.  In any case, I think the problem somehow
> is that if he just does what you suggest, the message would again be
> sent to companydomain, that is back to the local machine (since the
> companydomain virtualdomain points there).

Indeed. You are quite correct. As I said I've never used it before ;-)

> The message the qmail server gets is just simply relayed to
> relay.ourdomain and now he wants to rewrite the From: header.

The main problem with his original proposal is that the relay host may be
down, so the mail needs to be queued somehow before being sent. Perhaps it
would be best to store it in a maildir one the rewriting has been done, and
then try the delivery from there. Something like:

    virtualdomains:
        companydomain:alias-companydomain

    ~alias/.outgoing-filter:
        DEFAULT="./outgoing/"

    ~alias/.qmail-companydomain-default:
        | preline -d -f swap_from | maildrop .outgoing-filter

    # maildirmake ~alias/outgoing

And then run something like sdeliver (http://rucus.ru.ac.za/keith/qmail/)
to deliver the mail from the maildir.

Hopefully this suggestion works :)

  - Keith

> Mate

-- 
Keith Burdis - MSc (Com Sci) - Rhodes University, South Africa  
Email   : [EMAIL PROTECTED]
WWW     : http://www.rucus.ru.ac.za/~keith/
IRC     : Panthras                                          JAPH

"Any technology sufficiently advanced is indistinguishable from a perl script"

Standard disclaimer.
---

Reply via email to