hi,

What happens if you set LOGLEVEL=`expr 2 + 8 + 32 + 128` and then
run 'qmail-show' and 'qmail-ldaplookup -m <mailaddress>'? You might
also want to start qmail with that environment variable and check
your log files when a mail comes through.


  LOGLEVEL=1      -> Errors
  LOGLEVEL=2      -> Warnings
  LOGLEVEL=4      -> Info
  LOGLEVEL=8      -> Info^2

qmail-showctl gives the following result:

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 500.
subdirectory split: 23.
user ids: 1007, 1008, 1009, 0, 1010, 1011, 1012, 1013.
group ids: 1007, 1008.

badmailfrom: (Default.) Any MAIL FROM is allowed.
badmailfrom-unknown: (Default.) Any MAIL FROM from hosts without PTR is allowed.
badrcptto: (Default.) Any RCPT TO is allowed.
bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.
bouncehost: (Default.) Bounce host name is docs.mydomain.com.
bouncemaxbytes: (Default.) Bounce data limit is 0 bytes.
concurrencylocal: (Default.) Local concurrency is 10.
concurrencyremote: (Default.) Remote concurrency is 20.
custombouncetext: (Default.) No custombouncetext.
databytes: (Default.) SMTP DATA limit is 0 bytes.
defaultdomain: (Default.) Default domain name is docs.mydomain.com.
defaulthost: (Default.) Default host name is docs.mydomain.com.
dirmaker: Program to create homedirs /var/qmail/bin/dirmaker.sh.
doublebouncehost: (Default.) 2B recipient host: docs.mydomain.com.
doublebounceto: (Default.) 2B recipient user: postmaster.
envnoathost: (Default.) Presumed domain name is docs.mydomain.com.
goodmailaddr: (Default.) No good mail addresses.
helohost: (Default.) SMTP client HELO host name is docs.mydomain.com.
idhost: (Default.) Message-ID host name is docs.mydomain.com.
localiphost: (Default.) Local IP address becomes docs.mydomain.com.

locals:
Messages for docs.mydomain.com are delivered locally.
Messages for demo.mydomain.com are delivered locally.
Messages for demo1.mydomain.com are delivered locally.
Messages for demo2.mydomain.com are delivered locally.
Messages for demo3.mydomain.com are delivered locally.

me: My name is docs.mydomain.com.
outgoingip: (Default.) Bind qmail-remote to 0.0.0.0.
pbscachesize: (Default.) PBS cachesize is 1048576 bytes.
pbsenv: (Default.) No environment variables will be passed.
pbsip: (Default.) Bind PBS daemon to 0.0.0.0.
pbsport: (Default.) PBS deamon listens on port 2821.
pbssecret: (Default.) PBS shared secret is undefined! Uh-oh.
pbsservers: (Default.) No PBS servers.
pbstimeout: (Default.) PBS entries will be valid for 600 seconds.
percenthack: (Default.) The percent hack is not allowed.
plusdomain: (Default.) Plus domain name is docs.mydomain.com.
qmqpcip: (Default.) Bind qmail-qmqpc to 0.0.0.0.
qmqpservers: (Default.) No QMQP servers.
queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.
quotawarning: (Default.) No quotawarning.
rbllist: (Default.) No RBL listed.
rcpthosts:
SMTP clients may send messages to recipients at docs.mydomain.com.
SMTP clients may send messages to recipients at demo.mydomain.com.
SMTP clients may send messages to recipients at demo1.mydomain.com.
SMTP clients may send messages to recipients at demo2.mydomain.com.
SMTP clients may send messages to recipients at demo3.mydomain.com.

