Message: Re: how to debug mail-incoming.pl? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to debug mail-incoming.pl? 

Forum: Hypernews Feedback/Problems
Date: 18 Oct, 2006
From: Terry Y Hung <Terry Y Hung>

Hi Tom,

   We are running HTTP here and the log is somewhat different from yours. 
Based on the log your are getting, the HTTPS posting from the mail-incoming.pl
failed right after [http-14] in http.pl. You can add some tracings to see
exactly where it aborts:

   OLD: print $debug_file ("In http::SSLpost: $host, $port, $request [http-14]
   OLD: ....
   NEW: print $debug_file ("  [http-14.1]\n") if $debug;
   OLD: ....
   NEW: print $debug_file ("  [http-14.2]\n") if $debug;
   OLD: ....

   Thanks!

-- 
Terry Hung - Stanford Linear Accelerator Center
phone: 650-926-3618
e-mail: terryh@slac.stanford.edu 
 
> Hi,
> 
> I still have the problem with incoming mail.
> 
> I have set a forum Test. The hndocs/Test directory is writable by user hn 
> (which is the user who runs HN).
> 
> I send e-mail to HN Test gateway. It is properly routed by aliases and 
> .procmailrc file to the test forum. The mail-incoming.pl script is invoked 
> with -f /Test option as it should. But the incoming mail is not posted to 
> test forum.
> 
> I have turned on the debug options as you suggested, but they give me no 
> clue. It seems everything is ok according to logs. So why the messages are 
> not posted to Test forum?
> 
> -- 
> Tomasz Wlodek                        | tel 631-344-7448
> Brookhaven Laboratory, Building 510M | fax 631-344-7616
> Upton NY 11973-5000                  |
> 
> The debug file:
> 
> 
> HN____________________________________________Wed Oct 18 15:12:22 2006
> @debug =  1 1 1 1 0 0 0 0  mail-incoming.pl [hnlib-4]
> [mailin-1] start mail debugging
> [mailin-2] Forum: 
> [mailin-4] MIME::Parser not found 
> [mailin-5] allowMIMEmail=1 AllowMIME=0 
> [mailin-6] header=From tomw@bnl.gov  Wed Oct 18 15:12:22 2006
> Return-Path: <tomw@bnl.gov>
> Received: from smtpgateway.bnl.gov (smtpgateway.sec.bnl.local [192.168.1.132])
>  	by hnews.usatlas.bnl.gov (8.13.1/8.13.1) with ESMTP id k9IJCMPo014170
>  	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:22 -0400
> Received: from rcf2.rhic.bnl.gov ([130.199.6.81])
>  	by smtpgw.bnl.gov with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
>  	(bnl.gov SMTP on gw3)
>  	serial 1GaGpt-0005lU-CX
>  	for HyperNews-Test@hnews.usatlas.bnl.gov; Wed, 18 Oct 2006 15:12:17 -0400
> Received: from rcf2.rhic.bnl.gov (localhost.localdomain [127.0.0.1])
>  	by rcf2.rhic.bnl.gov (8.13.1/8.13.1) with ESMTP id k9IJCHPL005666
>  	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:17 -0400
> Received: from localhost (tomw@localhost)
>  	by rcf2.rhic.bnl.gov (8.13.1/8.13.1/Submit) with ESMTP id k9IJCHA0005662
>  	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:17 -0400
> X-Authentication-Warning: rcf2.rhic.bnl.gov: tomw owned process doing -bs
> Date: Wed, 18 Oct 2006 15:12:17 -0400 (EDT)
> From: Tomasz Wlodek <tomw@bnl.gov>
> X-X-Sender: tomw@rcf2.rhic.bnl.gov
> To: HyperNews-Test@hnews.usatlas.bnl.gov
> Subject: test after DEBUG=1
> Message-ID: <Pine.LNX.4.64.0610181512080.11885@rcf2.rhic.bnl.gov>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
> X-BNL-MailScanner-Information: Please contact the ITD Service Desk for more information
> X-BNL-MailScanner: Found to be clean
> X-BNL-MailScanner-SpamCheck: not spam (whitelisted),
>  	SpamAssassin (score=-3.6, required 5, autolearn=not spam,
>  	BAYES_00 -3.60)
> X-BNL-MailScanner-From: tomw@bnl.gov
> X-Spam-Status: No
> 
> [mailin-6.1] spam_keyword1='Keywords:' spam_keyword2='CERN SpamKiller Note:' threshold=0
> [mailin-77.1] forum= spam_forums=
> [mailin-77.4] turn on spam filter for 
> [mailin-78] spam_rating= threshold=0 compare=0
> [mailin-78.1] spam_rating: no spam rating in the headers. Bypass spam filter.
> [mailin-7] x-hn-loop is 
> [mailin-28.1] from=Tomasz Wlodek <tomw@bnl.gov> 
> [mailin-29] address=tomw@bnl.gov from=Tomasz Wlodek
> 
> [memlib-11] (isMember) checking if 'tomw@bnl.gov' is member
> 
> [memlib-11.2] (isMember) 'tomw@bnl.gov' is old member 
> [mailin-8] fromAddress = tomw@bnl.gov 
> [mailin-9] userName = Tomasz Wlodek 
> [mailin-37] body= 
> [mailin-26] The following is the message...
> 
> 
> -- 
> Tomasz Wlodek                        | tel 631-344-7448
> Brookhaven Laboratory, Building 510M | fax 631-344-7616
> Upton NY 11973-5000                  |
> 
> [mailin-14] MsgBody=
> 
> -- 
> Tomasz Wlodek                        | tel 631-344-7448
> Brookhaven Laboratory, Building 510M | fax 631-344-7616
> Upton NY 11973-5000                  |
> 
> 
> [mailin-14.1] MsgBody:
> 
> -- 
> Tomasz Wlodek                        | tel 631-344-7448
> Brookhaven Laboratory, Building 510M | fax 631-344-7616
> Upton NY 11973-5000                  |
> 
> 
> [mailin-15] Attempting to find additional headers in body 
> [mailin-17] MsgBody=
> -- 
> Tomasz Wlodek                        | tel 631-344-7448
> Brookhaven Laboratory, Building 510M | fax 631-344-7616
> Upton NY 11973-5000                  |
> 
> 
> 
> [mailin-22] Header String: 
> >From tomw@bnl.gov  Wed Oct 18 15:12:22 2006
> Return-Path: <tomw@bnl.gov>
> Received: from smtpgateway.bnl.gov (smtpgateway.sec.bnl.local [192.168.1.132])
>  	by hnews.usatlas.bnl.gov (8.13.1/8.13.1) with ESMTP id k9IJCMPo014170
>  	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:22 -0400
> Received: from rcf2.rhic.bnl.gov ([130.199.6.81])
>  	by smtpgw.bnl.gov with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
>  	(bnl.gov SMTP on gw3)
>  	serial 1GaGpt-0005lU-CX
>  	for HyperNews-Test@hnews.usatlas.bnl.gov; Wed, 18 Oct 2006 15:12:17 -0400
> Received: from rcf2.rhic.bnl.gov (localhost.localdomain [127.0.0.1])
>  	by rcf2.rhic.bnl.gov (8.13.1/8.13.1) with ESMTP id k9IJCHPL005666
>  	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:17 -0400
> Received: from localhost (tomw@localhost)
>  	by rcf2.rhic.bnl.gov (8.13.1/8.13.1/Submit) with ESMTP id k9IJCHA0005662
>  	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:17 -0400
> X-Authentication-Warning: rcf2.rhic.bnl.gov: tomw owned process doing -bs
> Date: Wed, 18 Oct 2006 15:12:17 -0400 (EDT)
> From: Tomasz Wlodek <tomw@bnl.gov>
> X-X-Sender: tomw@rcf2.rhic.bnl.gov
> To: HyperNews-Test@hnews.usatlas.bnl.gov
> Subject: test after DEBUG=1
> Message-ID: <Pine.LNX.4.64.0610181512080.11885@rcf2.rhic.bnl.gov>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
> X-BNL-MailScanner-Information: Please contact the ITD Service Desk for more information
> X-BNL-MailScanner: Found to be clean
> X-BNL-MailScanner-SpamCheck: not spam (whitelisted),
>  	SpamAssassin (score=-3.6, required 5, autolearn=not spam,
>  	BAYES_00 -3.60)
> X-BNL-MailScanner-From: tomw@bnl.gov
> X-Spam-Status: No
> 
> [mailin-23] Header Fields... 
> return-path: '<tomw@bnl.gov>'
> x-bnl-mailscanner-spamcheck: 'not spam (whitelisted),	SpamAssassin (score=-3.6, required 5, autolearn=not spam, 	BAYES_00 -3.60) '
> x-x-sender: 'tomw@rcf2.rhic.bnl.gov'
> subject: 'test after DEBUG=1'
> date: 'Wed, 18 Oct 2006 15:12:17 -0400 (EDT)'
> x-bnl-mailscanner-information: 'Please contact the ITD Service Desk for more information'
> x-bnl-mailscanner-from: 'tomw@bnl.gov'
> from : 'tomw@bnl.gov  Wed Oct 18 15:12:22 2006'
> content-type: 'TEXT/PLAIN; charset=US-ASCII; format=flowed'
> to: 'HyperNews-Test@hnews.usatlas.bnl.gov'
> mime-version: '1.0'
> from: 'Tomasz Wlodek <tomw@bnl.gov>'
> x-bnl-mailscanner: 'Found to be clean'
> x-spam-status: 'No'
> received: 'from smtpgateway.bnl.gov (smtpgateway.sec.bnl.local [192.168.1.132])	by hnews.usatlas.bnl.gov (8.13.1/8.13.1) with ESMTP id k9IJCMPo014170 	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:22 -0400  from rcf2.rhic.bnl.gov ([130.199.6.81])	by smtpgw.bnl.gov with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) 	(bnl.gov SMTP on gw3) 	serial 1GaGpt-0005lU-CX 	for HyperNews-Test@hnews.usatlas.bnl.gov; Wed, 18 Oct 2006 15:12:17 -0400  from rcf2.rhic.bnl.gov (localhost.localdomain [127.0.0.1])	by rcf2.rhic.bnl.gov (8.13.1/8.13.1) with ESMTP id k9IJCHPL005666 	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:17 -0400  from localhost (tomw@localhost)	by rcf2.rhic.bnl.gov (8.13.1/8.13.1/Submit) with ESMTP id k9IJCHA0005662 	for <HyperNews-Test@hnews.usatlas.bnl.gov>; Wed, 18 Oct 2006 15:12:17 -0400 '
> x-authentication-warning: 'rcf2.rhic.bnl.gov: tomw owned process doing -bs'
> message-id: '<Pine.LNX.4.64.0610181512080.11885@rcf2.rhic.bnl.gov>'
> [mailin-24] MsgBody:
> -- 
> Tomasz Wlodek                        | tel 631-344-7448
> Brookhaven Laboratory, Building 510M | fax 631-344-7616
> Upton NY 11973-5000                  |
> 
> [mailin-25] hnprefix is /HyperNews 
> [mailin-39] Got past IsBogusMail 
> [mailin-40] title1: 'test after DEBUG=1' 
> [mailin-41] title3: 'test%20after%20DEBUG%3d1' 
> [mailin-42] mid = <Pine.LNX.4.64.0610181512080.11885@rcf2.rhic.bnl.gov> 
> [mailin-43] userName: 'Tomasz Wlodek' 
> [mailin-44] addResponseURL = https://hnews.usatlas.bnl.gov/HyperNews/SECURED/add-response.pl 
> [mailin-45] http = https://hnews.usatlas.bnl.gov 
> [mailin-46] POSTing to hnews.usatlas.bnl.gov:443, /HyperNews/SECURED/add-response.pl [mailin-47] SERVER_NAME=hnews.usatlas.bnl.gov SERVER_PORT=443 
> In http::SSLpost: hnews.usatlas.bnl.gov, 443, /HyperNews/SECURED/add-response.pl  [http-14]
> 
> [memlib-12] (getMember) userid: 'HN-Admin'
> 
> [memlib-13.2] (getMember) found original ID HN-Admin in hnpeople
> 
> [urc-1] (parseURCFile) About to parse '/var/www/hnews/hndocs/hnpeople/HN-Admin' 
> 'SessionLength': 'default'<BR>  [urc-3]
> 'Status': 'registered'<BR>  [urc-3]
> 'OldEmail': ''<BR>  [urc-3]
> 'Subscribe': 'some'<BR>  [urc-3]
> 'UserID': 'HN-Admin'<BR>  [urc-3]
> 'Hide': 'Nothing'<BR>  [urc-3]
> 'Password': 'DGAG2sbuNylso'<BR>  [urc-3]
> 'Name': 'HyperNews admin 1'<BR>  [urc-3]
> 'Email': ''<BR>  [urc-3]
> 
> [memlib-13.4] (getMember) check alias of HN-Admin
> 
> [memlib-13.6] (getMember)  member exists, put it to cache
> [memlib-8] (put_member_in_cache) Caching member info for 'HN-Admin':
> 'Email' = ''
> 'Hide' = 'Nothing'
> 'Name' = 'HyperNews admin 1'
> 'OldEmail' = ''
> 'Password' = '*************'
> 'SessionLength' = 'default'
> 'Status' = 'registered'
> 'Subscribe' = 'some'
> 'UserID' = 'HN-Admin'
> 
> [memlib-10] (put_member_in_cache) Store new cache entry for 'HN-Admin'.
> 
> [memlib-12] (getMember) userid: 'HN-Admin'
> 
> [memlib-7] (get_member_from_cache) Found 'HN-Admin' in member cache. 
> ENV:
> 'DEFAULT' = '/var/mail/hn'
> 'HOME' = '/home/hn'
> 'HOST' = 'hnews.usatlas.bnl.gov'
> 'LASTFOLDER' = '/var/www/cgi-bin/HyperNews/.scripts/mail-incoming.pl -f /Test'
> 'LINEBUF' = '2048'
> 'LOCKEXT' = '.lock'
> 'LOGNAME' = 'hn'
> 'MAILDIR' = '/home/hn'
> 'MSGPREFIX' = 'msg.'
> 'ORACLE_HOME' = ''
> 'ORACLE_SID' = ''
> 'ORGMAIL' = '/var/mail/hn'
> 'PATH' = '/bin:/usr/bin'
> 'PROCMAIL_VERSION' = '3.22'
> 'SENDMAIL' = '/usr/sbin/sendmail'
> 'SENDMAILFLAGS' = '-oi'
> 'SERVER_NAME' = 'hnews.usatlas.bnl.gov'
> 'SERVER_PORT' = '443'
> 'SHELL' = '/bin/bash'
> 'SHELLFLAGS' = '-c'
> 'SHELLMETAS' = '&|<>~;?*['
> 

 Add Message Add Message
to: "Re: how to debug mail-incoming.pl?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ SLAC HyperNews Home | Search | Feedback ]