Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 1998 22:20:37 -0700 (PDT)
From:      Bernie Doehner <bad@uhf.wireless.net>
To:        Mark Mayo <mark@vmunix.com>
Cc:        isp@FreeBSD.ORG
Subject:   Re: virtusertable weirdness
Message-ID:  <Pine.BSF.3.96.980515221806.1992A-100000@shf.wireless.net>
In-Reply-To: <19980516002148.B25146@vmunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> /etc/virtusertable.source looks like:
> 	mark@hi-fi.com		mark
> 	editor@hi-fi.com	mark
> 	@hi-fi.com			mad
> 	...

Talk of coincidence, I just fixed a virtusertable today..  You have to
properly recompile makemap (it seems) to get dbm format.. 

I ended up using hash format instead, so you have
Kvirtuser hash -o /etc/virtusertable
 
> vnode % makemap dbm /etc/virtusertable < /etc/virtusertable.source
> makemap: Type dbm not supported in this version


dbm != hash...  


> Hmmm. db-2.3.16 suspicions happening... My /etc/sendmail.cf did look
> like:
> 	Kvirtuser dbm /etc/virtusertable

Change to Kwirtuser hash -o /etc/virtusertable

> So I try:
> vnode % makemap hash /etc/virtusertable < /etc/virtusertable.source
> 
> which completes fine. Now I've got a /etc/virtusertable.db
> Change the sendmail.cf to:
> 	Kvirtuser hash -o /etc/virtusertable
> 
> No go. So I try:
> 	Kvirtuser hash -o /etc/virtusertable.db
> 
> Still no go. Mailing to a real user on the virtual domain works, but
> trying one of the mappings doesn't do it:
> 
>    ----- Transcript of session follows -----
>    ... while talking to mailhost.vmunix.com.:
>    >>> RCPT To:<editor@hi-fi.com>
>    <<< 550 <editor@hi-fi.com>... User unknown
>    550 editor@hi-fi.com... User unknown
> 
> Naturally, I remembered to HUP sendmail after making any sendmail.cf
> changes...

Right.

> Anyone have any ideas that I'm doing wrong here?? My only hunch is
> that the addition of the db-2.3.16 package might have fried something..
> There is a ndbm.h file in /usr/include, and I tried rebuilding the
> /usr/src/usr.sbin/sendmail/makemap/makemap.c with -DNDBM instead of -DNEWDB
> but the same error about 'dbm not supported happens'..
> 

Bernie


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980515221806.1992A-100000>