morercpthosts: (Default.) No effect.
morercpthosts.cdb: (Default.) No effect.
relaymailfrom: (Default.) Relaymailfrom not enabled.
smtpgreeting: (Default.) SMTP greeting: 220 docs.mydomain.com.
smtproutes: (Default.) No artificial SMTP routes.
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:
docs.mydomain.com
port_ldap: (Default.) LDAP Port: 389.
ldaplogin: LDAP login: uid=postmaster,dc=com.
ldappassword: LDAP password: mypassword.
ldapbasedn: LDAP basedn: dc=com.
ldapcontroldn: dn: ou=QmailLDAP,dc=com.
ldaptimeout: (Default.) LDAP server timeout is 30 seconds.
ldapuid: Default UID is 1014.
ldapgid: Default GID is 1009.
ldapobjectclass: (Default.) The objectclass to limit ldap filter is not defined.
ldapmessagestore: Prefix for non absolute paths is /var/vmail.
ldapdefaultdotmode: (Default.) Default dot mode for ldap users is ldaponly.
defaultquotasize: (Default.) Mailbox size quota is 0 bytes (0 is unlimited).
defaultquotacount: (Default.) Mailbox count quota is 0 messages (0 is
unlimited).
ldaplocaldelivery: (Default.) Local passwd lookup is 1 (1 = on, 0 = off).
ldaprebind: (Default.) Ldap rebinding is 0 (1 = on, 0 = off).
ldapcluster: (Default.) Clustering is 0 (1 = on, 0 = off).
ldapclusterhosts: (Default.) Messages for me are not redirected.
qmail-smtpd.rules: I have no idea what this file does.
qmail-qmqpd.rules: I have no idea what this file does.
qmail-pop3d.rules: I have no idea what this file does.
qmail-imapd.rules: I have no idea what this file does.
Makefile: I have no idea what this file does.
qmail-smtpd.cdb: I have no idea what this file does.
qmail-qmqpd.cdb: I have no idea what this file does.
qmail-pop3d.cdb: I have no idea what this file does.
qmail-imapd.cdb: I have no idea what this file does.

client telnet session without rcpthosts and locals in /var/qmail/control:

telnet docs 25
Trying 192.168.3.100...
Connected to docs.
Escape character is '^]'.
220 docs.mydomain.com ESMTP
helo nila.mydomain.com
250 docs.mydomain.com
mail from: [EMAIL PROTECTED]
250 ok
rcpt to: [EMAIL PROTECTED]
553 sorry, relaying denied from your location [192.168.3.69] (#5.7.1)

server log(qmail-smtpd) with rcpthosts and locals in place:

@4000000044bdd353214812ac tcpserver: status: 1/50
@4000000044bdd35321482e04 tcpserver: pid 30556 from 192.168.3.69
@4000000044bdd353343b642c tcpserver: ok 30556
docs.mydomain.com:192.168.3.100:25 :192.168.3.69::32965
@4000000044bdd37203727434 simscan: starting: work dir:
/var/qmail/simscan/1153291112.57656.30558
@4000000044bdd37618a2638c simscan: calling clamdscan
@4000000044bdd3761b2fd8b4 simscan: cdb looking up version clamav
@4000000044bdd3761b329004 simscan: normal clamdscan return code: 0
@4000000044bdd3761b353b9c simscan: calling spamc
@4000000044bdd3761b3602d4 simscan: calling /usr/bin/spamc  spamc
@4000000044bdd37629d7e424 simscan: cdb looking up version spam
@4000000044bdd37629d80364 simscan:[30556]:CLEAN
(1.60/5.00):4.6443s::192.168.3.69:[EMAIL PROTECTED]:[EMAIL PROTECTED]
@4000000044bdd37629d816ec simscan: done, execing qmail-queue
@4000000044bdd3763171ebbc simscan: qmail-queue exited 0

server log(qmail-send) with rcpthosts and locals in place:

@4000000044bdd376347c60e4 new msg 326286
@4000000044bdd376347c7c3c info msg 326286: bytes 619 from
<[EMAIL PROTECTED]> qp 30563 uid 1008
@4000000044bdd376347c8bdc starting delivery 1: msg 326286 to local
[EMAIL PROTECTED]
@4000000044bdd376347c9b7c status: local 1/10 remote 0/20
@4000000044bdd3763a4d9b14 delivery 1: success: did_1+0+0/
@4000000044bdd3763a4dbe3c status: local 0/10 remote 0/20
@4000000044bdd3763ac80ebc end msg 326286

If I place rcpthosts and remove locals, qmail-send will say ``Sorry I
could not find any host named demo1.mydomain.com''.

With the above observation, what I think is that the system does not
search ldap for the rcpthosts and locals domains. am I missing
something in the configuration part?

regards,

raja
--
+91 944 715 5548(Cell)

Reply via email to