Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

imapd process working or not?? 1

Status
Not open for further replies.
Nov 12, 2002
12
US
I am having problems determining why I can't get imap to work. When I type ps -ef, it does not list the imapd process running but when I am type /ps -ef |grep imapd, it does list the process and process id. Is it running or not?
 
Could you post the output of ps -ef | grep imapd? I suspect it might just be finding your grep process? Annihilannic.
 
Hi,

If you want, try check the open port (143). Command:

netstat -a | grep imap

Example result:
*.imap *.* 0 0 24576 0 LISTEN

OR

netstat -an | grep 143

Example result:
*.143 *.* 0 0 24576 0 LISTEN

Let us know how are you doing.

regards,
feroz
 
Annihilannic here is my ps -ef

ps -ef | grep imapd
root 1162 1151 0 12:40:11 pts/5 0:00 grep imapd

So that is just the command right?

And Dbase77,
when I do a netstat -a | grep imapd I don't get anything bit when I issue:

netstat -an | grep 143, i do get the output
*.143 *.* 0 24576 0 Listen

So it looks like th port is listening but the process is not running? I appreciate you guys help
 
Perhaps inetd is listening on that port?

Try grep 143 /etc/services and see if it is registered as a service.

[tt]# grep 143 /etc/services
imap 143/tcp imap2 # Internet Mail Access Protocol v2[/tt]

Then grep for the service name (in this case "imap") in /etc/inetd.conf to see if it is enabled. Annihilannic.
 
Hi,

You should get something if you do :

netstat -a | grep imap

Not grep imapd. I wonder how do you run your imapd? From inetd or just standalone program? Check what Annihilannic told you. Or perhap other program using that port number? Can you check your system log file if possible?

regards,
feroz
 
Thanks guys for responding, here is my config:
grep 143 /etc/services
imap 143/tcp imap2 # Internet Mail Access Protocol v2

grep imap /etc/inetd.conf
pop stream tcp nowait root /usr/local/imap-2002a/ipop2d
pop3 stream tcp nowait root /usr/local/imap-2002a/ipop3d
imap stream tcp nowait root /usr/local/imap-2002a/imapd
imapd

netstat -a | grep imap
*.imap *.* 0 0 24576 0 LISTEN

Looks like the daemon is working fine and it must be some other problem?
 
Hi,

OK. Try 1 more thing for me please. You wont see imapd process because you run it from inetd.conf.

telnet localhost 143

paste us the result, please?

regards,
feroz
 
Hi,

For you rinformation, if you run it from inetd, its on demand process and each process serve one connection and terminate when you finish.

If you telnet localhost 143, you should get imap banner or something. Dont quit yet and run ps -ef | grep imapd then you will see your process.

regards,
feroz
 
Thank you dbase77 for your help, I am getting more a much better understanding of what is going onbv

telnet localhost 143
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top