qmail-remote crashes(info from qmail-send logs)

2001-05-31 Thread kamesh jayachandran

hai,
Thanks all for ur previous replies.
qmail-remote is working fine when invoked separately.But it 
crashes(according to log entries in the 
/var/log/qmail/qmail-send/current).mail also not reaches the destination.
I can see all the mails(that I sent) in the queue using
/var/qmail/bin/qmail-qread.
But it delivers the mails if it finds the smtproutes entry for the
destination domain.

I am hereby pasting the qmail log entries and qmail-showctl output,

@40003b16770202500c74 new msg 12689
@40003b167702025027cc info msg 12689: bytes 603 from root@localhost qp 15947 uid 
511
@40003b167702053bab14 starting delivery 64: msg 12689 to remote 
[EMAIL PROTECTED]
@40003b167702053bca54 status: local 0/10 remote 1/20
@40003b1677021b6a3a04 delivery 64: deferral: qmail-remote_crashed./
@40003b1677021b6a5944 status: local 0/10 remote 0/20

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 500.
subdirectory split: 23.
user ids: 510, 511, 512, 0, 513, 514, 515, 516.
group ids: 510, 511.
me: My name is kameshj
ldapserver: My ldap server is 127.0.0.1


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

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

bouncehost: (Default.) Bounce host name is kameshj.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: SMTP DATA limit is 5000 bytes.

defaultdomain: Default domain name is kameshj.

defaulthost: (Default.) Default host name is kameshj.

doublebouncehost: (Default.) 2B recipient host: kameshj.

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

envnoathost: (Default.) Presumed domain name is kameshj.

helohost: (Default.) SMTP client HELO host name is kameshj.

idhost: (Default.) Message-ID host name is kameshj.

localiphost: (Default.) Local IP address becomes kameshj.

locals: 
Messages for kameshj are delivered locally.
Messages for localhost are delivered locally.
Messages for localhost.localdomain are delivered locally.

me: My name is kameshj.

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

plusdomain: Plus domain name is kameshj.

qmqpservers: (Default.) No QMQP servers.

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

rcpthosts: 
SMTP clients may send messages to recipients at kameshj.
SMTP clients may send messages to recipients at kameshjpp.com.
SMTP clients may send messages to recipients at localhost.
SMTP clients may send messages to recipients at planetasia.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: SMTP greeting: 220 Hai from kameshj.Hello how are u?.

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: 
Virtual domain: kameshjpp.com:kameshjpp.com

now the qmail-ldap specific files

ldapserver: My LDAP Server is 127.0.0.1.

ldapbasedn: LDAP basedn: dc=kameshj,dc=com.

ldaplogin: (Default.) LDAP login: NULL.

ldappassword: (Default.) LDAP password: NULL.

ldapuid: Default UID is: 529.

ldapgid: Default GID is: 530.

ldapmessagestore: Prefix for non absolute paths: /var/qmail/maildirs.

ldapdefaultdotmode: (Default.) Default dot mode for ldap users: not defined.

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

dirmaker: (Default.) Location of program to create homedirs: not defined.

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

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

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

quotawarning: (Default.) No quotawarning.

custombouncetext: (Default.) No custombouncetext.

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

tarpitcount: 5 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.

supervise: I have no idea what this file does.
rcpthosts.lock: I have no idea what this file does.
virtualdomains.lock: I have no idea what this file does.
locals.lock: I have no idea what this file does.
defaultdelivery: I have no idea what this file does.
ldapobjectclass: I have no idea what this file does.

waiting for your reply
kamesh jayachandran 
-- 
Existence of programs that do the impossible is
 not a proof that that impossible is now possible.
- Tigran Aivazian





Re: Re: Re: smtp times out

2001-05-30 Thread kamesh jayachandran

