Qmail-LDAP
[Top] [All Lists]

Re: problem delivery local mail

To: Claudio Jeker <jeker@n-r-g.com>
Subject: Re: problem delivery local mail
From: Riccardo Cozzani <ric@cozzani.net>
Date: Wed, 13 Dec 2006 10:49:51 +0100
Cc: qmail-ldap@qmail-ldap.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <20061212173201.GJ10181@diehard.n-r-g.com>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <20061212182508.qfsfceld3zwc8go4@www.cozzani.net> <20061212173201.GJ10181@diehard.n-r-g.com>
User-agent: Internet Messaging Program (IMP) H3 (4.1.1)

I've a strange problem with my qmail-ldap installation. Whenever I
send a mail to a local user, either via qmail-inject or by SMTP, qmail
puts the messages in the queue, but don't delivery to the local users.
Sending an ALRM to qmail-send not work, but if I shut down qmail, with
svc -d, and the start up again, with svc -u, then the messages in the
queue are correctly delivered.

Not enough information to help. qmail-qstat output would help to see if
the mail is preprocessed or not. Perhaps there is a porblem with the
doorbell (/var/qmail/queue/lock/trigger). Also check the your time if you
are using NFS.

I'm not using NFS and both qmail and LDAP live on the same server. This is a CentOS 4.4 installation whith qmail-ldap-1.03-20060201.patch, openldap-2.2.13 and samba-3.0.23d. The user in the directory have their own uid and gid as they belong also to an Samba Domain, so I've compiled qmail-ldap with

#define LDAP_QMAILUID           "uidNumber"
#define LDAP_QMAILGID           "gidNumber"

So, now if I send a message to a local address:

# echo 'To: test@localdomain' | /var/qmail/bin/qmail-inject

nothing appears in any logfile, but qmail-qstat says:

# /var/qmail/bin/qmail-qstat
messages in queue: 1
messages in queue but not yet preprocessed: 1

localdomain appears either in locals and rcpthosts and the server where qmail runs on is the primary MX for localdomain.

An ALRM signal sent to qmail-send cause the following logfile line in smtpd/current:

@40000000457fe03016aec91c tcpserver: status: 0/40

Then, nothing appens until I stop and then start the supervised services:

# svc -d /service/* /service/*/log
# svc -u /service/* /service/*/log

==> /var/log/qmail/qmail/current <==
@40000000457fe0eb19673a2c status: qmail-todo stop processing asap
@40000000457fe0eb1967519c status: exiting
@40000000457fe0eb1aabbc64 status: local 0/10 remote 0/20
@40000000457fe0eb1b873014 new msg 9912360
@40000000457fe0eb1b8795a4 info msg 9912360: bytes 246 from <root@localdomain> qp 9255 uid 0 @40000000457fe0eb1b87f364 starting delivery 1: msg 9912360 to local test@localdomain
@40000000457fe0eb1b8835cc status: local 1/10 remote 0/20
@40000000457fe0eb1c3c8dc4 delivery 1: success: did_1+0+0/
@40000000457fe0eb1c3e0c94 status: local 0/10 remote 0/20
@40000000457fe0eb1c3f4514 end msg 9912360

At this point the mail is correcty delivered in the email Maildir. qmail-ldaplookup seams to works fine:

# qmail-ldaplookup -m test@localdomain
Searching ldap for: (&(objectClass=qmailUser)(|(mail=test@localdomain)(mailAlternateAddress=test@localdomain)))
under dn: ou=users,dc=localdomain
Found 1 entry:

dn: uid=test,ou=Users,dc=localdomain
-------------------------------------------------------
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: qmailUser
mail: test@localdomain
mailAlternateAddress: moretest@localdomain
uid: test
accountStatus: undefined -> active
mailHost: localhost
homeDirectory: /home/utenti/test
aliasEmpty: using default
qmailDotMode: ldaponly
uidNumber: 1007
gidNumber: 513
mailQuotaSize: 1073741824
mailQuotaCount: 50000
mailSizeMax: 0 (unlimited)
mailReplyText: undefined

I hope this could help you to help me :-)

Thanks,
Riccardo


<Prev in Thread] Current Thread [Next in Thread>