From owner-freebsd-questions Fri Dec 3 14:49:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from unix.megared.net.mx (megamail.megared.com.mx [207.249.162.252]) by hub.freebsd.org (Postfix) with ESMTP id 2389C14A16 for ; Fri, 3 Dec 1999 14:49:12 -0800 (PST) (envelope-from ales@megared.net.mx) Received: from ales (ales.megared.net.mx [207.249.163.70]) by unix.megared.net.mx (8.9.3/8.9.3) with SMTP id QAA97462; Fri, 3 Dec 1999 16:51:03 -0600 (CST) (envelope-from ales@megared.net.mx) Message-ID: <00f301bf3de0$9b4dd080$46a3f9cf@megared.net.mx> From: "Alejandro Ramirez" To: "Dave Lambrix" , References: <000301bf3db6$eaeb61e0$1cc8a2cd@futurelnk.net> Subject: RE: Sendmail Help Date: Fri, 3 Dec 1999 16:49:07 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, The file that you need to have virtual hosting are /etc/sendmail.cw and /etc/mail/virtusertable.db, the sendmail.cw file its were you put the domain names that your server will accept mail from. ex: cat /etc/sendmail.cw domain1.com domain2.com host1.domain3.com The virtusertable.db file its a hash file, which contains virtual addresses to real accounts. You have to create a file called virtusertable and the syntaxis its something like this: cat /etc/mail/virtusertable webmaster@domain1.com jack webmaster@domain2.com nick webmaster@host1.domain3.com joseph After you create this file, you have to create the hash file from it with the following command: "makemap hash virtusertable < virtusertable" and then you will have the ".db" file. After this, you will have to tell sendmail to use this files, for this you will have to add the following option to your ".mc" file: FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl you can find a generic file in "/usr/src/contrib/sendmail/cf/cf" directory, edit the generic-bsd.mc file, and add the above line, and then recreate your "sendmail.cf" file with the following command: "make generic-bsd.cf" then "cp generic-bsd.cf /etc/sendmail.cf", and "killall -HUP sendmail" and you are done. Dont forget to create an "MX" record in your dns server pointing to your mail for each one of the domains. Have Fun... Ales ----- Original Message ----- From: Dave Lambrix To: Sent: Friday, December 03, 1999 11:50 AM Subject: Sendmail Help > > Hello, > > I am in desperate need of some help installing Virtual Hosting support on > Sendmail. Also, I can't seem to get Apache to like it's httpd.conf file. I > need to get this server running ASAP, so I am at the point, where I would be > willing to pay for someone's consultation on the matter. > > Please e-mail me if this could be arranged. > > --- > Dave Lambrix - Dave@FutureLnk.net > A&L Consulting, Inc. / FutureNET > 114 W. 2nd St., Grandview, WA 98930 > Tel: 509.882.2834 > Fax: 509.882.2842 > > > > 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