Hai,
172.16.69.7 is the internal dns server.
$/var/qmail/bin/qmail-remote anysmtpservername senderaddress
reciveraddress 
works fine.
But when I try to send mail from my pine.It just puts the mail in the
queue.I can see 2 mails in the queue to mailandnews.com.The same mail
reaches the recipient([EMAIL PROTECTED]) if I use qmail-remote
directly.So I don't think there is any blocking in the firewall.
with regards
kamesh jayachandran
 On Wed, 30 May 2001, Santosh Pasi wrote:

 Hi,
 
 
 ---Original Message--
 Date: Wed, 30 May 2001 11:57:55 -0400 (EDT)
 From: kamesh jayachandran [EMAIL PROTECTED]
 To: Santosh Pasi [EMAIL PROTECTED]
 Subject: Re: Re: smtp times out
 In-Reply-To: [EMAIL PROTECTED]
 
 Hai,
 Thanks again.
 my resolv.conf file is,
 
 nameserver 172.16.69.7   //local ip
 nameserver 202.54.1.30
 nameserver 164.164.4.5
 nameserver 164.164.128.16
 
 Is 172.16.69.7 is your local dns server?
 more over there are four entries for nameserver, which is wrong 
 according to RFCs.  
 so for time being and testing, just remove first entry and try ... 
 sending mail to say yahoo, hotmail, rediff.
 If it goes, then try sending mails to your internal network, if it gives 
 error this time, then make second nameserver as 172.16.69.7 (again if it is 
 your dns server)
 before that try to ping to 202.54.1.30?
 
 As you are behind firewall, make sure in firewall server or routers, to 
 enable support for smtp and related protocols.
 
 
 
 
 $echo hai|/var/qmail/bin/qmail-remote smtp.mail.yahoo.com kameshj
 [EMAIL PROTECTED]
 It works by giving out the message that not able to resolve the sender
 domain(since my machine is behind the firewall,I am just playing with
 qmail so that I can install it at production machines).
 
 $echo hai|/var/qmail/bin/qmail-remote ductape.net kameshj
 [EMAIL PROTECTED] 
 just returns(meaning that it is not successful).
 samething happens for other domains like shellyeah.org,etc.
 will the order of nameserver entries in /etc/resolv.conf affect the
 lookup?
 
 Yes, it matters, it looks first nameserver .. if it does't resolve or 
 find records in two sec, it goes to next namserver( afaik and rfc says)
 
 Santosh Pasi
 
 with regards
 kamesh jayachandran
  -- 
 Talk is cheap. Show me the code.
  - Linus Torvalds
 
 
 

-- 
Talk is cheap. Show me the code.
- Linus Torvalds




Re: Re: Re: Re: Re: smtp times out

2001-05-30 Thread kamesh jayachandran

