Qmail-User <[EMAIL PROTECTED]> writes on 16 September 1999 at 11:46:05
+1000
>
> I have two domain names:
>
> cyberscapes.com.au
> peakimpact.net
>
> The first works without any problems but the second I have yet to have
> working. I have added the following to "virtualdomains":
>
> pekimpact.net:peakimpact
>
> I have set up a user who is peakimpact. I have two files under the
> peakimpact user:
>
> .qmail-vpl
> .qmail-ajr
>
> Inside these files I have put the following:
>
> &[EMAIL PROTECTED]
>
> and
>
> &[EMAIL PROTECTED]
>
> respectively. Am I correct so far? I want also for these users to able
> to send mail to other people without those people seeing anything to do
> with cyberscapes.com.au. Either e-mail have their username followed by
> their domain eg. [EMAIL PROTECTED]
>
> Can you please give me some pointers?
What you've done so far looks correct and complete to me for handling
*incoming* mail. Your question seems to be about how *outgoing* mail
looks. Can I safely conclude that incoming mail is already working
correctly for you?
For outgoing mail -- depends how they are sending it. If they submit
it using qmail-inject (or the sendmail wrapper which calls
qmail-inject), you can control what the "from" header and what the
envelope sender are set to using various environment variables. man
qmail-inject for details (see USER, MAILHOST, and QMAILSHOST in
particular). You may also need the QMAILINJECT variable, perhaps with
the value "f". This is how I'm handling it; the primary name of the
system I'm sending this from is gw.dd-b.net, but the headers show me
as sending this from just dd-b.net.
If they submit it via smtp, then qmail doesn't alter the headers; they
should do whatever their mail program lets them do to set up the
headers before submitting it, and that will be passed through. The
headers will then show the step of *relaying through*
cyberscapes.com.au.
As a last resort, to be avoided if at all possible, you *can* arrange
to trap every message being relayed and do modifications to it, I
believe. I've never resorted to this and am not very familiar with
the tools, so I won't try to give details on this approach.
--
David Dyer-Bennet ***NOTE ADDRESS CHANGES*** [EMAIL PROTECTED]
http://dd-b.lighthunters.net/ (photos) Minicon: http://www.mnstf.org/minicon
http://www.dd-b.net/dd-b (sf) http://ouroboros.demesne.com/ Ouroboros Bookworms
Join the 20th century before it's too late!