Hello,

  Ok, looks like it is finding and reading your dbmail.conf,
so back to your original problem (which I thought was being
able to find/read the file):

[dbmail/smtp] main(): error reading alternate config file

Without looking at the source to see where that message is
printed, perhaps your config file is corrupt/invalid?  Try
putting in a fresh copy from the dbmail source.  Also the
"alternate" is confusing there.  If a new config file
doesn't do the trick, set the TRACE_LEVEL to 5 in the
[DBMAIL] section of your config file, run something like
dbmail -a, and look at the syslog ouput.

  Also, you're sure you defined dbmail-smtp -d, not
dbmail-smtp -f, in your sendmail.mc?

  And make sure not to leave dbmail.conf mode 666.  You want
to run dbmail under its own userid, and have the file mode 600.

Jn



On Wed, 2005-11-09 at 08:29 +1100, Daniel Kasak wrote:
> Jesse Norell wrote:
> 
> >Hello,
> >
> >  Don't know where Gentoo expects it; Debian would be looking
> >for /etc/dbmail/dbmail.conf, and the default location is
> >/etc/dbmail.conf.  If you chmod 600, make sure the file is
> >owned by whatever user dbmail is running as (and you'd do
> >well to make sure that's not root).  If you still can't
> >figure it out, you could try running under strace to see
> >where it's looking for the config file.
> >Eg. "strace dbmail-util -a 2>&1 | grep dbmail.conf"
> >
> >Jn
> >  
> >
> Thanks for the response :)
> 
> I've chmod 666'd /etc/dbmail.conf, and also duplicated it in 
> /etc/dbmail/dbmail.conf just in case.
> 
> I've run strace:
> 
> dkasak dbmail # strace dbmail-util -a 2>&1 | grep dbmail.conf
> open("/etc/dbmail.conf", O_RDONLY)      = 3
> read(3, "# $Id: dbmail.conf 1539 2004-12-"..., 131072) = 3481
> dkasak dbmail #
> 
> So it *is* looking at /etc/dbmail.conf, right?
> 
> Also note that I get the same behaviour whether I compile it myself ( 
> default everything ... only configure option is --with-mysql ) or 
> whether I use the Gentoo ebuild.
> 
> Dan
> 
-- 
Jesse Norell - [EMAIL PROTECTED]
Kentec Communications, Inc.

Reply via email to