[NTLUG:Discuss] qmail virtual mail help please
Keith From
kfrom at cbssolutions.com
Thu Sep 30 13:40:45 CDT 1999
ok, we are getting REALLY close.....
in /var/qmail/control/virtualdomains:
laiken.com:laiken001
southwestern-av.com:swav001
I have /home/laiken001/.qmail-info, it contains
&laiken001 at mail.cbssolutions.com
I have /home/swav001/.qmail-info, it contains &swav001 at mail.cbssolutions.com
THESE WORK!!!!!!!! }:-)
Now, when I added: /home/laiken001/.qmail-brian, containing
&laiken002 at mail.cbssolutions.com
and tried to email brian at laiken.com, this is the bounce I got back:
***********************************************************
Hi. This is the qmail-send program at mail.cbssolutions.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.
<@laiken002 at mail.cbssolutions.com>:
Sorry, no mailbox here by that name. (#5.1.1)
--- Below this line is a copy of the message.
Return-Path: <kfrom at cbssolutions.com>
Received: (qmail 2204 invoked by uid 560); 30 Sep 1999 18:26:12 -0000
Delivered-To: laiken002-brian at laiken.com
Received: (qmail 2201 invoked from network); 30 Sep 1999 18:26:12 -0000
Received: from pm3-46.eaze.net (HELO keithspc) (209.223.22.66)
by mail.cbssolutions.com with SMTP; 30 Sep 1999 18:26:12 -0000
Message-ID: <04a601bf0b71$d334b500$4216dfd1 at keithspc>
From: "Keith From" <kfrom at cbssolutions.com>
To: <brian at laiken.com>
**************************************************************
question:
even if this had worked, how would the client have logged in to retreive
email for brian at laiken.com
without a user name and password?????
Once again, thanks for sticking with me through this.
Keith
> On Thu, Sep 30, 1999 at 11:01:14AM -0500, Keith From wrote:
> > I have RTFM, man pages, and qmail archives and I dont
> > see why this doesnt work. Perhaps someone here can
> > see what I am overlooking.
> >
> > I am setting up 4 mail boxes for laiken.com
> > Here are my files and what I have done.
> >
> > /var/qmail/control/virtualdomains
> > laiken.com:laiken001
> > laiken.com:laiken002
> > laiken.com:laiken003
> > laiken.com:laiken004
> > southwestern-av.com:swav001
>
> Ok, delete all these laiken references. You want one reference to one
> mailbox in the virtualdomains file. This mailbox will handle all the
> mail for the domain. If you don't understand, just trust me for a sec,
> all will be made clear.
>
> Now, add a line in virtualdomains like:
>
> laiken.com:laiken
>
> Now, all email will go to the user laiken. So, we need to split it up.
>
> In the homedir for "laiken", add the .qmail-brian file. Inside that
> file should be one line that reads:
>
> &laiken001 at localhost
>
> ******************
> NOTE: localhost may not work. You would do well to expand this
> to your local host's fully qualified domain name. For instance, if
> this computers name is mail.cbssolutions.com, you'd want to put:
>
> &laiken001 at mail.cbssolutions.com
> ******************
>
> In .qmail file, the & beginning a line instructs qmail to deliver the
> message to the email address following it.
>
> Now, repeat this for the rest of the addresses. So
>
> .qmail-info contains "&laiken002 at ..."
> .qmail-webmaster contains "&laiken003 at ..."
> .qmail-postmaster contains "&laiken004 at ..."
>
> > and last, but not least, when I was finished, I did:
> > killall -HUP qmail-send
>
> After you change the virtualhosts file, you need to do this command.
> However, you won't need to do this after modifying .qmail files.
>
> So, whenever an email message comes that's destined for laiken.com,
> qmail looks in the virtualhosts file to find out which user account
> handles mail for that domain. Finding "laiken", it then looks in laiken's
> home directory for .qmail-* files to direct it to where to deposit the
> message.
>
> Make sense? If I need to elaborate on anything, let me know. I worked
> for an ISP running a qmail server for over two years, and I might have
> glossed over something important.
>
> Shane
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list