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

Re: fuzzy.tar.gz



On Fri, 1 Nov 1996, Matti Aarnio wrote:

> > *** orig/zmailer-2.99.39/router/libdb/bind.c	Thu Aug  8 19:57:47 1996
> > --- zmailer-2.99.39/router/libdb/bind.c	Tue Oct 29 17:28:04 1996
> > ***************
> > *** 420,428 ****
> >   	/* discard MX RRs with a value >= that of localdomain */
> >   	if (maxpref >= 0) {
> >   		for (n = 0; n < nmx; ++n) {
> > ! 			if (((int)mx[n].pref >= maxpref) && (mx[n].host != NULL)) {
> >   				free((char *)mx[n].host);
> >   				mx[n].host = NULL;
> >   			}
> > --- 424,440 ----
> >   	} else if (nmx == 0)
> >   		return NULL;
> >   	/* discard MX RRs with a value >= that of localdomain */
> > + 	/* [Thomas Knott]
> > + 	 * Aber den eigenen Rechnernamen nicht!
> > + 	 * Wird in der Funktion "deliver" in standard.cf gebraucht, die ent-
> > + 	 * scheidet, ob Mail am lokalen Rechner ausgeliefert wird oder nicht.
> > + 	 */
> >   	if (maxpref >= 0) {
> >   		for (n = 0; n < nmx; ++n) {
> > ! 			if (((int)mx[n].pref >= maxpref)
> > ! 				    && (mx[n].host != NULL)
> > ! 				    && (localhost != NULL)
> > ! 				    && !(CISTREQ(mx[n].host, localhost))) {
> >   				free((char *)mx[n].host);
> >   				mx[n].host = NULL;
> 
> 	Pardon me, but what is this about ?  Similar comparison should happen
> 	just a few lines above.

this is not similar, i think. The difference is that there is the comparision
CISTREQ(mx[n].host, localhost) so the localhost will not be discarded.
I didn't patch this file, but Thomas Knott wrote
that you need the localhost in the function deliver. I don't understand
this code very well, but it may help you to understand that we
can define a mailhost for every user in our own 'alias' db and that
our mailrelay has to decide where to forward incoming mails. Maybe
the final mailhost would send the mail back to the mailrelay.

Greets, Sven
--
The only limits are in your mind !