LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2001, 02:03 AM   #1
thep
Member
 
Registered: Apr 2001
Location: Bangkok, Thailand
Distribution: RH8(server)
Posts: 65

Rep: Reputation: 15
Unhappy


now i'm using redhat 7.0
and i 'd like to make web email, and web email progam need IMAP, the one that i use is from Washinton uni , but when i make confiure file, and read readme , it said i have to set something in ect/inet.conf. But i cant find it in red hat, Do u know how to do that?
============================================================

and another one, when i use Mandrake, i cant use
"telnet localhost" and "ftp localhost" but i can work on Red hat, DO U KNOW WHY?
 
Old 04-11-2001, 09:34 AM   #2
billsabub
Member
 
Registered: Feb 2001
Posts: 109

Rep: Reputation: 15
Thep,

RH7 doesn't use inetd anymore. Each of the processes listed in inetd.conf is now found in the subdirectory /etc/xinetd.d

Each process is then listed as a separate file in the /etc/xinetd.d directory.

HTH.
 
Old 04-12-2001, 08:27 PM   #3
thep
Member
 
Registered: Apr 2001
Location: Bangkok, Thailand
Distribution: RH8(server)
Posts: 65

Original Poster
Rep: Reputation: 15
Thank you

 
Old 06-28-2001, 08:57 AM   #4
pdelucia
Member
 
Registered: Jun 2001
Location: New Jersey
Distribution: Redhat 7.1
Posts: 36

Rep: Reputation: 15
IMAP question

Hi.

I am using RH7.1. My imap file in /etc/xinet.d is setup, however when I try to connect to IMAP, xinetd doesn't not seem to start the daemon and I get a conntection refused. Does anyone have any ideas?

Thank you very much!
Peter.

 
Old 06-28-2001, 11:28 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
You can always work around xinitd problems by running the daemon all the time! Just start it from the command line, then put it in your startup scripts too. If you're expecting a reasonable number of connections to it then this will be more efficient than having start and stop all the time.

Cheers

Jamie...
 
Old 06-28-2001, 01:49 PM   #6
pdelucia
Member
 
Registered: Jun 2001
Location: New Jersey
Distribution: Redhat 7.1
Posts: 36

Rep: Reputation: 15
IMAP

Hi Jamie..

I thought inetd listened for connections for given ports and then started the appropriate daemon for that port (In the case of IMAP 143) and then send the request over to it. I guess what I'm asking is that I thought IMAP didn't fully listen on a port but was summonded by inetd?

In any case tho, I did try starting the IMAP daemon manually and still had the same problem (connection refused).

Oh by the way.. I have also tryied running 'telnet localhost 143' to even see if anything was listening on that port and still nothing. I also did a netstat -a | grep 143 and didn't see anything listening either... ther should be someone listening shouldn't there??

Thanks,
Peter.

Last edited by pdelucia; 06-28-2001 at 01:53 PM.
 
Old 06-28-2001, 01:59 PM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: IMAP

Quote:
Originally posted by pdelucia
I thought inetd listened for connections for given ports and then started the appropriate daemon for that port (In the case of IMAP 143) and then send the request over to it. I guess what I'm asking is that I thought IMAP didn't fully listen on a port but was summonded by inetd?
Yeah, thats right... I was just trying to say that you don't have to use inetd to start the daemon, and that in some situations you might not want to.

So you start the daemon by hand - does it start correctly? (ps -ef | more and look for the daemon [also when you tried by hand did you make sure that inetd wasn't also still trying to start it?]) Have you got any firewalling setup with either iptables or ipchains?

And you fail to get the connection to the server at all? Its not user authentication that fails?

cheers

Jamie...
 
Old 06-28-2001, 05:36 PM   #8
pdelucia
Member
 
Registered: Jun 2001
Location: New Jersey
Distribution: Redhat 7.1
Posts: 36

Rep: Reputation: 15
Hi Jamie,

When I ran the daemon by hand, this is what I get:

* OK [CAPABILITY IMAP4 IMAP4REV1 STARTTLS LOGIN-REFERRALS AUTH=LOGIN] carpathia IMAP4rev1 2000.283rh at Thu, 28 Jun 2001 18:33:06 -0400 (EDT)


I do have a firewall up but I have this line in my rc.firewall file:

/sbin/ipchains -A input -p tcp -j ACCEPT -s 0.0.0.0/0 -d 0.0.0.0/0 143

does this open port 143?

then when I try to even do telnet loclhost 143 I get this:

Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Thanks for all your help!!
Peter.
 
Old 06-28-2001, 06:05 PM   #9
pdelucia
Member
 
Registered: Jun 2001
Location: New Jersey
Distribution: Redhat 7.1
Posts: 36

Rep: Reputation: 15
I GOT IT!!!

DAMM xinetd!!!

inside the /etc/xinetd.d directory this is a file called imap.
all is good in the file except the default file has

disable = yes

in it! I removed the line and I was able to connect!!

Thanks again for all your help!
Peter.
 
Old 11-03-2003, 03:49 AM   #10
nshoboul
Member
 
Registered: Sep 2003
Posts: 30

Rep: Reputation: 15
i'm constantly getting Warning: Couldn't open stream {localhost:143}INBOX in /usr/local/httpd/htdocs/view.php on line 5 here is theportion of codes i wrote :
<?php
$username="user";
$password="password";
$mailserver="localhost:143";
$link=imap_open("\{$mailserver}INBOX",$username,$password);
echo $link ;


?>
i've already set the disable option to no in /etc/xinetd.d/imap and restart xinetd but when i'm doing the pgrep imapd i'm getting nothing, how can insure that threre is no firewall behind this imap.

please help i'm really a newbie
 
  


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
qmail-ldap + courier-imap woes (imap capability) syahid Linux - General 1 10-12-2005 12:03 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
IMAP and Cyrus-IMAP on Slackware 10 cyberjames Slackware 2 01-10-2005 01:07 AM
IMAP works but IMAP TLS doesn't under PHP (Horde IMP) theparadigm Linux - Software 0 11-17-2003 12:35 AM
UW IMAP problem downloading IMAP folders nuzzy Linux - Software 1 04-17-2003 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 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
Open Source Consulting | Domain Registration