On Thu, Apr 25, 2002 at 01:55:28AM +0000, Dan Melomedman wrote:
> Post your configs.

Here they are... (see more comments at the end)

------
hermes ~/tmp > qmail-showctl 
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 500.
subdirectory split: 23.
user ids: 81, 82, 83, 0, 84, 85, 86, 87.
group ids: 81, 82.
me: My name is hermes.galileo.edu
ldapserver: My ldap server is ldap.galileo.edu


badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: Bounce host name is galileo.edu.

concurrencylocal: Local concurrency is 120.

concurrencyremote: Remote concurrency is 120.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is galileo.edu.

defaulthost: Default host name is hermes.galileo.edu.

doublebouncehost: 2B recipient host: galileo.edu.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is hermes.galileo.edu.

helohost: (Default.) SMTP client HELO host name is hermes.galileo.edu.

idhost: (Default.) Message-ID host name is hermes.galileo.edu.

localiphost: (Default.) Local IP address becomes hermes.galileo.edu.

locals: 
Messages for galileo.edu are delivered locally.
Messages for hermes.galileo.edu are delivered locally.
Messages for home.galileo.edu are delivered locally.
Messages for fisicc-ufm.edu are delivered locally.

me: My name is hermes.galileo.edu.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is galileo.edu.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts: 
SMTP clients may send messages to recipients at galileo.edu.
SMTP clients may send messages to recipients at mail.galileo.edu.
SMTP clients may send messages to recipients at localhost.
SMTP clients may send messages to recipients at hermes.galileo.edu.
SMTP clients may send messages to recipients at home.galileo.edu.
SMTP clients may send messages to recipients at fisicc-ufm.edu.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 hermes.galileo.edu.

smtproutes: 

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains: (Default.) No virtual domains.

now the qmail-ldap specific files

ldapserver: My LDAP Server is ldap.galileo.edu.

ldapbasedn: LDAP basedn: ou=People, o=Universidad Galileo.

ldaplogin: LDAP login: XXXXXX

ldappassword: LDAP password: XXXXXX

ldapuid: Default UID is: 500.

ldapgid: Default GID is: 500.

ldapmessagestore: Prefix for non absolute paths: /home.

ldapdefaultdotmode: Default dot mode for ldap users: both.

ldapdefaultquota: (Default.) Default quota for ldap users: not defined.

dirmaker: Location of program to create homedirs: /var/qmail/bin/create_homedir.

ldaplocaldelivery: local passwd lookup is 0 (1 = on, 0 = off).

ldaprebind: ldap rebinding is 0 (1 = on, 0 = off).

ldapcluster: clustering is 0 (1 = on, 0 = off).

ldapclusterhosts: (Default.) No alternate MailHosts for clustering listed.

quotawarning: (Default.) No quotawarning.

custombouncetext: (Default.) No custombouncetext.

maxrcptcount: (Default.) 0 RCPT TOs are accepted before sending 553 (0 = off).

tarpitcount: (Default.) 0 RCPT TOs are accepted before tarpitting (0 = off).

tarpitdelay: (Default.) 5 seconds of delay to introduce after each subsequent RCPT TO.

badrcptto: (Default.) Any RCPT TO is allowed.

relaymailfrom: (Default.) Relaymailfrom not enabled.

rbllist: (Default.) No RBL listed.

concurrencyincoming: I have no idea what this file does.
ldapcontroldn: I have no idea what this file does.
defaultdelivery: I have no idea what this file does.

-----

I use concurrencyincomming when I start qmail-smtpd to limit the 
number of connections.

I use defaultdelivery in /var/qmail/rc as an argument to qmail-start
(taken from lifewithqmail/ldap)

I tried to get more info by adding my own debug messages. Since the last
log line I get for local deliveries that fail is 

delivery 329: log: LOGLEVEL_set_to_63/

I tried adding this to the spawn function in qmail-lspawn.c

   log(16, "obdebug: in spawn");

   sig_hangupdefault(); /* clear the hup sig handler for the child */

   log(16, "obdebug: done sighup");


Unfortunately the last obdebug log I see for either succesful or
unsuccesfule deliveries is

delivery 329: log: obdebug:_in_spawn

For instance, this is a successful delivery:

starting delivery 329: msg 3761672 to local [EMAIL PROTECTED]
status: local 22/120 remote 1/120
delivery 329: log: LOGLEVEL_set_to_63/
delivery 329: log: obdebug:_in_spawn
delivery 329: log: 
ldapfilter:_'(|([EMAIL PROTECTED])([EMAIL PROTECTED]))'/
delivery 329: log: 
found:_user='obonilla'_uid=1020_gid=444_homedir='/home/profesor/obonilla'_mms='(null_pointer)'_host='hermes.galileo.edu'_status=0/
delivery 329: log: LDAP_lookup_succeeded/
delivery 329: success: did_1+0+0/

this is an unsuccesful one:

starting delivery 3: msg 3761741 to local @hermes.galileo.edu
status: local 3/120 remote 0/120
delivery 3: log: LOGLEVEL_set_to_63/

there's no more info about delivery 3 in the logs. Also notice that
the email address is @hermes.galileo.edu.  I don't know where this
comes from... the message number 3761741 reads:

hermes ~/tmp # qmHandle -v3761741

 --------------
MESSAGE NUMBER 3761741 
 --------------
Received: (qmail 72269 invoked by uid 80); 20 Apr 2002 20:50:33 -0000
Received: from 192.168.2.95 ( [192.168.2.95])
        as user [EMAIL PROTECTED] by mail.galileo.edu with HTTP;
        Sat, 20 Apr 2002 14:50:33 -0600
Message-ID: <[EMAIL PROTECTED]>
Date: Sat, 20 Apr 2002 14:50:33 -0600
From: [EMAIL PROTECTED]
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: XXXXXXX
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.0 / FreeBSD-4.4
X-Originating-IP: 192.168.2.95

<BODY OF EMAIL DELETED>

Thanks for any help.

Regards,

-Oscar

-- 
pgp fingerprint: BC64 2E7A CAEF 39E1 9544  80CA F7D5 784D FB46 16C1

Reply via email to