Ok I can do that,but why the injection of mail thro the port number 25
also just puts the mail in queue without delivering?
But I think I need to apply qmail-dns patch.
with regards
kamesh jayachandran
On Wed, 30 May 2001, Santosh Pasi wrote:

 Hi,
 once again try
 
 mv /usr/lib/sendmail /usr/lib/sendmail.old# ignore errors
 mv /usr/sbin/sendmail /usr/sbin/sendmail.old  # ignore errors
 ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
 ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
 
 remove ~/.pinerc
 even try sending mails using mutt, and other programs
 
 Regards,
 Santosh Pasi
 
 ---Original Message--
 Date: Wed, 30 May 2001 13:46:43 -0400 (EDT)
 From: kamesh jayachandran [EMAIL PROTECTED]
 To: Santosh Pasi [EMAIL PROTECTED]
 Subject: Re: Re: Re: Re: smtp times out
 In-Reply-To: [EMAIL PROTECTED]
 
 Hai,
 There is no problem with pine i hope.It was working earlier well.Now I 
 amusing /var/qmail/bin/qmail-qread to see the mail delivery status.It 
 showsthe messages I injected using pine as well as i injected by telnetting 
 toport 25.If I use the smtproutes file to point the ipaddress of the 
 domainsit is working.
 Shall I have to apply qmail-DNS Patch?
 with regards
 kamesh jayachandran
 On Wed, 30 May 2001, Santosh Pasi wrote:
 
  Hi,
  
  I think its problem of  pine 
  
  how did you check that mail is in queue? mailq ...
  
  make sure this links are created .. as few mail program looks for 
  sendmail
  
  mv /usr/lib/sendmail /usr/lib/sendmail.old# ignore errors
  mv /usr/sbin/sendmail /usr/sbin/sendmail.old  # ignore errors
  ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
  ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
  
  and try 
  
  If still problem ... in user's home directory you will find .pinerc  
 ..  rename or delete this file and try 
  Even pine doesn't support maildir format ... there is patch for pine 
 to  support qmail 
  regards
  Santosh Pasi
  
  
  ---Original Message--
  Date: Wed, 30 May 2001 12:49:44 -0400 (EDT)
  From: kamesh jayachandran [EMAIL PROTECTED]
  To: Santosh Pasi [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Re: Re: Re: smtp times out
  In-Reply-To: [EMAIL PROTECTED]
  
  Hai,
  172.16.69.7 is the internal dns server.
  $/var/qmail/bin/qmail-remote anysmtpservername senderaddress
  reciveraddress 
  works fine.
  But when I try to send mail from my pine.It just puts the mail in the
  queue.I can see 2 mails in the queue to mailandnews.com.The same mail
  reaches the recipient([EMAIL PROTECTED]) if I use qmail-remote
  directly.So I don't think there is any blocking in the firewall.
  with regards
  kamesh jayachandran
   On Wed, 30 May 2001, Santosh Pasi wrote:
  
   Hi,
   
   
   ---Original Message--
   Date: Wed, 30 May 2001 11:57:55 -0400 (EDT)
   From: kamesh jayachandran [EMAIL PROTECTED]
   To: Santosh Pasi [EMAIL PROTECTED]
   Subject: Re: Re: smtp times out
   In-Reply-To: [EMAIL PROTECTED]
   
   Hai,
   Thanks again.
   my resolv.conf file is,
   
   nameserver 172.16.69.7   //local ip
   nameserver 202.54.1.30
   nameserver 164.164.4.5
   nameserver 164.164.128.16
   
   Is 172.16.69.7 is your local dns server?
   more over there are four entries for nameserver, which is wrong 
   according to RFCs.  
   so for time being and testing, just remove first entry and try ... 
   sending mail to say yahoo, hotmail, rediff.
   If it goes, then try sending mails to your internal network, if it 
  gives  error this time, then make second nameserver as 172.16.69.7 
 (again if  it is  your dns server)
   before that try to ping to 202.54.1.30?
   
   As you are behind firewall, make sure in firewall server or 
 routers,  to  enable support for smtp and related protocols.
   
   
   
   
   $echo hai|/var/qmail/bin/qmail-remote smtp.mail.yahoo.com 
 kameshj  [EMAIL PROTECTED]
   It works by giving out the message that not able to resolve the 
  sender domain(since my machine is behind the firewall,I am just 
 playing  with qmail so that I can install it at production machines).
   
   $echo hai|/var/qmail/bin/qmail-remote ductape.net kameshj
   [EMAIL PROTECTED] 
   just returns(meaning that it is not successful).
   samething happens for other domains like shellyeah.org,etc.
   will the order of nameserver entries in /etc/resolv.conf affect 
 the  lookup?
   
   Yes, it matters, it looks first nameserver .. if it does't resolve 
 or   find records in two sec, it goes to next namserver( afaik and rfc 
  says) 
   Santosh Pasi
   
   with regards
   kamesh jayachandran
-- 
   Talk is cheap. Show me the code.
  - Linus Torvalds
   
   
   
  
  -- 
  Talk is cheap. Show me the code.
- Linus Torvalds
  
  
  
  
  
  
  Santosh Pasi
  India
  ==
  
 
 -- 
 I'm a bastard, and proud of it !
  - Linus

smtp times out

2001-05-29 Thread kamesh jayachandran

sorry to repost.But one more diagnostic info which may help in debugging.
/var/log/qmail/qmail-smtpd/current
@40003b140df82d18847c tcpserver: status: 1/40
@40003b140df82d1aab44 tcpserver: pid 5381 from 127.0.0.1
@40003b140df82d3d2764 tcpserver: ok 5381 localhost:127.0.0.1:25 :127.0.0.1::1115
@40003b140df82d486e1c /var/qmail/bin/qmail-smtpd: error in loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
@40003b140df82d610ecc tcpserver: end 5381 status 32512
@40003b140df82d618bcc tcpserver: status: 0/40
Waiting for your reply
kamesh jayachandran
-- 
Linux doesn't support any sub-32-bit computers, and despite the occasional
 deranged people interested in retro-computing (ie Alan Cox) I doubt it
 seriously will..
- Linus Torvalds




smtpd times out

2001-05-28 Thread kamesh jayachandran

Hai,
Everything was working fine before applying qmail-ldap-1.03-20010501.patch
to qmail-1.03 and building.Now after applying the patch,rebuilding,stopping 
qmail and restarting,the telnetting to port 25 timesout immedeately.
The qmail-showctl shows like this,
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 500.
subdirectory split: 23.
user ids: 510, 511, 512, 0, 513, 514, 515, 516.
group ids: 510, 511.
me: My name is kameshj
ldapserver: My ldap server is 


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

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

bouncehost: (Default.) Bounce host name is kameshj.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: SMTP DATA limit is 5000 bytes.

defaultdomain: Default domain name is kameshj.

defaulthost: (Default.) Default host name is kameshj.

doublebouncehost: (Default.) 2B recipient host: kameshj.

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

envnoathost: (Default.) Presumed domain name is kameshj.

helohost: (Default.) SMTP client HELO host name is kameshj.

idhost: (Default.) Message-ID host name is kameshj.

localiphost: (Default.) Local IP address becomes kameshj.

locals: 
Messages for kameshj are delivered locally.
Messages for localhost are delivered locally.
Messages for localhost.localdomain are delivered locally.

me: My name is kameshj.

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

plusdomain: Plus domain name is kameshj.

qmqpservers: (Default.) No QMQP servers.

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

rcpthosts: 
SMTP clients may send messages to recipients at kameshj.
SMTP clients may send messages to recipients at kameshjpp.com.
SMTP clients may send messages to recipients at localhost.
SMTP clients may send messages to recipients at planetasia.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: SMTP greeting: 220 Hai from kameshj.Hello how are u?.

smtproutes: 
SMTP route: localhost:127.0.0.1
SMTP route: seed:172.16.69.156
SMTP route: kameshjpp.com:127.0.0.1
SMTP route: planetasia.com:172.16.68.5
SMTP route: mailandnews.com:199.29.68.111

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: 
Virtual domain: kameshjpp.com:kameshjpp.com

now the qmail-ldap specific files

ldapserver: (Default.) My LDAP Server is undefined! Uh-oh.

ldapbasedn: (Default.) LDAP basedn: NULL.

ldaplogin: (Default.) LDAP login: NULL.

ldappassword: (Default.) LDAP password: NULL.

ldapuid: Default UID is: 529.

ldapgid: Default GID is: 530.

ldapmessagestore: Prefix for non absolute paths: /var/qmail/maildirs.

ldapdefaultdotmode: (Default.) Default dot mode for ldap users: not defined.

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

dirmaker: (Default.) Location of program to create homedirs: not defined.

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).

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.

supervise: I have no idea what this file does.
rcpthosts.lock: I have no idea what this file does.
virtualdomains.lock: I have no idea what this file does.
locals.lock: I have no idea what this file does.
defaultdelivery: I have no idea what this file does.

with regards
kamesh jayachandran




qmail-remote not working

2001-05-23 Thread kamesh jayachandran

Hai,
when I try to send mail to someone outside using mail -s
hai [EMAIL PROTECTED] it is not reaching the person
[EMAIL PROTECTED] local delivery works fine.
/var/log/qmail/qmail-send/current looks like this,

-
@40003b0c1c80090fc16c new msg 12640
@40003b0c1c80090fe0ac info msg 12640: bytes 246 from [EMAIL PROTECTED] qp 
12831 uid 0
@40003b0c1c80092d829c starting delivery 17: msg 12640 to remote 
[EMAIL PROTECTED]
@40003b0c1c80092d9a0c status: local 0/10 remote 1/20
@40003b0c1c8009714a2c delivery 17: failure: Unable_to_run_qmail-remote./
@40003b0c1c800971696c status: local 0/10 remote 0/20
@40003b0c1c8009a80db4 bounce msg 12640 qp 12833
@40003b0c1c8009a93e64 end msg 12640
@40003b0c1c8009aca194 new msg 12641
@40003b0c1c8009ad8424 info msg 12641: bytes 758 from  qp 12833 uid 516
@40003b0c1c8009cadbdc starting delivery 18: msg 12641 to remote 
[EMAIL PROTECTED]
@40003b0c1c8009cb8ba4 status: local 0/10 remote 1/20
@40003b0c1c800a0b6f1c delivery 18: failure: Unable_to_run_qmail-remote./
@40003b0c1c800a0e70a4 status: local 0/10 remote 0/20
@40003b0c1c800a5a8d04 bounce msg 12641 qp 12835
@40003b0c1c800a5bae14 end msg 12641
@40003b0c1c800a5f2c9c new msg 12640
@40003b0c1c800a60269c info msg 12640: bytes 1177 from #@[] qp 12835 uid 516
@40003b0c1c800a7d2094 starting delivery 19: msg 12640 to local postmaster@kameshj
@40003b0c1c800a7dd05c status: local 1/10 remote 0/20
@40003b0c1c800ad8c19c delivery 19: success: did_1+0+0/
@40003b0c1c800ada86bc status: local 0/10 remote 0/20
@40003b0c1c800adc0974 end msg 12640

Similarly if i invoke the qmail-remote from the shell then I am getting no
response.
$echohai/var/qmail/bin/qmail-remote myrealbox.com kameshj kameshj
returns nothing.
can anyone help me in solving this problem
with regards
kamesh jayachandran
-- 
You are welcome to your opinion. I've got this great bridge to sell you too.
- Alan Cox to someone recommending the NVidia drivers






/var/spool/mail/user getting deleted

2001-04-28 Thread kamesh jayachandran

Hai ,
I previously had sendmail that was with stock install of RHL6.2.
Now I removed that.And installed the qmail.
I have gone through the INSTALL.mbox for how to transfer mails from /var/spool/mail to 
~Mailbox.
I have done the following things
1)moved each file from /var/spool/mail to respective home directories.
2)given a symbollic link to ~user/Mailbox from /var/spool/mail/user as a root
3)chmod 1777 /var/spool/mail
4)Now the problem is when one user sends mail to other user he recieves the mail but 
it has no content.And the symbollic link in the /var/spool/mail/user changes to 
Bogus.user.Cnq something like this.
It happens when the reciever invokes his mail program to read mail.
waiting for your reply
kamesh jayachandran


-- 
So what is The Big Difference(tm) that make file streams
 so much better than directories and so much different?

 I'll talk really slowly.
- Linus Torvalds