LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-06-2006, 02:38 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 447

Rep: Reputation: 30
Configure postfix with ClamAV MailScanner Dovecot Ilohamail


Friends ,
I want to configure postfix with clamav , Mailscanner etc . Here is my configuration procedure from http://www.yourhowto.org/:
plz read the configuration file and plz answer my one question .


Name: Dovecot
HomePage: http://dovecot.org/
Fuction: Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind.

Name: Clamav
HomePage: http://www.clamav.net
Fuction: An open source anti-virus

Name: Postfix
HomePage: http://www.postfix.org/
Fuction: Postfix attempts to be fast, easy to administer, and secure, while at the same time being sendmail compatible enough to not upset existing users

Name: MailScanner
HomePage: http://www.mailscanner.info/
Fuction: Scans all incomming and outgoing e-mails useing the system's anti-virus.

Name: Ilohamail
Homepage: http://blog.ilohamail.org/
fuction: Webmail client, used to check e-mails from anywhere in world, via the internet, like gmail or hotmail

1. Edit the /etc/dovecot.conf file to include the following line (if you want all services running then include them all, if only one then include only the one running that you want)
'protocols = imap imaps pop3 pop3s'

2. start/restart the dovecot server by the command
'/etc/init.d/dovecot start'
thats how simple setting up a mail server on 'fedora core 4' is now for the webmail client, Ilohamail.

3. Now download the latest version from, http://blog.ilohamail.org/ then make the folder /usr/lib/ilohamail/ and unzip the downloaded file into the folder you just created.

4. Once you have unpacked it, then place a link in the root directory of the apache web server.
'ln -s /usr/lib/ilohamail/IlohaMail/source/ /var/www/html/ilohamail'

5. Now change the ownership of the folder so people surfing the web can access it.
'chown apache:apache -R /usr/lib/ilohamail/IlohaMail/source/'
and allow them full access rights
'chmod -R a+rwx /usr/lib/ilohamail/IlohaMail/source/'

6. make sure that apache is running
'/etc/init.d/httpd start'

7. Then go to http://ip-address-of-your-machine/ilohamail/

8. Once at this site you may notice there is an option of language, service (imap/pop3) and server, if you don't want your clients to be able to change or see these options then edit the file
'/usr/lib/ilohamail/IlohaMail/conf/login.php'
the file it's self should have plenty of instructions on what to do.

9. Next we need to install the anti virus software
the rpm's can be downloaded from
http://crash.fce.vutbr.cz/crash-hat/3/clamav/
or the source can be downloaded from
http://www.clamav.net

10. then we install it
rpm -ivh clamav-*

11. once the anti-virus is install then we need to install the MailScanner software the RPM along with the source files can be found at
http://www.sng.ecs.soton.ac.uk/mails...ownloads.shtml

12. now get ready to install the mailscanner, this is going to take a long time.
gzip -d MailScanner-4.46.2-2.rpm.tar.gz
tar -xvg MailScanner-4.46.2-2.rpm.tar
cd MailScanner-4.46.2-2
./install.sh

13. In your MailScanner.conf file in /etc/MailScanner, there are 5 settings you need to change. The settings are:
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = postfix

14. You will need to ensure that the user "postfix" can write to
/var/spool/MailScanner/incoming and /var/spool/MailScanner/quarantine
# chown postfix.postfix /var/spool/MailScanner/incoming
# chown postfix.postfix /var/spool/MailScanner/quarantine

15. Edit file /etc/MailScanner/MailScanner.conf
Virus Scanners = clamav

16. now we need to edit the postfix main.cf file,
/etc/postfix/main.cf
go all the way to the bottom of the file and add the following
header_checks = regexp:/etc/postfix/header_checks

17. In the file /etc/postfix/header_checks add this line:
/^Received:/ HOLD

18. now change the MTA alternatives --config mta

19. Now for the management of these programs, webmin is a great tool and all of these programs have webmin modules.
ClamAV webmin module - http://wbmclamav.labs.libre-entreprise.org/
MailScanner - http://sourceforge.net/projects/msfrontend/

20. Webmin configuration information:

Full path to MailScanner program:
/usr/sbin/MailScanner
Full path and filename of MailScanner config file:
/etc/MailScanner/MailScanner.conf
Full path to the MailScanner bin directory:
/usr/sbin/
Full path and filename for the MailScanner pid file:
/var/run/MailScanner.pid
Command to start MailScanner:
/etc/init.d/MailScanner start
Command to stop MailScanner:
/etc/init.d/MailScanner stop

21. Set the servers to run on startup

chkconfig dovecot on

chkconfig MailScanner on

chkconfig postfix on

chkconfig clamd on


Now my question is :

when i install clamav Rpm package then is it necessary to manualy edited the clamav configuration file ? or it is running wilt mailscanner automatically ? Here the author said , just install clamav rpm . But according his comment i can't get any "clamd" file . Plz help me how i install clamav with postfix .......................Thx..........
 
Old 05-06-2006, 07:26 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
The steps he has given should work, though I should say upfront that I haven't used/seen an RPM based linux in years. The clamav rpm should install everything you need, and the ending command "chkconfig clamd on" should auto start clamav. The scanner knows about the existance of the clamav, and all it needs to do is ask clamav to scan any message.

In short, just do it. If chkconfig clamd on returns an error, then you should read the chkconfig man page, and get clamd to start automatically through that. There is a great writeup on clamav on http://qmailrocks.org but that is geared towards qmail.

Peace,
JimBass
 
Old 04-22-2010, 01:51 PM   #3
ColtTech
LQ Newbie
 
Registered: Apr 2010
Distribution: multiple
Posts: 1

Rep: Reputation: 0
clamav and mailscanner

configserver services (aka the firewall guys) have stated one should remove the clamav plugin from WHM as it will "break mailscanner"... I want clamav too. I mean really is it just the plugin and if so how to I safely reintegrate clamav so not to harm mailscanner.

I was also thinking of switching from courier to dovecot but i'm not sure if this is good? I mean I already got mailscanner working. Can I just use WHM to change to Dovecot with no problems?

I turned off all the spamassasin stuff as I was warned to do by CFS.

I was using Tail in a dual ssh window set up and found that I was even getting improper mail hack attempts from ambs.edu ( a christian university of all things--- blood sucking vampires by night perhaps).

Anyway any help would be much appreciated.
 
  


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
Mailscanner With Spamassassin + Clamav On The Same Server treedstang Linux - Enterprise 3 02-09-2006 10:53 PM
dovecot imap server & clamav paul_mat Linux - Networking 0 01-09-2006 09:43 PM
ClamAV+MailScanner error message pudhiyavan Linux - Security 1 07-29-2004 04:40 AM
Postfix with MailScanner wmartino Linux - Security 3 03-14-2004 11:30 AM
MailScanner and ClamAV Configuration problem AZIMBD03 Red Hat 1 01-29-2004 01:21 PM


All times are GMT -5. The time now is 08:21 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