DNS and zmailer not cooperating

Date: Thu, 22 May 1997 16:55:39 -0300
From: Gerard MacNeil <macneil@chebucto.ns.ca>
To: Larry Brinton <brinton@glinx.com>
cc: CSuite Technical Reports <csuite-tech@chebucto.ns.ca>,
Precedence: bulk

next message in archive
next message in thread
previous message in archive
Index of Subjects


On Wed, 21 May 1997, Larry Brinton wrote:

> I've done what you've requested. mail.cnet.windsor.ns.ca is now a CNAME
> and the MX record is now set to cnet.windsor.ns.ca

Unfortunately, it did not solve the problem - if I only knew what the
problem was!

In a nutshell, zmailer is supposed to use dbm/ndbm/gdbm (you pick 'em) to
consult an in-memory database called "thishost".  "thishost" gets created
from the file '/var/csuite/var/mail/db/localnames'.  "thishost" does exist
as a database (using 'router -i' - talking to the router interactively,
issue the command "db print thishost"), and all the variations of the name
are there.

Various zmailer *.cf routines call 'thishost $address'.  What is supposed
to happen is that, if $address matches one of the hostnames in "thishost",
zmailer is supposed to treat it as a local address.  

"thishost $address" fails in all cases.

After the DNS change, I suspected a broken gdbm. I downloaded a new copy,
compiled, tested and installed it - no change.

I explicitly linked '-lgdbm' in zmailer, recomplied and reinstalled - no
change.

Finally, I hard coded (in standard.cf, function deliver ()), that if it
saw "cnet.windsor.ns.ca" it would return "wwhcn.cnet.windsor.ns.ca" and
continue.

Definitely *NOT* a pretty solution, but for the first time mail to
'user@cnet.windsor.ns.ca' and 'user@wwhcn.cnet.windsor.ns.ca' will both be
handled by zmailer properly.

I have circulated this email relatively widely because I think
zmailer.2.99.48 has a bug.  This is the version I got from
csuite.chebucto.ns.ca using 'cvs checkout'.

Gerard MacNeil, P. Eng.



next message in archive
next message in thread
previous message in archive
Index of Subjects