Thanks! The problem was in main.c, the config was just 'dbmail.conf',
without a preceding path.




-=-=-=-=-=-=-=-=-=-=-=-
Greg Smythe
Network Support Specialist
Ayres, Lewis, Norris & May




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dave Meador
Sent: Monday, December 23, 2002 4:59 PM
To: dbmail@dbmail.org
Subject: [Dbmail] Re: Can't find config file


>Hello --
>
>Just go DBMail up and running,, almost. After struggling with sendmail
>I've hit a new roadblock. When I send a message to the DBM system it
>complains it can't find it's config file, which is in /etc per the
>install instructions:


This is a common problem and its very easy to fix...

Make sure that all the references to loading the config file
"dbmail.conf"
are as follows then it will find the config file properly:

imapd.c:24:char *configFile = "/etc/dbmail.conf";
main.c:28:char *configFile = "/etc/dbmail.conf";
maintenance.c:22:char *configFile = "/etc/dbmail.conf";
pop3d.c:31:char *configFile = "/etc/dbmail.conf";
user.c:20:char *configFile = "/etc/dbmail.conf";

Suggestion to the authors... this should be a #define in a defaults.h
file,
like:
#define DBMAILCONF_FILE  "/etc/dbmail.conf"

And the files would reference the default setting as:
imapd.c:24:char *configFile = DBMAILCONF_FILE;
main.c:28:char *configFile = DBMAILCONF_FILE;
maintenance.c:22:char *configFile = DBMAILCONF_FILE;
pop3d.c:31:char *configFile = DBMAILCONF_FILE;
user.c:20:char *configFile = DBMAILCONF_FILE;

This way you only need to make a change in one place.


_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail


Reply via email to