[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zmailer/netfind



According to Matti Aarnio:
> 
> Kamil writes about  $MAILSHARE/cf/server.cf change to make
> netfind work as expected -- for ordinary user accounts..
> 
> > I have modified this as following:
> > 
> > 	case $(channel $quad) in
> > 	local)	text=$(login2uid $(user $quad))	# ignore return value
> > 		if text="$(fullname $(user $quad))"; then
> > 			text="local delivery for $text"
> > 		else
> > #it's not '250 OK..'	text="local delivery for"
> > 			text="550 no such user:"
> > 		fi
> > 
> > If is true above and netfind will not use RCPT TO: for searching e-mail
> > addresses then it should work.
> 
>   However if you have user addresses of style:
> 		Firstname.Lastname@host.domain
> it can end up yielding
> 	250 error delivery to norealname for <Firstname.Lastname>
> which of course isn't quite what you would expect...
> 

OK, small fix that it will looking into "fullnames" database:

	local text tmp

	case $(channel $quad) in
	local)	tmp="$(fullnamemap $(user $quad))"
		if [ -z $tmp ]; then
			tmp="$(user $quad)"
		fi
		text=$(login2uid $tmp)		# ignore return value
		if text="$(fullname $tmp)"; then
			text="local delivery for $text"
		else
			text="550 no such user:"
		fi


There is also possibility for replacement line in the "quadprint":

	echo "$text <$(user $quad)>"

to:

	echo "$text <$tmp>"

if you want disclose a login name of user searched in the "fullnames"
database to the netfind.


--------------------------
K a m i l   K U K U R A
Kamil_Kukura@ccsun.tuke.cs
--------------------------