SCCS-vsn: usr.sbin/sendmail/src/recipient.c 6.39
SCCS-vsn: usr.sbin/sendmail/src/queue.c 6.53
SCCS-vsn: usr.sbin/sendmail/src/alias.c 6.36
SCCS-vsn: usr.sbin/sendmail/src/udb.c 6.18
SCCS-vsn: usr.sbin/sendmail/src/map.c 6.12
#ifndef lint
#ifdef NEWDB
#ifdef NDBM
#ifndef lint
#ifdef NEWDB
#ifdef NDBM
-static char sccsid[] = "@(#)alias.c 6.35 (Berkeley) %G% (with NEWDB and NDBM)";
+static char sccsid[] = "@(#)alias.c 6.36 (Berkeley) %G% (with NEWDB and NDBM)";
-static char sccsid[] = "@(#)alias.c 6.35 (Berkeley) %G% (with NEWDB)";
+static char sccsid[] = "@(#)alias.c 6.36 (Berkeley) %G% (with NEWDB)";
-static char sccsid[] = "@(#)alias.c 6.35 (Berkeley) %G% (with NDBM)";
+static char sccsid[] = "@(#)alias.c 6.36 (Berkeley) %G% (with NDBM)";
-static char sccsid[] = "@(#)alias.c 6.35 (Berkeley) %G% (without NEWDB or NDBM)";
+static char sccsid[] = "@(#)alias.c 6.36 (Berkeley) %G% (without NEWDB or NDBM)";
#endif
#endif
#endif /* not lint */
#endif
#endif
#endif /* not lint */
printf("forward: transient error on %s\n", buf);
#ifdef LOG
if (LogLevel > 2)
printf("forward: transient error on %s\n", buf);
#ifdef LOG
if (LogLevel > 2)
- syslog(LOG_NOTICE, "%s: forward %s: transient error: %e",
+ syslog(LOG_ERR, "%s: forward %s: transient error: %e",
e->e_id, buf);
#endif
message("%s: %s: message queued", buf, errstring(err));
e->e_id, buf);
#endif
message("%s: %s: message queued", buf, errstring(err));
-static char sccsid[] = "@(#)map.c 6.11 (Berkeley) %G%";
+static char sccsid[] = "@(#)map.c 6.12 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
#include <ndbm.h>
#endif
#if defined(HASH_MAP) || defined(BTREE_MAP)
#include <ndbm.h>
#endif
#if defined(HASH_MAP) || defined(BTREE_MAP)
#include <db.h>
#endif
#ifdef NIS_MAP
#include <db.h>
#endif
#ifdef NIS_MAP
}
if (bitset(MF_INCLNULL, map->map_flags))
key.dsize++;
}
if (bitset(MF_INCLNULL, map->map_flags))
key.dsize++;
- (void) lockfile(dbm_dirfno(map->map_db), map->map_file, LOCK_SH);
- val = dbm_fetch(map->map_db, key);
- (void) lockfile(dbm_dirfno(map->map_db), map->map_file, LOCK_UN);
+ (void) lockfile(dbm_dirfno((DBM *) map->map_db), map->map_file, LOCK_SH);
+ val = dbm_fetch((DBM *) map->map_db, key);
+ (void) lockfile(dbm_dirfno((DBM *) map->map_db), map->map_file, LOCK_UN);
if (val.dptr == NULL)
return NULL;
if (!bitset(MF_MATCHONLY, map->map_flags))
if (val.dptr == NULL)
return NULL;
if (!bitset(MF_MATCHONLY, map->map_flags))
#ifndef lint
#ifdef QUEUE
#ifndef lint
#ifdef QUEUE
-static char sccsid[] = "@(#)queue.c 6.52 (Berkeley) %G% (with queueing)";
+static char sccsid[] = "@(#)queue.c 6.53 (Berkeley) %G% (with queueing)";
-static char sccsid[] = "@(#)queue.c 6.52 (Berkeley) %G% (without queueing)";
+static char sccsid[] = "@(#)queue.c 6.53 (Berkeley) %G% (without queueing)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
printf("orderq: bogus qf name %s\n", d->d_name);
#ifdef LOG
if (LogLevel > 3)
printf("orderq: bogus qf name %s\n", d->d_name);
#ifdef LOG
if (LogLevel > 3)
- syslog(LOG_NOTICE, "orderq: bogus qf name %s",
+ syslog(LOG_CRIT, "orderq: bogus qf name %s",
d->d_name);
#endif
if (strlen(d->d_name) >= MAXNAME)
d->d_name);
#endif
if (strlen(d->d_name) >= MAXNAME)
-static char sccsid[] = "@(#)recipient.c 6.38 (Berkeley) %G%";
+static char sccsid[] = "@(#)recipient.c 6.39 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
{
#ifdef LOG
if (LogLevel > 2)
{
#ifdef LOG
if (LogLevel > 2)
- syslog(LOG_NOTICE, "%s: include %s: transient error: %e",
+ syslog(LOG_ERR, "%s: include %s: transient error: %e",
e->e_id, a->q_user);
#endif
a->q_flags |= QQUEUEUP|QDONTSEND;
e->e_id, a->q_user);
#endif
a->q_flags |= QQUEUEUP|QDONTSEND;
if (!bitset(QDONTSEND|QNOTREMOTE|QVERIFIED, a->q_flags))
{
extern int udbexpand();
if (!bitset(QDONTSEND|QNOTREMOTE|QVERIFIED, a->q_flags))
{
extern int udbexpand();
if (udbexpand(a, sendq, e) == EX_TEMPFAIL)
{
if (udbexpand(a, sendq, e) == EX_TEMPFAIL)
{
e->e_message = newstr("Deferred: user database error");
# ifdef LOG
if (LogLevel > 8)
e->e_message = newstr("Deferred: user database error");
# ifdef LOG
if (LogLevel > 8)
- syslog(LOG_INFO, "%s: deferred: udbexpand",
+ syslog(LOG_INFO, "%s: deferred: udbexpand: %e",
- message("queued (user database error)");
+ message("queued (user database error): %s",
+ errstring(errno));
e->e_nrcpts++;
return (a);
}
e->e_nrcpts++;
return (a);
}
#ifndef lint
#ifdef USERDB
#ifndef lint
#ifdef USERDB
-static char sccsid [] = "@(#)udb.c 6.17 (Berkeley) %G% (with USERDB)";
+static char sccsid [] = "@(#)udb.c 6.18 (Berkeley) %G% (with USERDB)";
-static char sccsid [] = "@(#)udb.c 6.17 (Berkeley) %G% (without USERDB)";
+static char sccsid [] = "@(#)udb.c 6.18 (Berkeley) %G% (without USERDB)";
{
if (errno != ENOENT && errno != EACCES)
{
{
if (errno != ENOENT && errno != EACCES)
{
+#ifdef LOG
+ if (LogLevel > 2)
+ syslog(LOG_ERR, "dbopen(%s): %e",
+ spec);
+#endif
up->udb_type = UDB_EOLIST;
goto tempfail;
}
up->udb_type = UDB_EOLIST;
goto tempfail;
}