|
Were
going to setup a e-mail server using postfix as our smtp server,
dovecot as our pop3/imap server, ClamAV as out anit-virus and
MailScanner as out e-mail anti-virus scanner on a fedora core 3 box
& ilohamail as out webmail client. 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) nano /etc/dovecot.conf dovecot.conf:
|
protocols = imap imaps pop3 pop3s
|
2. start/restart the dovecot server by the command /etc/init.d/dovecot start 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/ chmod -R u+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 nano /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 and start the Clam AV daemon rpm -ivh clamav-db-0.88.2-1.i386.rpm rpm -ivh clamav-devel-0.88.2-1.i386.rpm rpm -ivh clamav-server-0.88.2-1.i386.rpm rpm -ivh clamav-0.88.2-1.i386.rpm /etc/init.d/clamd start 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/mailscanner/downloads.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 -xvf 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:
nano /etc/MailScanner/MailScanner.conf
MailScanner.conf:
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 MailScanner.conf
nano /etc/MailScanner/MailScanner.conf MailScanner.conf:
Virus Scanners = clamav /var/lib/clamav/*.cvd
|
16. Now we need to edit the postfix main.cf file, go all the way to the bottom of the file and add the following nano /etc/postfix/main.cf
main.cf:
|
header_checks = regexp:/etc/postfix/header_checks
|
17. In the file /etc/postfix/header_checks add this line:
nano /etc/postfix/header_checks
header_checks:
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 and then start them chkconfig dovecot on chkconfig MailScanner on chkconfig postfix on chkconfig clamd on /etc/init.d/Mailscanner start /etc/init.d/postfix start /etc/init.d/dovecot start /etc/init.d/clamd start
BookMarking:
cell1
|
|
cell3 |
|
cell4
|
|
Trouble Shooting:
Go to the wiki page Go to the 'Contact Us ' Forum Go to the how-to's Support Forum
External Links:
http://www.deluxnetwork.com/linux/guides/spamassassin_f-prot_mailscanner_.php |