LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can i check that dovecot is installed or not (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-check-that-dovecot-is-installed-or-not-781920/)

Basit56 01-13-2010 05:51 AM

How can i check that dovecot is installed or not
 
Hi,
Hope you all will be fine. Actually i want my java code to connect to linux sendmail server. Right now i am using gmail pop protocol to connect to gmail server. So now i want to connect to sendmail server using pop and i read that using dovecot you can make sendmail to have pop and imap services. By default it has only SMTP support.
So i want to know how can i check that i have dovecot installed or not, or my sendmail has pop or imap enable or not. Means by what command.

Thank you.

EricTRA 01-13-2010 05:57 AM

Hello and welcome to LinuxQuestions,

Have a look at the wiki of Dovecot, they have a whole chapter on testing your installation. Here's the link to it:
Test Dovecot installation

Kind regards,

Eric

Basit56 01-13-2010 06:19 AM

Hi,
Thanks. But it says

Quote:

Dovecot can simply be started by running dovecot as root. If there are any problems, they're usually written to terminal, but they may also be written to error log as well.
when i write dovecot then it gives me

Quote:

[root@ns9 ~]# dovecot
-bash: dovecot: command not found
[root@ns9 ~]#

So is it means that i have not dovecot installed. Also when i try

Quote:

[root@ns9 ~]# yum install dovecot
Setting up Install Process
Setting up repositories
dag 100% |=========================| 1.1 kB 00:00
update 100% |=========================| 951 B 00:00
rpmforge 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package dovecot.i386 0:0.99.11-9.EL4 set to be updated
--> Running transaction check
--> Processing Dependency: libmysqlclient.so.14 for package: dovecot
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: dovecot
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package mysql.i386 0:4.1.22-2.el4 set to be updated
--> Running transaction check
--> Processing Dependency: MySQL-client for package: MySQL-bench
--> Finished Dependency Resolution
Error: Missing Dependency: MySQL-client is needed by package MySQL-bench

Why this error is coming. If any dependency is miss then yum should install it automatically because yum install all dependencies by itself.

Thank you

EricTRA 01-13-2010 06:25 AM

Hi,

It looks like you don't have Dovecot installed.

Well, apparently yum doesn't do what you think it should do. When you look at the output you posted, you'll see on the bottom line
Code:

Error: Missing Dependency: MySQL-client is needed by package MySQL-bench
which means that this package is missing and the install depends on it. I'm not familiar with yum, never used it, but it seems to me that it doesn't install automatically what's needed as dependencies. So first install the mysql-client and then try again.

Kind regards,

Eric

Basit56 01-14-2010 12:50 AM

Hi,
Thanks:). I want to ask that when i type ps command it gives me.

Quote:

[root@ns9 /]# ps -ef | grep dovecot
root 7898 7813 0 16:53 pts/0 00:00:00 grep dovecot
[root@ns9 /]#

So what it means do i have doveoct installed or not.

Also please tell me that is dovecot woks with sendmail? Means if i want connect my code to sendmail(linux mail server) whether i need dovecot or not.

Thank you.

EricTRA 01-14-2010 01:11 AM

Hello,

The output you get from the ps command you listed is the grep command itself since it contains dovecot in the search. This output indicates that Dovecot is not running, not that it's installed or not.

All depends on what you want to do with your mail server. Have a look at http://www.howtoforge.com, they have some very easy to follow step by step guides for various setups, including sendmail, dovecot, and so on.

Kind regards,

Eric


All times are GMT -5. The time now is 10:59 PM.