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]

[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?

 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

---

 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.
When it's working, yes ...

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

Reply via email to