From owner-freebsd-questions Sat Nov 24 12:38:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fremont.bolingbroke.com (adsl-216-102-90-210.dsl.snfc21.pacbell.net [216.102.90.210]) by hub.freebsd.org (Postfix) with ESMTP id E3B6137B405 for ; Sat, 24 Nov 2001 12:34:53 -0800 (PST) Received: from fremont.bolingbroke.com (fremont.bolingbroke.com [216.102.90.210]) by fremont.bolingbroke.com (8.12.1/8.12.1) with ESMTP id fAOKUrfk099450; Sat, 24 Nov 2001 12:34:38 -0800 (PST) Date: Sat, 24 Nov 2001 12:30:53 -0800 (PST) From: Ken Bolingbroke To: list subscriber Cc: freebsd-questions@FreeBSD.ORG Subject: Re: configuring email for virtual hosts In-Reply-To: <20011124134620.O5098-100000@wildharerc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Putting the hostname in /etc/mail/local-host-names is what puts it in "class w", so that's not the problem. That the mail is accepted when the hostname is in class w means you've got it right except for the virtusertable configuration. If rebuilding the map doesn't help, check that your sendmail configuration actually does include support for virtusertables. Ken Bolingbroke hacker@bolingbroke.com On Sat, 24 Nov 2001, list subscriber wrote: > Ryan: > > Thanks for your help. > > I did in fact remake the database, just went back and did it again and > retested. Restarted sendmail after I did the make. > > Did not work. Received message for joeblow, but rejected others. > I also tested without the entry in local-host-names, that doesn't work at > all, rejects everything for xyz.com. > > Someone else suggested it is a class w, but I see no evidence of that and > I don't really know what that means. > > Other ideas? > > TF > > > > On Sat, 24 Nov 2001, Ryan Thompson wrote: > > > list subscriber wrote to freebsd-questions@FreeBSD.ORG: > > > > > [...] > > > In my /etc/mail/local-host-names, I have defined a domain name > > > (xyz.com) > > > > > > In /etc/mail/virtusertable I have a line > > > > > > @xyz.com joeblow > > > > > > What I want to happen is mail for any name @ xyz.com to go into the > > > mailbox joeblow. > > > > It looks like you've made the right additions to the config files, but > > you have most likely neglected to rebuild the databases. Sendmail > > doesn't read the config files directly... it expects database files to > > exist with that information. > > > > For virtusertable, try the following: > > > > /usr/sbin/makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable > > kill -1 `cat /var/run/sendmail.pid` > > > > (The second line rehups sendmail, so it will re-read the databases). > > > > > > > What actually happens is it will accept mail for joeblow@xyz.com is > > > accepted correctly, but anything else is rejected. > > > > This is the default behaviour. Sendmail is basically not caring about > > the @xyz.com portion, and is simply mapping to local usernames. > > root@xyz.com, for instance, will be saved to root's mailbox. In other > > words, this is a good indication that your changes did not take > > effect. > > > > Hope this helps, > > - Ryan > > > > -- > > Ryan Thompson > > Network Administrator, Accounts > > > > SaskNow Technologies - http://www.sasknow.com > > #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 > > > > Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon > > Toll-Free: 877-727-5669 (877-SASKNOW) North America > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message