Gordon Rowell wrote:
> If you add (through a templates-custom entry, please):
> 
> info@domain2:fred
> 
> to /var/qmail/control/virtualdomains, mail for info@domain2 
> will be sent to
> fred. Create ~fred/.qmail-default, containing the single line 
> "fred" and
> you're done. You need this as ~fred/.qmail will only handle 
> mail addressed
> to "fred", whereas this mail will be addressed to fred-info.... so
> you can tell it came from a virtualdomain.

Gordon, having problems getting this to work.  Here's what I've done:

I've created a user named 'fred' and a virtualdomain 'domain1.com'.
Mail to [EMAIL PROTECTED] works fine.
Mail to [EMAIL PROTECTED] errors.

<snip>
Hi. This is the qmail-send program at netsourced1.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.

<[EMAIL PROTECTED]>:
Sorry, no mailbox here by that name. (#5.1.1)

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

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 6249 invoked by alias); 5 Feb 2001 01:40:22 -0000
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 6246 invoked by uid 100); 5 Feb 2001 01:40:22 -0000
To: [EMAIL PROTECTED]
<snip>

Here are all the steps I took with output from files created:

mkdir -p /etc/e-smith/templates-custom/var/qmail/control/virtualdomains
cp /etc/e-smith/templates/var/qmail/control/virtualdomains/*
/etc/e-smith/templates-custom/var/qmail/control/virtualdomains
pico
/etc/e-smith/templates-custom/var/qmail/control/virtualdomains/50aliases

[root@e-smith root]# cat .../50aliases
[EMAIL PROTECTED]:fred

/sbin/e-smith/expand-template /var/qmail/control/virtualdomains

[root@e-smith root]# cat /var/qmail/control/virtualdomains
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates directory. For more
# information, see http://www.e-smith.org.
#
# copyright (C) 1999, 2000 e-smith, inc.
#------------------------------------------------------------

[EMAIL PROTECTED]:fred
netsourced1.com:alias-localdelivery
netsourced1.com:alias-localdelivery
domain1.com:alias-localdelivery
e-smith.netsourced1.com:alias-localdelivery
e-smith.netsourced1.com:alias-localdeliverye-smith.domain1.com:alias-localde
livery
e-smith-manager.netsourced1.com:alias-localdelivery
e-smith-manager.netsourced1.com:alias-localdeliverye-smith-manager.domain1.c
om:alias-localdelivery
ftp.netsourced1.com:alias-localdelivery
ftp.netsourced1.com:alias-localdeliveryftp.domain1.com:alias-localdelivery
mail.netsourced1.com:alias-localdelivery
mail.netsourced1.com:alias-localdeliverymail.domain1.com:alias-localdelivery
proxy.netsourced1.com:alias-localdelivery
proxy.netsourced1.com:alias-localdeliveryproxy.domain1.com:alias-localdelive
ry
www.netsourced1.com:alias-localdelivery
www.netsourced1.com:alias-localdeliverywww.domain1.com:alias-localdelivery

#------------------------------------------------------------
# TEMPLATE END
#------------------------------------------------------------

[root@e-smith fred]# ls -la
total 24
drwx------    4 fred     fred         4096 Feb  4 17:35 .
drwxr-xr-x    6 root     root         4096 Feb  4 16:35 ..
-rw-r--r--    1 fred     fred          551 Feb  4 16:35 .qmail
-rw-r--r--    1 fred     fred            5 Feb  4 17:45 .qmail-default
drwxr-xr-x    5 fred     fred         4096 Feb  4 17:28 Maildir
drwxr-xr-x    2 fred     fred         4096 Feb  4 16:35 home

[root@e-smith fred]# cat .qmail-default
fred

...
Sorry to be a pain.  Hoping you may see something obvious that I missed.

Regards,

Darrell

Reply via email to