This works here, but there are many ways to skin a cat.

Login to the system (root)
Go to the home directory
# cd /uhome/johnqdoe
# sudo -u johnqdoe vi .qmail
add the following lines to the .qmail file to forward his mail

## Forward mail offsite
|forward [EMAIL PROTECTED]
## but still deliver locally
/uhome/johnqdoe/Mailbox

When Johnqdoe wants the mail to stop being forwarded to hotmail, just delete
the .qmail file.


-----Original Message-----
From: Virginia Chism [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 10:42 AM
To: Qmail@List. Cr. Yp. To
Subject: need to forward to 2 addresses


On a UNIX box with BSDi 4.0, Apache, QMail and FP (though FP is not involved
in this issue) I have the following problem:

My customer needs to have email forwarded to her in Germany as well as to
her farm manager here in the states.  I have been researching all I could
find on the subject and have gotten close, but not there yet.  In the man
pages I found the following:

forward(1)
DESCRIPTION
       forward  forwards  each  new mail message to the specified
       list of addresses.

dot-qmail.0
 (3)  A forward line begins with an ampersand:

                 &[EMAIL PROTECTED]

Although it clearly states that it can be done, there is no mention of how
to set up the second forwarding address.  I think what I have below is the
proper procedure for _one_ forwarding address.

    echo "blackvengeance.com:alias-blackvengeance"
>>/var/qmail/control/virtualdomains
    echo "&forwardaddress" >~alias/.qmail-blackvengeance-info

    echo "blackvengeance.com" >>/var/qmail/control/rcpthosts'

My questiion is:  do I add the second, comma separated, in that last echo
line as:  'echo
"&forwardaddress",'&secondforward">~alias/.qmail-blackvengeance-info'  or do
I do a second / separate echo line as: 'echo
"&secondaddress">~alias/.qmail-blackvengeance-info' below the first?

Thanks in advance for your help.

V



Reply via email to