On Wed, 2005-11-09 at 09:12 +1100, Daniel Kasak wrote:
> Jesse Norell wrote:
> 
> >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.
> >
> Done that. Here is the *only* stuff I've changed:
> 
> ---
> 
> [DBMAIL]
> host=localhost
> sqlsocket=/var/run/mysqld/mysqld.sock
> user=dbmail
> pass=dbmailpass
> db=dbmail
> [EMAIL PROTECTED]

  You do still have TRACE_LEVEL in [DBMAIL], for clarity?

> 
> [SMTP]
> TRACE_LEVEL=5
> 
> ---
> 
> The rest of the file is in it's default state.
> 
> >  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.
> >  
> >
> I don't have a dbmail executable. Should I?
> 

  Nope, dbmail-util, sorry.


> >  Also, you're sure you defined dbmail-smtp -d, not
> >dbmail-smtp -f, in your sendmail.mc?
> >
> >  
> >
> Got that too:
> 
> ---
> 
> divert(-1)
> divert(0)dnl
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> VERSIONID(`$Id: sendmail-procmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum 
> Exp $')dnl
> OSTYPE(linux)dnl
> DOMAIN(generic)dnl
> MASQUERADE_AS(`nusconsulting.com.au')dnl
> FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
> FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
> FEATURE(`local_procmail')dnl
> define(`LOCAL_MAILER_PATH', `/usr/sbin/dbmail-smtp')dnl
> define(`LOCAL_MAILER_ARGS', `dbmail-smtp -d $u')dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
> MAILER(procmail)dnl
> 
> ---

  Your procmail setup doesn't happen to deliver to dbmail itsself, does
it?  Look for a dbmail-smtp -f there, if so.

  Check that you're not chroot'd, as Paul suggested.  Also, does
dbmail-util give a similar error, or does it run?  If it does run,
does dbmail-smtp run from the command line?



-- 
Jesse Norell - [EMAIL PROTECTED]
Kentec Communications, Inc.

Reply via email to