LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2012, 10:38 PM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
how to check mailscanner and clamav version in mailserver running centos?


well we have centos 5.7 running in mail server and we use mail scanner,clamav, spamassassin and postfix running there and i wanted to check mailscanner and clamav version but don't know how to go about it...

i did Mailscanner -v but it was invlaid command...

so can one help me all these..
 
Old 01-07-2012, 05:02 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Hi,

If you used your distro's package manager to install those packages, run:
Code:
rpm -qi mailscanner
rpm -qi clamav
For clamav you can also run:
Code:
clamd -V
to check its version.

Regards
 
Old 01-09-2012, 12:06 AM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well thank you Mr. Bathory for your response...

Well our mail server do run mailscaner and clamav but when i did rpm -qi mailscanner it said package not installed but for clamav it said it's installed and all...because it isn't possible at all that mailscanner isn't running in out mailserver..

i was tryin to login to our mailserver by through ssh,is it because of that?

Please give suggestions..
 
Old 01-09-2012, 02:00 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Well our mail server do run mailscaner and clamav but when i did rpm -qi mailscanner it said package not installed but for clamav it said it's installed and all...because it isn't possible at all that mailscanner isn't running in out mailserver..
If the rpm command came out without results for mailscanner, chances are that it's installed by other means and not using your distro's package manager. Usual locations are /usr/mailscanner, or /opt/mailscanner, but you can take a look at /etc/init.d/Mailscanner startup script to see where the Mailscanner executable is and run:
Code:
/path/to/mailscanner/bin/Mailscanner -V
to find its version
 
Old 01-09-2012, 03:19 AM   #5
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
Well Mailscanner isn't there in /etc/init.d directory... now how should i proceed?
 
Old 01-09-2012, 04:17 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Originally Posted by SarahGurung View Post
Well Mailscanner isn't there in /etc/init.d directory... now how should i proceed?
Did you check the usual installation locations (like/opt/MailScanner or /usr/mailscanner)? Are you sure it's installed?
As a last resort, you can run (as root)
Code:
updatedb
locate -i MailScanner
to find where it's installed

Last edited by bathory; 01-09-2012 at 04:20 AM.
 
Old 01-09-2012, 04:55 AM   #7
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well it's there in the /usr directory.....but it isnt there in the /init.d directory..
 
Old 01-09-2012, 05:55 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Originally Posted by SarahGurung View Post
well it's there in the /usr directory.....but it isnt there in the /init.d directory..
That means that you're using mailscanner with some sort of control panel. I guess it's started through the control panel, that's why there is no startup script.
Anyway, now you found it, you can check its version running:
Code:
/usr/mailscanner/bin/MailScanner -V
Regards
 
Old 01-09-2012, 06:05 AM   #9
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well wen i went into dat directory n ran dat command it said "mailscanner : command not found"....what could be the reason?
 
Old 01-09-2012, 06:07 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Originally Posted by SarahGurung View Post
well wen i went into dat directory n ran dat command it said "mailscanner : command not found"....what could be the reason?
Run the command as it shown in my previous post please

Last edited by bathory; 01-09-2012 at 06:11 AM.
 
Old 01-09-2012, 06:11 AM   #11
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well it said no such directory because mailscanner isn't a directory in my case...bin folder isnt there...
 
Old 01-09-2012, 07:04 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Originally Posted by SarahGurung View Post
well it said no such directory because mailscanner isn't a directory in my case...bin folder isnt there...
Huh, I don't know what to say.
Run:
Code:
ps -ef|grep MailScanner
to see if it's running and from what directory
 
Old 01-09-2012, 10:55 PM   #13
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
Well Mr.bathory when i did ps -ef|grep Mailscanner i got the following output:

root 1734 1712 0 09:59 pts/1 00:00:00 grep mailscanner
 
Old 01-10-2012, 01:24 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Originally Posted by SarahGurung View Post
Well Mr.bathory when i did ps -ef|grep Mailscanner i got the following output:

root 1734 1712 0 09:59 pts/1 00:00:00 grep mailscanner
Mind that it's Mailscanner with the "M" (capital m), not "m". Or you can run the same as:
Code:
ps -ef|grep -i MailScanner
Also run the locate command in post #6 and see what you get.

And please do some research in your box by yourself. Don't expect me, or other LQ members to do this for you.

Regards
 
Old 01-10-2012, 01:50 AM   #15
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well Mr. Bathory i was researching on my own as well,just thought dat members in dis forum would help and i would get more ideas as many of them have experience with linux for years whereas i'm new to it...

i did research a lot,and i had no other option but to ask in the forum but i think dat was my greatest mistake..

thanks Mr. bathory for ur "comments" and suggestion....it was really rude of you at de end..
 
  


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
[SOLVED] Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS 5.5 vikas027 Linux - Software 4 12-29-2010 10:45 AM
how to check if mailserver is running graziano1968 Linux - Server 1 09-27-2010 04:30 AM
Running Mailscanner with sendmail, spamassassin and ClamAV the_gripmaster Linux - Software 0 07-19-2007 11:05 AM
LXer: Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS LXer Syndicated Linux News 0 02-04-2007 03:21 PM
Mailscanner With Spamassassin + Clamav On The Same Server treedstang Linux - Enterprise 3 02-09-2006 11:53 PM


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

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