On Sat, 16 May 1998, Ben Sinclair wrote:

> Does anyone have Sendmail virtual hosts working with the stock RH5
> Sendmail? There is some nice documentation about doing so at

Sendmail virtual hosts is surprisingly easy to do, once you figure it out. 
(heh)  First, you must add the virtual hosts to sendmail.cw.  Then you
must rebuild the sendmail.cf file using the M4 macros which should be in
/usr/lib/sendmail-cf.  The M4 macros are about as easy to modify as a
Makefile and they seem to work quite well.  You don't have to recompile
sendmail itself (bonus - sendmail is hard to recompile).  The sendmail-cf
files are in (surprise, surprise) the sendmail-cf rpm.  They are not part
of the sendmail RPM proper.  Then, you should set up a virtusertable file
and do the makemap thing it talks about in the documentation.  This makes
a virtusertable.db file for you which sendmail will read. 

If you don't update your sendmail.cf file, then everything will still
basically work (sendmail will still accept mail to all the domains in
sendmail.cf)  but no user mapping will take place - that is, mail
addressed to [EMAIL PROTECTED] will be delivered to [EMAIL PROTECTED] even if
the virtusertable says it should go to [EMAIL PROTECTED] 
[EMAIL PROTECTED] will get it instead, and if [EMAIL PROTECTED] doesn't
exist, then the user who sent the email will get some pretty confusing
error messages. :) 

Or, if you like, I could just send you my sendmail.cf file.  Email me
privately if you want it.  YMMV here.  The cf file is being used on a mail
hub (not so impressive as the ones being discussed lately, but hey) and is
capable of redirecting mail.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to