Re: virtual domain problem

2000-01-29 Thread Roman Volf-RealShell Admin

On Sat, 29 Jan 2000, Eric Lalonde wrote:

 i have the domain yourmom.org pointed to my box. I want it to be set up as a
 virtual domain.
 i added the line [EMAIL PROTECTED]:yourmom

This line should read:
yourmom.org:yourmom

you also need to put yourmom.org in rcpthosts

 to /var/qmail/control/virtualdomains
 and then created a user named yourmom.
 in /home/yourmom/ i put a file called .qmail-testguy

You need an email address in .qmail-testguy if you want it to forward. if
you don't have that there, qmail looks for a system user named testguy.



Roman Volf
[EMAIL PROTECTED]
Realshell Internet Services
http://www.realshell.com
"We are all unique, just like everyone else"



RE: Virtual Domain Problem

1999-12-06 Thread Peter Cavender

Hello there,  I have been attemping to get virtual hosting up and 
running but have failed so far with the following message:

Sorry. Although I'm listed as a best-preference MX or A for that host,
it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)

The domain was added to virtualdomains using the domain.com:user 
example in the FAQ.  The domain was also added to the rcphosts and 
the server was hupped a few hundred times...  Anyone have any 
insights into this particular problem?

Did you put the domain name in control/locals?



Fwd: Re: Virtual Domain Problem

1999-12-06 Thread Peter Cavender



  Hello there,  I have been attemping to get virtual hosting up and
  running but have failed so far with the following message:
  
  Sorry. Although I'm listed as a best-preference MX or A for that
host,
  it isn't in my control/locals file, so I don't treat it as local.
(#5.4.6)
  
  The domain was added to virtualdomains using the domain.com:user
  example in the FAQ.  The domain was also added to the rcphosts and
  the server was hupped a few hundred times...  Anyone have any
  insights into this particular problem?
 
  Did you put the domain name in control/locals?
 

I tried that as well and got the same error message.  Several docs on qmail
say NOT to put virtual domains in the locals file however.  That qmail-lint
program also checks to see if a virtualdomain in is locals and generates an
error message.


[HI FOLKS - WHEN REPLYING TO A MAILING LIST POST, MAKE SURE YOU HAVE 
THE RIGHT ADDRESS IN THE TO: FIELD, OTHERWISE IT GETS SENT TONLY TO 
THE PERSON WHO POSTED THE ORIGINAL MESSAGE   -Pete]



Fwd: Re: Virtual Domain Problem

1999-12-06 Thread Peter Cavender


You don't want this to be in your locals file. It's a virtual 
domain.  Hum.. Is
this a third level domain, or is it a first level? third.domain.com 
vs. domain.com

I've had these issues as well myself. Most of the time to solve it required to
make sure that the domain is spelled correctly, and there is a valid 
'user' it's
being handled by: domain.com:user
If this is a third level domain, you will need to add a dot infront 
of the domain
in your virtualdomains file: .domain.com:user
It's a wild card alias that will accept all third level domain names.

Other than that, there isn't much I can think of at the moment.

Hope this helped..

Philip

Peter Cavender wrote:

  Hello there,  I have been attemping to get virtual hosting up and
  running but have failed so far with the following message:
  
  Sorry. Although I'm listed as a best-preference MX or A for that host,
  it isn't in my control/locals file, so I don't treat it as 
local. (#5.4.6)
  
  The domain was added to virtualdomains using the domain.com:user
  example in the FAQ.  The domain was also added to the rcphosts and
  the server was hupped a few hundred times...  Anyone have any
  insights into this particular problem?
 
  Did you put the domain name in control/locals?


[HI FOLKS - WHEN REPLYING TO A MAILING LIST POST, MAKE SURE YOU HAVE 
THE RIGHT ADDRESS IN THE TO: FIELD, OTHERWISE IT GETS SENT TONLY TO 
THE PERSON WHO POSTED THE ORIGINAL MESSAGE.  I STAND CORRECTED ON THE 
"locals" ISSUE.   -Pete]



Re: virtual domain problem

1999-03-04 Thread Anand Buddhdev

On Wed, Mar 03, 1999 at 11:50:10PM -0600, zach wrote:

Rule: domains cannot exist simultaneously in locals and virtualdomains.

 Hello,
 
   I just installed Qmail today and I am very pleased with it.  The
 only problem I seem to be having is virtual domain routing.  I host two
 domains on my machine other than the original one (deathvapor.org).  I
 am attempting to route all the mail for domain1.com to one account and all
 the mail for domain2.com to another account.  Here is a step-by-step of
 how I went about attempting this:
 
 I used "./config," so all the virtual hosts on my machine were put into
 /var/qmail/control/locals and /var/qmail/control/rcpthosts with their 
 respective "www." hostnames (ie: it put www.domain1.com instead of 
 domain.com, which seems normal..I think).

Add domain1.com and domain2.com (without the www.) to control/rcpthosts.
Otherwise, you will not be able to receive mail for those domains via SMTP.
With your current setting, qmail will only accept mail for www.domain1.com
and www.domain2.com via SMTP.

control/locals should only contain dvp.deathvapor.org and deathvapor.org.
Remove everything else.

control/virtualdomains should contain:
domain1.com:user1
domain2.com:user2

Then restart qmail.

Then in user1's home directory, you need to have a .qmail-default file
containing delivery instructions. It will catch all mail for that domain.
Do the same for user2.

What basically happens is that when qmail sees a domain in virtualdomains,
it appends the recipient address to the username associated with that
virtualdomain and then treats it as local. In your case, when you send
email to [EMAIL PROTECTED], it becomes [EMAIL PROTECTED] and is treated
as local. qmail then looks in zach's home directory for a .qmail-test file
for delivery instructions. Delivery instructions are documented in man
dot-qmail.

 I put "domain1.com:zach" on one line of /var/qmail/virtualdomains, and I
 restarted qmail.  I sent a mail to "[EMAIL PROTECTED]" and got a returned
 mail.  It said:
 
 --begin--
 
 Hi. This is the qmail-send program at dvp.deathvapor.org.
 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 4333 invoked by uid 1000); 4 Mar 1999 05:39:00 -
 Delivered-To: [EMAIL PROTECTED]
 Received: (qmail 4330 invoked by uid 0); 4 Mar 1999 05:39:00 -
 Date: 4 Mar 1999 05:39:00 -
 Message-ID: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: test
 
 test.
 
 --end--

-- 
See complete headers for address, homepage and phone numbers