Hello,
I use dbmail 2.1.6 with postgresql.
I set up the LDAP auth like the discription in the dbmail WiKi.
Yesterday I switched to authentication over LDAP, to use the Passwords
of my W2k Active Directory. But it seems so as there is a timeout after
15 Minutes, i became this errors:
---------------snip------------------------------
Jun 22 07:16:36 intranet-ng dbmail/imap4d[5321]:
dbmail-imapsession.c,dbmail_imap_session_readln: error reading from
client Jun 22 07:16:36 intranet-ng dbmail/imap4d[5321]:
imap4.c,IMAPClientHandler: error reading command -- bailing out Jun 22
07:17:09 intranet-ng dbmail/imap4d[5349]:
dbmail-imapsession.c,dbmail_imap_session_readln: error reading from
client Jun 22 07:17:09 intranet-ng dbmail/imap4d[5349]:
imap4.c,IMAPClientHandler: error reading command -- bailing out Jun 22
07:20:10 intranet-ng dbmail/lmtpd[4895]:
authldap.c,__auth_get_every_match: query failed: Can't contact LDAP server
---------------snip------------------------------
It looks like it happens every 15 Minutes.
When this error occours, no client can get his mail, also no Mails from
Postfix are send to dbmail. After restarting dbmail and do a Postfix
flush it works for 15 Minutes. I dont no how to do the search. On W2K
Server I see no error, and i can connect with a ldap Browser without
problems. Can everybody give me a hint?
Thanks in Advance,
Jochen
Here ist my Config:
---------------snip------------------------------
# $Id: dbmail.conf 2107 2006-05-07 07:12:51Z aaron $
# (c) 2000-2006 IC&S, The Netherlands
#
# Configuration file for DBMAIL
[DBMAIL]
# Database settings
driver=pgsql # Supported drivers are mysql, pgsql, sqlite.
authdriver=ldap # Supported drivers are sql, ldap.
host=localhost
# 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= # When using a local socket connection to the
database, fill
# in the path to the socket here (e.g.
/var/run/mysql.sock).
user=user
pass=pass
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=2 # Trace level to send to syslog. Default is 2
(messages, 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=10 # Default number of child processes to start.
MAXCHILDREN=20 # Maximum number of child processes allowed.
MINSPARECHILDREN=4 # Unused children to always have availale.
MAXSPARECHILDREN=8 # 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.
log=/var/log/dbmail.log # logfile for stdout messages
error_log=/var/log/dbmail.err # logfile for stderr messages
pid_dir=/var/run # directory for storing PID files
[SMTP]
# In fact, there isn't anything here by default.
[LMTP]
PORT=24 # Port to bind to.
MAXCHILDREN=200 # mac. number of LMTP handlers
MAXCONNECTS=10000 # the maximum number of connections a
default childs makes
TIMEOUT=300 # the time (s) before the dbmail-lmtpd
should shutdown a connection which is being idle.
RESOLVE_IP=yes # if yes, the lmtp daemon resolves IP
numbers to DNS names in the log
MINSPARECHILDREN=2
MAXSPARECHILDREN=10
MAX_ERRORS=500
TRACE_LEVEL=1
[POP]
BINDIP=* # the ipaddress the dbmail-pop3d server has to bind to, *
for all addresses
PORT=110 # the port number the dbmail-pop3d server has
to bind to.
NCHILDREN=10 # default number of POP3 handlers (each is a
process)
MAXCHILDREN=200 # mac. number of POP3 handlers
MAXCONNECTS=10000 # the maximum number of connections a default
childs makes
TIMEOUT=300 # the time (s) before the dbmail-pop3d should shutdown a
connection which is being idle.
RESOLVE_IP=yes # if yes, the pop daemon resolves IP
numbers to DNS names in the log
POP_BEFORE_SMTP=no
MINSPARECHILDREN=10
MAXSPARECHILDREN=20
[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.
NCHILDREN=50
MAXCHILDREN=100
MAXCONNECTS=10000 # the maximum number of connections a default
childs makes
TIMEOUT=4000 # the time (s) before the dbmail-imapd should shutdown
a connection which is being idle.
MINSPARECHILDREN=10
MAXSPARECHILDREN=20
[SIEVE]
PORT=2000 # Port to bind to.
[LDAP]
PORT=389
VERSION=3
HOSTNAME=10.30.1.5
# DN
BASE_DN=CN=Users,DC=mycompany,DC=local
BIND_DN=CN=ldapuser,CN=Users,DC=mycompany,DC=local
BIND_PW=pass
SCOPE=SubTree
USER_OBJECTCLASS=top,account,dbmailUser
FORW_OBJECTCLASS=top,account,dbmailForwardingAddress
CN_STRING=sAMAccountName
#CN_STRING=userPrincipalName
FIELD_PASSWD=userPassword
FIELD_UID=sAMAccountName
#FIELD_UID=userPrincipalName
FIELD_NID=uSNCreated
MIN_NID=10000
MAX_NID=15000
FIELD_CID=gidNumber
MIN_CID=10000
MAX_CID=15000
FIELD_MAIL=mail
FIELD_QUOTA=mailQuota
#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=no # Turn on/off the Sieve Vacation extension
(always on, option ignored).
SIEVE_NOTIFY=no # Turn on/off the Sieve Notify extension (always
on, option ignored).
AUTO_NOTIFY=no # Use the auto_notify table to send email
notifications.
AUTO_REPLY=no # Use the auto_reply table to send away messages.
#AUTO_NOTIFY_SUBJECT # Defaults to "NEW MAIL NOTIFICATION"
#AUTO_NOTIFY_SENDER # Defaults to POSTMASTER from the DBMAIL section.
# end of configuration file