- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: dovecot failed to start
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2006 05:14 AM
тАО04-23-2006 05:14 AM
/etc/dovecot.conf
protocols = imap imaps pop3 pop3s
#service dovecot start
#service dovecot status
dovecot (pid 2411) is running...
Then I descide not to use the default(bogus) certificate, and use my own
certificate, I did the following
#cd /usr/share/ssl/certs
#mv dovecot.pem dovecot.pem.orig
#make dovecot.pem
umask 77 ; \
PEM1=`/bin/mktemp /tmp/openssl.XXXXXX` ; \
PEM2=`/bin/mktemp /tmp/openssl.XXXXXX` ; \
/usr/bin/openssl req -newkey rsa:1024 -keyout $PEM1 -nodes -x509 -days 365
-out $PEM2 ; \
cat $PEM1 > dovecot.pem ; \
echo "" >> dovecot.pem ; \
cat $PEM2 >> dovecot.pem ; \
rm -f $PEM1 $PEM2
Generating a 1024 bit RSA private key
..........++++++
................++++++
writing new private key to '/tmp/openssl.Vy2497'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:GB
State or Province Name (full name) [Berkshire]:Berkshire
Locality Name (eg, city) [Newbury]:Newbury
Organization Name (eg, company) [My Company Ltd]:Me & My
Organizational Unit Name (eg, section) []:Lab
Common Name (eg, your name or your server's hostname) []:imapop.test.com
Email Address []:root@test.com
service dovecot start
Starting Dovecot Imap: [ OK ]
service dovecot stop
Stopping Dovecot Imap: [FAILED]
service dovecot status
dovecot dead but subsys locked
tail -f /var/log/messages
Apr 23 21:43:20 mail dovecot: dovecot startup succeeded
Apr 23 21:43:24 mail dovecot: dovecot shutdown failed
Then i did the following and once again dovecot starts working
#rm dovecot.pem
#mv dovecot.pem.orig dovecot.pem
service dovecot start
Starting Dovecot Imap:
service dovecot status
dovecot (pid 2743) is running...
Also attaching the dovecot.conf
Any Help will be highly appreciated
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2006 09:46 PM
тАО04-23-2006 09:46 PM
Re: dovecot failed to start
Check that dovecot is not already running.
ps -ef | grep -i dovecot
ps -ef | grep cyrus
You may have another service interfering with dovecot
netstat -an | grep ":143 "
See if something else is listening on port 143.
service iptables status.
Shut down iptables and see if you get better results if its running.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 01:04 AM
тАО04-24-2006 01:04 AM
SolutionAfter you do the start, the service keeps running? check with service dovecot status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 06:38 AM
тАО04-24-2006 06:38 AM
Re: dovecot failed to start
Simple ... when I use the default(bogus) "dovecot.pem" dovecot works just fine.
But when I create my own "dovecot.pem" by doing the following:
#cd /usr/share/ssl/certs
#mv dovecot.pem dovecot.pem.orig
#make dovecot.pem
And then
#service dovecot start|restart
Starting Dovecot Imap: [ OK ]
#service dovecot status
dovecot dead but subsys locked
service dovecot stop
Stopping Dovecot Imap: [FAILED]
Dovecot doesnt start
iptables is stop.
if some other service is interfering with dovecot, then dovecot should also refuse to work when I use the default "dovecot.pem" file. dovecot Only doesnt works when I use my own certificate.
Thanks n Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:26 AM
тАО04-24-2006 07:26 AM
Re: dovecot failed to start
You are not using the right procedure to create the file. Put the default back, get a procedure form dovecot then it will work.
Here is a possible procedure that might work:
http://voxx.demon.co.uk/linux/linuxd.php?filename=00000050.txt
Please post back what works, I have to do the same thing.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:28 AM
тАО04-24-2006 07:28 AM
Re: dovecot failed to start
The install script generates a good pem file though.
http://applications.linux.com/article.pl?sid=06/03/28/1919226
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:33 AM
тАО04-24-2006 07:33 AM
Re: dovecot failed to start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:33 AM
тАО04-24-2006 07:33 AM
Re: dovecot failed to start
and Dear Ivan Ferriera, I have solved the prblm from the guidence of ur post, I my self check the /var/log/maillog, and maillog tells the actuall reason
I have attached the maillog
in /etc/dovecot.conf
Before(when prblm)
#ssl_cert_file = /usr/share/ssl/certs/dovecot.pem
#ssl_key_file = /usr/share/ssl/private/dovecot.pem
Solution/After
ssl_cert_file = /usr/share/ssl/certs/dovecot.pem
ssl_key_file = /usr/share/ssl/certs/dovecot.pem
That is I uncoment the ssl_cert_file and ssl_key_file lines, and provide the same path of ssl_key_file as of ssl_cert_file.
;)
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:37 AM
тАО04-24-2006 07:37 AM