Koozali.org: home of the SME Server

hello again

phil desrosiers

hello again
« on: September 16, 2001, 02:07:48 AM »
heres my setup: I setup a virtural domain with the name domain1.com as a test
i set the users to accept forwarding mail and local to the address domain1.com
then i went into my e-smith box and ran this setup

Step 1- Virtual Domain Set-up:
Use the e-smith-manager, Virtual domain panel to set-up the virtual domain, domain1.com.  Instructions are found in the user manual.
Step 2 - Create your user:

Use the e-smith-manager, User accounts panel to set-up the user fred.  Instructions are found in the user manual.

Step 3 - Create users .qmail-default:

In the users home directory, /home/e-smith/files/users/fred create a file named qmail-default containing only one line, the users name, fred.

    pico /home/e-smith/files/users/fred/.qmail-default
   - add the one word fred
   - save the file

Step 4 - Set the ownership and rights on .qmail-default to the user only:

    chown fred:fred /home/e-smith/files/users/fred/.qmail-default
   chmod 644 /home/e-smith/files/users/fred/.qmail-default

Step 5 - Create a templates-custom fragment:
    mkdir -p /etc/e-smith/templates-custom/var/qmail/control/virtualdomains
   pico /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases

In this 90aliases file enter all your virtual aliases in the form alias:username. In the example below info@domain1.com is to go to user fred.

    info@domain1.com:fred

If you want all domain mail going into one account, enter your virtual alias in the form
domain:username.  In the example below domain1.com:fred sends all @domain1.com
mail to user fred.

    domain1.com:fred

Step 6 - Save the file above and execute a console-save:

    /sbin/signal-event console-save

This recreates the file var/qmail/control/virtualdomains with the above alias entries preceeding the domain entries.

Step 7 - Restart Qmail:

Issue the command

killall -HUP qmail-send
to restart qmail and re-read in the updated var/qmail/control/virtualdomains file.
    killall -HUP qmail-send
or
   /etc/rc.d/init.d/qmail.init restart Step 8 - Test the above virtual aliases:Send an e-mail to info@domain1.com to test that it is received by the qmail server without error and reach the intended recipient (fred) mailbox

alright now i have registered the domain name and when i goto compose a message wherer it says "from" it give the name of my primary domain and not the virtual domain also when i send an e-mail to my outlook i get this message

Hi. This is the qmail-send program at tophat.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<www.domain1.com@e-smith.tophat.com>:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path:
Received: (qmail 1996 invoked by alias); 10 Sep 2000 19:04:15 -0000
Delivered-To: alias-localdelivery-www.domain1.com@tophat.com
Received: (qmail 1993 invoked by uid 5001); 10 Sep 2000 19:04:15 -0000
Delivered-To: jhondoe@e-smith.tophat.com
Received: (qmail 1990 invoked by alias); 10 Sep 2000 19:04:15 -0000
Delivered-To: alias-localdelivery-jhondoe@tophat.com
Received: (qmail 1984 invoked by uid 5001); 10 Sep 2000 19:04:14 -0000
Delivered-To: jhondoe-jhondoe@domain1.com
Received: (qmail 1982 invoked by uid 8); 10 Sep 2000 19:04:14 -0000
Received: from UNKNOWN (216.102.210.58, claiming to be "nts1.MPX-INT.COM")
by e-smith with SMTP id smtpdb0kSrq; Sun, 10 Sep 2000 15:04:09 EDT
Received: by nts1.mpx-int.com with Internet Mail Service (5.5.2448.0)
id ; Tue, 11 Sep 2001 11:59:38 -0700
Message-ID:
From: jhondoe
To: "jhondoe@domain1.com'"
Subject: test
Date: Tue, 11 Sep 2001 11:59:34 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain

I always recieve the mail and theres no problem there but i always get that error message please help