LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   dovecot & RHEL5 U1 installation problem (https://www.linuxquestions.org/questions/linux-enterprise-47/dovecot-and-rhel5-u1-installation-problem-599597/)

brianmcgee 11-14-2007 10:46 AM

dovecot & RHEL5 U1 installation problem
 
I want to install dovecot as an imap server on RHEL5 U1.

Code:

Linux ***** 2.6.18-52.el5 #1 SMP Wed Sep 26 15:26:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
I followed the same steps (certainly there are slight differences) as I installed dovecot on a Fedora test machine.

Code:

# yum install dovecot
# /usr/share/doc/dovecot-1.0/examples/mkcert.sh

Most important setting in /etc/dovecot.conf:
Code:

protocols= imap, imaps
While my Fedora machine works, the RHEL5 U1 dovecot setup does not:

Code:

# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
*hangs*

Here I should be greeted with:
Code:

$ telnet localhost 143
Trying 127.0.0.1...
Connected to server1.example.com (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready

A test with mutt also fails (Waiting forever for login):

Code:

# mutt -f imap://localhost:143
Nmap shows, that the ports are open:
Code:

# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-11-14 17:45 CET
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1673 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
111/tcp open  rpcbind
143/tcp open  imap
631/tcp open  ipp
632/tcp open  unknown
993/tcp open  imaps

Nmap finished: 1 IP address (1 host up) scanned in 0.128 seconds

Checking with fuser for using port 143 shows the PID of a running dovecot...

Code:

# rpm -qa dovecot
dovecot-1.0-1.2.rc15.el5
# rpm -qa openssl
openssl-0.9.8b-8.3.el5

Firewall & SELinux are disabled. Any idea what is going wrong? The logs /var/log/maillog respectively /var/log/messages show nothing.

brianmcgee 11-15-2007 01:54 AM

I have upgraded to dovecot-1.0.7-0_63.el5.x86_64 and now there are some error messages that gives me a hint where to look:

Code:

Nov 15 08:48:10 ********** dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
At [1] I found the tipp that resolves this issue. And surprise surprise now it works: Setting login_process_size = 64

Code:

# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready

[1] http://www.cyberciti.biz/tips/rhel-d...libraries.html


All times are GMT -5. The time now is 01:28 PM.