> -----Original Message-----
> From: Robin Bowes [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 01, 1999 1:46 PM
> To: Len Budney
> Cc: [EMAIL PROTECTED]
> Subject: Re: Re-write domain information in outgoing mail
>
>
> 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.
>
<snip>
I have a similar setup with qmail on a linux server and a 192.168.x.x domain
using WinNT clients and reaching the ISP via a dialup. I use an unegistered
domain for the local network but in the MUAs have a valid email account,
with the ISP, set for email address and reply address. Since qmail basically
is relaying, any outbound mail goes out with the headers addressed by the
MUAs.
I created a virtualdomain(s) (to handle any bounces) pointing to the local
account(s). And in each users $HOME/.bash_profile I have QMAILSUSER,
QMAILSHOST, and QMAILINJECT=f set for any mail sent via a shell or X
session. For local mail we don't care what domain shows up since we know
each others username.
We use fetchmail for retreval from ISP(s) and pipe it to qmail-inject for
local delivery. The whole setup works quite smoothly. Since there are
actually four seperate registerd ISP email accounts it's slighty more
complicated but since your using network clients the idea is the same. The
only problem we had was that qmail doesn't use hosts so I had to install
BIND.
Hope this helps.
Regards, Gary Joyce