Fedora Linux Support Community & Resources Center
  #1  
Old 18th September 2012, 01:47 AM
RA4444 Offline
Registered User
 
Join Date: Mar 2012
Location: Guadalajara
Posts: 4
linuxchrome
IMAP sever not working

Hi, this is my first post so excuse me if I do something stupid.

I recently tried to setup a Mail Server at my Fedora install. I've installed and configured Dovecot, Roundcube and Postfix to work with SSL. But when I try to login via Roundcube I get a "Connection Error to IMAP server", I checked my log and this is what I've got

Code:
Sep 17 20:35:34 accesoriosazteca dovecot: imap-login: Fatal: Couldn't parse private ssl_key
Sep 17 20:35:34 accesoriosazteca dovecot: master: Error: service(imap-login): command startup failed, throttling
Sep 17 20:36:35 accesoriosazteca dovecot: imap-login: Fatal: Couldn't parse private ssl_key
Sep 17 20:36:35 accesoriosazteca dovecot: master: Error: service(imap-login): command startup failed, throttling
Any help will be highly appreciated
Reply With Quote
  #2  
Old 18th September 2012, 10:03 PM
6e617a696d's Avatar
6e617a696d Offline
Registered User
 
Join Date: Sep 2012
Location: Dallas, TX
Posts: 45
linuxfirefox
Re: IMAP sever not working

Have you tried test IMAP yet?

telnet <your_imap_server>:143/993

143 - non ssl connection
993 - ssl connection
Reply With Quote
  #3  
Old 19th September 2012, 12:17 AM
RA4444 Offline
Registered User
 
Join Date: Mar 2012
Location: Guadalajara
Posts: 4
linuxchrome
Re: IMAP sever not working

Quote:
Originally Posted by 6e617a696d View Post
Have you tried test IMAP yet?

telnet <your_imap_server>:143/993

143 - non ssl connection
993 - ssl connection
When I try to telnet port 993 (I've secured IMAP with SSL) I just get a "Conncetionwas closed by foreign host" error, I've added the rule to open port 993 in Iptables already
Reply With Quote
  #4  
Old 19th September 2012, 01:21 AM
6e617a696d's Avatar
6e617a696d Offline
Registered User
 
Join Date: Sep 2012
Location: Dallas, TX
Posts: 45
linuxfirefox
Re: IMAP sever not working

1) Can you make sure that dovecot is listening port 993?
2) Which version of dovecot you're using?
3) Can you do iptables -L and make sure tcp port 993 is listed
__________________
01010011 01101001 01101110 01100011 01100101 01110010 01100101 01101100 01111001 00100000 01111001 01101111 01110101 01110010 01110011 00100000 01001110 01100001 01111010 01101001 01101101 00100000 001000001 0101110
Reply With Quote
  #5  
Old 20th September 2012, 12:18 AM
RA4444 Offline
Registered User
 
Join Date: Mar 2012
Location: Guadalajara
Posts: 4
linuxchrome
Re: IMAP sever not working

Quote:
Originally Posted by 6e617a696d View Post
1) Can you make sure that dovecot is listening port 993?
2) Which version of dovecot you're using?
3) Can you do iptables -L and make sure tcp port 993 is listed
I am using Dovecot 2.01, and it is listening to port 993, I checked using lsof. But when I try iptables -L it doesn't show port 993 as open, but I've tried to many times, using the Terminal UI, the command and even manually editing my Iptables. What is wrong?
Reply With Quote
  #6  
Old 20th September 2012, 01:32 AM
6e617a696d's Avatar
6e617a696d Offline
Registered User
 
Join Date: Sep 2012
Location: Dallas, TX
Posts: 45
windows_7firefox
Re: IMAP sever not working

have you tried to restart iptables? if so can you put string that opens port 993?

or just run:

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT

this will definetelly will open port 993. Don't forget to run iptables-save if you planning to keep this rule permanently.
__________________
01010011 01101001 01101110 01100011 01100101 01110010 01100101 01101100 01111001 00100000 01111001 01101111 01110101 01110010 01110011 00100000 01001110 01100001 01111010 01101001 01101101 00100000 001000001 0101110
Reply With Quote
  #7  
Old 20th September 2012, 01:57 AM
RA4444 Offline
Registered User
 
Join Date: Mar 2012
Location: Guadalajara
Posts: 4
linuxchrome
Re: IMAP sever not working

Quote:
Originally Posted by 6e617a696d View Post
have you tried to restart iptables? if so can you put string that opens port 993?

or just run:

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT

this will definetelly will open port 993. Don't forget to run iptables-save if you planning to keep this rule permanently.
Thank you for the quick response, I think the problem is in Iptables, after executing the command and running iptables-save I see that port 993 is open in the output, but after running "service iptables restart" I get the following error:

Code:
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: nat mangle filte[  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
iptables: Loading additional modules: nf_conntrack_ftp nf_c[FAILED]_netbios_ns
Reply With Quote
  #8  
Old 20th September 2012, 01:58 AM
6e617a696d's Avatar
6e617a696d Offline
Registered User
 
Join Date: Sep 2012
Location: Dallas, TX
Posts: 45
windows_7firefox
Re: IMAP sever not working

cat /etc/sysconfig/iptables
__________________
01010011 01101001 01101110 01100011 01100101 01110010 01100101 01101100 01111001 00100000 01111001 01101111 01110101 01110010 01110011 00100000 01001110 01100001 01111010 01101001 01101101 00100000 001000001 0101110
Reply With Quote
  #9  
Old 20th September 2012, 10:37 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxfirefox
Re: IMAP sever not working

You need to create a self-signed cert for dovecot (unless you are paying for a cert).

Code:
# --- dovecot certs ---
cd /etc/pki/dovecot
openssl genrsa -out ./private/dovecot.pem 1024
# this is for 1000 days
openssl req -new -x509 -key ./private/dovecot.pem -out ./certs/dovecot.pem -days 1000
<answer questions>
  Country Name (2 letter code) [XX]:
  State or Province Name (full name) []:
  Locality Name (eg, city) [Default City]:
  Organization Name (eg, company) [Default Company Ltd]:
  Organizational Unit Name (eg, section) []:
  Common Name (eg, your name or your servers hostname) []:
  Email Address []:
Then reboot or restart the dovecot service
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
Reply

Tags
imap, sever, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VMware sever 2 2justin3 Installation and Live Media 8 6th May 2009 08:02 PM
php sever + fedora 9 alaws Servers & Networking 10 11th August 2008 08:58 AM
pop3 and imap not working :( dent Servers & Networking 22 31st May 2005 01:29 AM


Current GMT-time: 11:12 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat