So I finally have some time to configure our dev dbmail
config to use LDAP.
Can't seem to get it right though.
Can you take a look at my config file and maybe let me know
what I might be doing wrong, or even if it is an ldap
issue.
Thanks... error and config below
---- error ----
www:/etc/init.d# ./dbmail start
Dbmail cannot connect to the database server. Please make
sure
/etc/dbmail/dbmail.conf is correct, the database-server is
running,
the database for dbmail exists, and the dbmail user exists
with all
necessary permissions. To re-configure
/etc/dbmail/dbmail.conf run
'dpkg-reconfigure dbmail'.
--- dbmail.conf ------------
[DBMAIL]
# Database settings
driver=mysql # Supported drivers are mysql,
pgsql, sqlite.
authdriver=ldap # Supported drivers are sql, ldap.
host=127.0.0.1
# the same host as dbmail and you
want to use a local
# socket for connecting.
sqlport= # If you want to use TCP/IP for
connecting to the database,
# and have the database running
on a non-standard port.
sqlsocket= #/var/run/mysqld/mysqld.sock
# When using a local socket connection to the
database, fill
# in the path to the socket here
(e.g. /var/run/mysql.sock).
user=mail
pass=XXXXXXXXX
db=dbmail
#table_prefix=dbmail_ # Table prefix. Defaults to
"dbmail_" if not specified.
[EMAIL PROTECTED] # Postmaster's
email address for use in bounce messages.
sendmail=/usr/sbin/sendmail # Sendmail executable for
forwards, replies, notifies, vacations.
# The following items can be overridden in the
service-specific sections.
TRACE_SYSLOG=5 # Trace level to send to syslog.
Default is 2 (errors, fatals).
TRACE_STDERR=2 # Trace level to send to stderr.
Default is 0 (fatals).
EFFECTIVE_USER=dbmail # Root privs are used to open a
port, then privs
EFFECTIVE_GROUP=dbmail # are dropped down to the
user/group specified here.
BINDIP=* # The IP address the services will
bind to.
# Use * for all local interfaces.
# Use 127.0.0.1 for localhost
only.
NCHILDREN=2 # Default number of child processes
to start.
MAXCHILDREN=10 # Maximum number of child processes
allowed.
MINSPARECHILDREN=2 # Unused children to always have
availale.
MAXSPARECHILDREN=4 # Maximum unused children allowed
to be active.
MAXCONNECTS=10000 # Child process is restarted after
handling this many connections.
MAX_ERRORS=500 # Child process will restart after
this many connection errors.
TIMEOUT=300 # Idle time allowed before a
connection is shut off.
RESOLVE_IP=yes # If yes, resolves IP addresses to
DNS names when logging.
[SMTP]
# In fact, there isn't anything
here by default.
[LMTP]
PORT=24 # Port to bind to.
[POP]
PORT=110 # Port to bind to.
POP_BEFORE_SMTP=no # If yes, allows SMTP access from
the host IP connecting by POP3.
[IMAP]
PORT=143 # Port to bind to.
TIMEOUT=4000 # IMAP prefers a longer timeout
than other services.
IMAP_BEFORE_SMTP=no # If yes, allows SMTP access from
the host IP connecting by IMAP.
[SIEVE]
PORT=2000 # Port to bind to.
[LDAP]
BASE_DN=dc=MYDOMAIN,dc=com
BIND_DN=cn=manager,cn=internal,dc=MYDOMAIN,dc=com
BIND_PW=TD1RyDtAfC
SCOPE=SubTree
PORT=389
HOSTNAME=localhost
USER_OBJECTCLASS=top,inetOrgPerson,kolabInetOrgPerson
#FORW_OBJECTCLASS=top,account,dbmailForwardingAddress
CN_STRING=uid
FIELD_PASSWD=userPassword
FIELD_UID=uid
#FIELD_NID=uid
#MIN_NID=10000
#MAX_NID=15000
#FIELD_CID=gidNumber
#MIN_CID=10000
#MAX_CID=15000
FIELD_MAIL=mail
FIELD_QUOTA=cyrus-userquota
#FIELD_FWDTARGET=mailForwardingAddress
[DELIVERY]
SIEVE=yes # Run Sieve scripts as messages are
delivered.
SUBADDRESS=yes # Use '[EMAIL PROTECTED]' format
to deliver to a mailbox.
SIEVE_VACATION=yes # Turn on/off the Sieve Vacation
extension (unsupported).
SIEVE_NOTIFY=no # Turn on/off the Sieve Notify
extension (unsupported).
AUTO_NOTIFY=no # Use the auto_notify table to send
email notifications.
AUTO_REPLY=no # Use the auto_reply table to send
away messages.
# end of configuration file
Kevin Baker
Mission Vi Inc.
[EMAIL PROTECTED]
858.454.5532
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com