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

2.99.53-pre1 - smtpserver policy database problem

I'm having an smtpserver problem with 2.99.53-pre1 on a Solaris 2.6 
system.  The compile and installation completed successfully.  I ran
the postinstall script and the policy-builder script.  When I connect
to smtpserver I get the following error:

220 localhost ZMailer Server 2.99.53-pre1 #8 ESMTP+IDENT ready at Thu, 13
Apr 2000 13:32:57 -0400
helo kamin
400-4.7.0 Policy database problem, code=-1
400 4.7.0 With 'HELP' command you can get our contact information.

I've been looking at the smtpserver source for some clue.  It appears that 
the -1 code comes from:

smtpserver.c:    policystatus     = policyinit(&policydb, &SS->policystate,

policytest.c:   int policyinit(relp, state, whosonrc)
policytest.c:      struct policytest **relp;
policytest.c:      struct policystate *state;
policytest.c:      int whosonrc;
policytest.c:      {
policytest.c:          int openok;
policytest.c:          char *dbname;
policytest.c:          struct policytest *rel = *relp;
policytest.c:          if (rel == NULL)
policytest.c:            return -1;  /* Not defined! */

policydb is allocated here:

cfgread.c:    /* Two parameter policydb option: DBTYPE and DBPATH */
cfgread.c:    else if (cistrcmp(name, "policydb") == 0 && param2 /* 2
params */) {
cfgread.c:      policydefine(&policydb, param1, param2);

policytest.c:   void policydefine(relp, dbtype, dbpath)
policytest.c:   struct policytest **relp;
policytest.c:   const char *dbtype, *dbpath;
policytest.c:   {
policytest.c:       struct policytest *rel = (void *) emalloc(sizeof(*rel));
policytest.c:       *relp = rel;


In the smtpserver.conf
-rw-r--r--   1 root     other       6658 Apr 13 13:32

the policy database parameter is:
PARAM  policydb   ndbm  /var/zmailer/db/smtp-policy

-rw-r--r--   1 hinsonkp staff       4352 Apr 13 13:53

It would seem that the policdb structure is not getting created.  Does
anyone have a suggestion as to what is going wrong?

Ken Hinson                        URL:  http://www.math.vt.edu/people/hinsonkp
Mathematics Department                           E-mail:  hinsonkp@math.vt.edu
Virginia Tech                                       Telephone:  (540)
Blacksburg, VA  24061-0123                                FAX:  (540) 231-5960