Hi Len,

Thanks for the reply.

Len Budney wrote:
> 
> Robin Bowes <[EMAIL PROTECTED]> wrote:
> > In order that I have valid return mail addresses, I'd like to
> > re-write the domain in all outgoing mail from my home network so
> > "[EMAIL PROTECTED]" and "[EMAIL PROTECTED]" become
> > "[EMAIL PROTECTED]".
> 
> I do the same thing, for the same reason. There are two solutions--one
> very specific, the other somewhat tricky.
> 
>   1. In your shell startup scripts, set the environment variables
>      QMAILSUSER and QMAILSHOST. See qmail-inject(8) for details.
> 
>      This is somewhat fragile in that users can turn off those
>      variables and undo your efforts on their behalf.

Also, all my users (well, me and the girlfriend!) are not shell users -
well, I am but I use various MUAs on my MT box to process mail.  So,
this method wouldn't work.

> 
>   2. If you use serialmail for outgoing mail, fiddle with the
>      envelope sender at that time. Do this by adding a line to
>      /var/qmail/control/virtualdomains which says:
> 
> :alias-rewrite
> 
>      Next, put the following in ~alias/.qmail-rewrite-default, all on
>      a single line:
> 
> |qmail-local alias /var/qmail/alias
>         alias-outgoing-$EXT "-" outgoing-$EXT
>         $HOST [EMAIL PROTECTED] ./Outgoing/
> 
>       Finally, create the maildir ~alias/Outgoing, and touch the empty
>       file ~alias/.qmail-outgoing-default. When you run serialmail,
>       the prefix to snip off will be "alias-outgoing-rewrite-".
> 
> The latter solution is odd, but it's the simplest way I know of to
> fiddle with envelopes, without doing something silly with "preline"
> and "sed". Any simpler solution would be appreciated!

I have seen this method described elsewhere but I don't (currently) use
serialmail; I was intending to relay all mail immediately, ie as it is
received.

I'm pretty sure that something in the mess822 package would help me here
but I can't for the life of me workout where to pull the mail out of the
system to do the re-write and where to inject it back in!

Perhaps someone more versed in the use of this package would care to
enlighten me?  (Please!)

Thanks again,

R.

PS.  I presume from you reply address that you automatically process
your mailing list traffic.  If you do this my gating into a newsgroup
drop me a line since that's the next job on my list!
-- 
Two rules to success in life: 
  1. Don't tell people everything you know.
     -- Sassan Tat

Reply via email to