LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2000, 02:19 AM   #1
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Rep: Reputation: 15

OK I'm nearly done with my webmail program but I've run into what I think is a snag. It all seems to be related to POP3Client and it not being completely compatible with my default pop server? First off I uncommented out the pop server from inetd.conf and restarted inetd. Next I got myself a copy of POP3Client from cpan.org and installed it no problem. When I ran the 'make test' on the POP3Client with POPTESTACCOUNT=bickford:secret:localhost I get the following:

Use of uninitialized value at blib/lib/Mail/POP3Client.pm line 510.
FAILED tests 2-5, 24
Failed 5/26 tests, 80.77% okay
Failed Test Status Wstat Total Fail Failed List of failed
------------------------------------------------------------
t/poptest.t 26 5 19.23% 2-5, 24
Failed 1/1 test scripts, 0.00% okay. 5/26 subtests failed, 80.77% okay.
make: *** [test_dynamic] Error 29

Basically you can see that only a certain percentage of the test passed. When I actually try and use my webmail client is stalls for about 10 seconds (just like the 'make test' did actually) then perl bitches:

[error] [client 127.0.0.1] Premature end of script headers: /home/httpd/cgi-bin/webmail.pl

Now I understand that the error perl is giving me may not be related to POP3Client, but I don't know for sure. If anything, does anyone know why make test for POP3Client wouldn't succeed 100%? Thanks!


P.S. Oh yea, when I run make test with POPTESTACCOUNT=bickford:secret:my.isps.mailserver it works no problem at all. I wonder what pop client my ISP is using that seems to be 100% compatible with POP3Client?

P.S.S. Argh, Ok I just did one last test w/ POP3Client against my ISP's mail server, but this time with an inentionally bad password and I got a similar result to what I was getting when I was running it against my own pop server, so it would seem as if it's an authentication problem? (isn't it always)
 
Old 08-18-2000, 06:48 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,647

Rep: Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397
Question

What POP3 server are you running?
 
Old 08-18-2000, 07:26 AM   #3
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Original Poster
Rep: Reputation: 15
For $100, what is ipop3d?
 
Old 08-18-2000, 07:35 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,647

Rep: Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397
OK so you uncommented out the pop server from inetd.conf and restarted inetd but is ipop3d installed, configured and running correctly? You are running Red Hat right? Unless you installed ipop3d it's probably not there. Try typing:
Code:
telnet localhost 110
and see if you get a response. BTW I have been using cucipop for awhile now and I really like it. If ipop3d is not installed I would just install cucipop.
 
Old 08-18-2000, 09:43 AM   #5
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Original Poster
Rep: Reputation: 15
OK well against your advice I installed ipopd because cucipop wouldn't compile. It would complain about not being able to locate the header file db.h in the directory db2/. I definitely don't have this file... So in any case I installed the IMAP RPM which includes ipopd. Now when I telnet localhost 110 I get the response "+OK POP3 resnet72-48.resnet.buffalo.edu v7.64 server ready", when I type in "USER bickford" it responds "+OK User name accepted, password please" but when I "PASS mypass" it responds "-ERR Bad login". I'm definitely typing in my correct password... perhaps it's a problem with PAM? (again).
 
Old 08-18-2000, 10:06 AM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,647

Rep: Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397
Could be. Do you have an imapd/ipopd entry in /etc/pam.d?
 
Old 08-18-2000, 11:27 AM   #7
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Original Poster
Rep: Reputation: 15
Well, I was hunting around in /etc/pam.d/ and I do have a file called pop with the following contents:

#%PAM-1.0
auth required /lib/security/pam_pwdb.so shadow nullok
account required /lib/security/pam_pwdb.so

I also have an imap file with the exact same contents.

Also, before my last post I noticed that in inetd.conf I had auth commented out. I made sure to uncomment that and restart inetd, so that should be all well and good, if it's even required.
 
Old 08-18-2000, 04:44 PM   #8
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,647

Rep: Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397
The auth you see in /etc/inetd is unrelated to the the auth in the pam files. The inetd auth is referring to the tcp service running on port 113. The more common name for this service nowadays is ident.
 
Old 08-18-2000, 09:35 PM   #9
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Original Poster
Rep: Reputation: 15
Ahh I see, thanks for the clarification. =) Any more thoughts on what could be causing my authentication probs? I've pretty much exhausted all my ideas.... it didn't take very long.
 
Old 08-19-2000, 12:33 AM   #10
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Original Poster
Rep: Reputation: 15
Unhappy argh

nevermind i figured it out, somehow all my users passwords were changed.... wish i'd noticed that earlier or i woulda saved myself at least a day of constant frusteration and hair pulling. Such is the life of a programmer i suppose......
 
Old 08-19-2000, 08:13 AM   #11
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,647

Rep: Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397Reputation: 3397
All your passwords were changed, but YOU didn't change them?
 
Old 03-12-2001, 05:10 PM   #12
Alpha
LQ Newbie
 
Registered: Mar 2001
Posts: 3

Rep: Reputation: 0
Unhappy POP3Client Newbie

I know newbies aren't very popular but, try to remember, you used to be a newbie too.

I am very much a newbie so please have patience.

Can someone give me an idiot proof walkthrough on how to install POP3Client on my RedHat server and test it to make sure it works?

Please assume I don't know anything.

Cause I don't :>



 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snd probs th3a7ch3m1st Linux - Newbie 0 06-22-2004 07:45 PM
2 probs in 9.1 WhiteChedda Mandriva 5 09-15-2003 05:19 AM
more cd probs Oklahoma Linux - Hardware 1 05-03-2002 03:46 AM
POP3Client Newbies Alpha Programming 1 03-18-2001 07:36 AM
POP3Client newbie Alpha Linux - Newbie 1 03-13-2001 08:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration