LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-20-2006, 07:10 AM   #1
openbysource
Member
 
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66

Rep: Reputation: 15
dovecot problem


Hi,

I have configured Sendmail as my SMTP server at port 25.
Now I have enable dovecot for IMAP, IMAPS, POP3 and POP3S server.
Now IMAP service must be available at port 143 when I start the dovecot service in RHEL 4 ES.
But when I execute the commands for checking the status of the service it says the service is locked with subsys process.
I have a free port 143 and no other IMAP server is installed as well as configured on my system. What is the problem ?
Please Help !



Thanks
Regards
Deependra Singh
 
Old 01-20-2006, 09:13 AM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
rm /var/lock/subsys/dovecot
 
Old 01-20-2006, 09:15 AM   #3
openbysource
Member
 
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the reply.
But once I delete the file will it be created after I restart the service ?
I mean do I need to delete that file again and again for proper working ?



Regards
Deependra
 
Old 01-20-2006, 08:15 PM   #4
openbysource
Member
 
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66

Original Poster
Rep: Reputation: 15
Hi,

For securing IMAP I have created a digitial certificate in /usr/share/ssl/certs and have copied it into /usr/share/ssl/private directory. Now to enable user to only use IMAPS should I make the entry within the /etc/dovecot.conf like:
protocols = IMAPS
or can I use IMAP and IMAPS both and still force the user to access IMAP services through the server using IMAPS and not IMAP.

One more question is mail.yahoo.com having IMAPS server. Because when I tried to login to mail.yahoo.com from a browser it showed me a certificate and only after clicking OK I could well pass that. It will be very helpful to me if someone answers my questions.

Regards
Deependra
 
Old 01-22-2006, 09:10 AM   #5
openbysource
Member
 
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66

Original Poster
Rep: Reputation: 15
Hi,

Doing this

rm /var/lock/subsys/dovecot


stops dovecot service and when I restart the service the file again gets created letting the dovecot stop again.
Please help


Regards
Deependra
 
Old 01-22-2006, 09:39 AM   #6
openbysource
Member
 
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66

Original Poster
Rep: Reputation: 15
Hi,

I just did it worked.

The following messages were written in /var/log/maillog when I start the dovecot service:

Jan 22 21:44:04 station12 dovecot: Dovecot starting up
Jan 22 21:44:05 station12 pop3-login: Can't load private key file /usr/share/ssl/private/dovecot.pem: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch


It told me that I am having a problem with the certificate.
I went to /usr/share/ssl/certs directory.
Runned this command "make dovecot.pem"
Filled in the values asked by the above command and copied the file generated (dovecot.pem) into /usr/share/ssl/private directory.
Now I started the service again and this time it started successfully.

I posted this reply because maybe somebody else can get helped in future

Regards
Deependra
 
Old 01-22-2006, 10:32 AM   #7
openbysource
Member
 
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66

Original Poster
Rep: Reputation: 15
Hi,

I need to block pop3 services offered by dovecot using tcp wrappers.
How is it possible. I mean which daemon do I specify in /etc/hosts.deny file.
Is it ipop3d or pop3d ?

Please help
Regards
Deependra
 
Old 01-23-2006, 07:28 AM   #8
mushkil_ashan
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
in /etc/hosts.deny
add
ipop3d,ipop2d: <denied domain or network>
 
Old 08-09-2010, 03:59 AM   #9
fast-reflexes
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 36

Rep: Reputation: 16
For me adding
Code:
pop3-login: ALL
in hosts.deny was the right way to go to exclude anyone from using my server... I assume imap-login does the same if you have Dovecot IMAP running through inetd.
 
  


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
Dovecot Problem reply2vinay Linux - Networking 1 12-20-2005 06:32 PM
pop-before-smtp with dovecot problem kmoffat Debian 0 11-12-2005 04:22 PM
Problem setting up Dovecot for POP3 buzznick Fedora 5 11-04-2005 10:06 AM
Problem encountered during dovecot installation. vivaspeed Linux - Networking 1 07-12-2005 01:38 AM
redhat+dovecot+sendmail problem rh4 Linux - Networking 0 05-14-2005 05:18 PM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration