Link to home
Start Free TrialLog in
Avatar of exchangesmith
exchangesmith

asked on

How to star IMAP/POP under RedHat Linux 6.2

I have installed IMAP-4.7-5 in a Redhat Linux 6.2 box, and started it up already. For some reason I restart the whole server and now the IMAP and POP are not running!
I ran "rpm -q imap" and get "iamp-4.7-5", and in /etc/inetd I have
"pop-2 stream tcp no wait root /usr/sbin/tcpd ipop2d
pop-3 stream tcp no wait root /usr/sbin/tcpd ipop3d
imap stream tcp no wait root /usr/sbin/tcpd imapd"
unmarked. I tried to run "killall HUP inetd" and it said no process killed. But I just cannot telnet into POP/IMAP ports 110/143.
The sendmail is running and I can see mails in users mailbox, but they just can't get mails from IMAP/POP.
Any quick help in starting IMAP/POP is highly appreciated!
Avatar of jlevie
jlevie

Check /etc/hosts.allow & /etc/hosts.deny. If those files aren't empty you could be inadvertantly blocking access to the IMAP and POP ports. Also make sure that inetd is running, like: 'ps -ef | grep inetd | grep -v grep'. you can check to see that inetd is enabled at boot with 'chkconfig --list inetd'. Typically you want inet enabled for run levels 3 and above. If it isn't enabled at boot you may need to enable it  with a linuxconf or with 'chkconfig inetd on', then double check to make sure it is enabled for run level 3.

FYI: The command to bet inetd to re-read the config file is 'kill -HUP inetd', note the '-'.
Avatar of exchangesmith

ASKER

Thanks jlevie.
I got the answer from another source, pasted below for your reference...

Sendmail seems to be working fine, but when users try to connect to the mailhost to get their mail, they can't connect. What's wrong?


Most likely this really is not a sendmail issue. Chances are the POP3 daemon is not installed. With Red Hat Linux, its part if the IMAP RPM. To see if the package is installed, type the following at a root command prompt:
rpm -q imap
If you get a no response, the IMAP RPM is not installed and you will need to install it to get things working right. Just mount your installation CD-ROM (or second CD-ROM with Red Hat Linux 7.x) by typing:
mount /mnt/cdrom
Change to the /mnt/cdrom/RedHat/RPMS/ directory, then as root type:
rpm -Uvh imap*.rpm
Try connecting from your clients again.
Under 6.2 or before, if you still have a problem open up your /etc/inetd.conf file in a text editor.
Look for the line which ends with ipop3d and make sure it is not commented out or preceded with a pound sign. If it is, remove the pound sign and restart inetd by typing:
/sbin/service inet restart
Then try connecting again.
If your Red Hat Linux version is 7.0 or higher, the system uses xinetd rather than inetd. You will need to make sure that ipop3 is turned on in xinetd.
To see ipop3's current status, type this command as the root user:
chkconfig --list ipop3
If the response is off, type this command as root to turn on ipop3:
chkconfig --level 345 ipop3 on
If you need to turn on several POP and IMAP services at once, try using ntsysv. Type the following command as the root user:
ntsysv 345
Then, turn on several services for these runlevels by moving to the appropriate line, such as the ipop3 and ipop2 lines, and hitting the [Spacebar] to make your selections. Then, [Tab] to the OK button and press [Enter].
Finally, you have to restart xinetd to make your chkconfig or ntsysv changes take effect. Type this command as the root user:
/sbin/service xinetd restart
Then, try to connect using your POP email clients again.


Maybe you are using wrappers instead of a daemon.
try this

telnet localhost 110
If you get a welcome then your pop is working and the daemon
becomes active after a connection on the right port in case of pop3 it is port 110
aaa
ASKER CERTIFIED SOLUTION
Avatar of asp168
asp168

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial