个人工具

“UbuntuHelp:MailScanner”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/MailScanner}} {{Languages|UbuntuHelp:MailScanner}} == Introduction == MailScanner scans all e-mail for viruses, spam and attacks against securi...)
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/MailScanner}}
 
{{From|https://help.ubuntu.com/community/MailScanner}}
 
{{Languages|UbuntuHelp:MailScanner}}
 
{{Languages|UbuntuHelp:MailScanner}}
 
 
 
== Introduction ==
 
== Introduction ==
 
 
MailScanner scans all e-mail for viruses, spam and attacks against security vulnerabilities. It is not tied to any particular virus scanner, but can be used with any combination of 14 different virus scanners, allowing sites to choose the "best of breed" virus scanner. MailScanner has been developed in a world-leading Electronics and Computer Science Department at the University of Southampton, and is distributed for *FREE* under the GNU Public Licence.
 
MailScanner scans all e-mail for viruses, spam and attacks against security vulnerabilities. It is not tied to any particular virus scanner, but can be used with any combination of 14 different virus scanners, allowing sites to choose the "best of breed" virus scanner. MailScanner has been developed in a world-leading Electronics and Computer Science Department at the University of Southampton, and is distributed for *FREE* under the GNU Public Licence.
 
+
* Scans e-mail for viruses using any combination of up to 14 different virus scanners
**** Scans e-mail for viruses using any combination of up to 14 different virus scanners
+
* Automatically updates all installed virus scanners every hour, by default
**** Automatically updates all installed virus scanners every hour, by default
+
* Identifies over 95% of spam using several techniques, including highly advanced heuristics
**** Identifies over 95% of spam using several techniques, including highly advanced heuristics
+
* Spam can be tagged, rejected, discarded, archived or forwarded to other addresses for inspection by administrators
**** Spam can be tagged, rejected, discarded, archived or forwarded to other addresses for inspection by administrators
+
* Pornographic spam can be stripped of all graphical content, protecting users from obscene content
**** Pornographic spam can be stripped of all graphical content, protecting users from obscene content
+
* Scans e-mail for attacks against known and unknown security vulnerabilities in popular e-mail applications, automatically correcting messages "on the fly" whenever possible and quarantining dangerous sections of other messages
**** Scans e-mail for attacks against known and unknown security vulnerabilities in popular e-mail applications, automatically correcting messages "on the fly" whenever possible and quarantining dangerous sections of other messages
+
* Highly scalable: 1 PC can process over 1.5 million e-mail messages per day
**** Highly scalable: 1 PC can process over 1.5 million e-mail messages per day
+
* Robust: Protects itself against "Denial of Service" attacks and operating system resource leaks
**** Robust: Protects itself against "Denial of Service" attacks and operating system resource leaks
+
* Highly configurable, providing ISP's and ASP's with the possibility of using thousands of different rules and configurations for any combination of users or domains
**** Highly configurable, providing ISP's and ASP's with the possibility of using thousands of different rules and configurations for any combination of users or domains
+
* Easy to set up as all configuration options are supplied with "sensible" defaults
**** Easy to set up as all configuration options are supplied with "sensible" defaults
+
 
+
 
To find out more, visit the web site at www.mailscanner.info or contact the team directly at MailScanner@MailScanner.info.  
 
To find out more, visit the web site at www.mailscanner.info or contact the team directly at MailScanner@MailScanner.info.  
 
 
== Install and configure the email server (Postfix): ==
 
== Install and configure the email server (Postfix): ==
**** Install the <code><nowiki>postfix</nowiki></code> package.
+
* Install the <code><nowiki>postfix</nowiki></code> package.
**** Run “sudo dpkg-reconfigure postfix”
+
* Run “sudo dpkg-reconfigure postfix”
 
*Choose “Internet”
 
*Choose “Internet”
 
(Note: If you use Comcast, you should choose "Internet with smarthost".  The SMTP relay host will be "smtp.comcast.net".)
 
(Note: If you use Comcast, you should choose "Internet with smarthost".  The SMTP relay host will be "smtp.comcast.net".)
第29行: 第23行:
 
*Local networks: “127.0.0.1/8” (Add any of your networks with users who need to send email)
 
*Local networks: “127.0.0.1/8” (Add any of your networks with users who need to send email)
 
*If not specified above, choose the default setting
 
*If not specified above, choose the default setting
**** Run "sudo /etc/init.d/postfix restart"
+
* Run "sudo /etc/init.d/postfix restart"
**** This will listen on TCP port 25 (SMTP).
+
* This will listen on TCP port 25 (SMTP).
 
+
 
== Install SPAM protection for an email server (MailScanner/Spamassassin): ==
 
== Install SPAM protection for an email server (MailScanner/Spamassassin): ==
**** Edit “/etc/postfix/main.cf” and add this line:
+
* Edit “/etc/postfix/main.cf” and add this line:
* header_checks = regexp:/etc/postfix/header_checks
+
** header_checks = regexp:/etc/postfix/header_checks
**** Create file “/etc/postfix/header_checks” and add this line:
+
* Create file “/etc/postfix/header_checks” and add this line:
* /^Received:/ HOLD
+
** /^Received:/ HOLD
**** Run “sudo apt-get install mailscanner”
+
* Run “sudo apt-get install mailscanner”
**** Edit these settings in “/etc/MailScanner/MailScanner.conf”
+
* Edit these settings in “/etc/MailScanner/MailScanner.conf”
* Run As User = postfix
+
** Run As User = postfix
* Run As Group = postfix
+
** Run As Group = postfix
* Incoming Queue Dir = /var/spool/postfix/hold
+
** Incoming Queue Dir = /var/spool/postfix/hold
* Outgoing Queue Dir = /var/spool/postfix/incoming
+
** Outgoing Queue Dir = /var/spool/postfix/incoming
* MTA = postfix
+
** MTA = postfix
**** Add to “/etc/MailScanner/spam.assassin.prefs.conf”
+
* Add to “/etc/MailScanner/spam.assassin.prefs.conf”
* razor_config /var/lib/MailScanner
+
** razor_config /var/lib/MailScanner
**** Install the following packages: <code><nowiki>pyzor razor dcc-client</nowiki></code>
+
* Install the following packages: <code><nowiki>pyzor razor dcc-client</nowiki></code>
**** Optionally install the package <code><nowiki>bind</nowiki></code> (Optional, but increases speed of SPAM filtering)
+
* Optionally install the package <code><nowiki>bind</nowiki></code> (Optional, but increases speed of SPAM filtering)
**** Edit this setting in “/etc/default/mailscanner”
+
* Edit this setting in “/etc/default/mailscanner”
* run_mailscanner = 1
+
** run_mailscanner = 1
**** Run these commands
+
* Run these commands
* sudo chown -R postfix.postfix /var/spool/MailScanner/
+
** sudo chown -R postfix.postfix /var/spool/MailScanner/
* sudo chown -R postfix.postfix /var/lib/MailScanner/
+
** sudo chown -R postfix.postfix /var/lib/MailScanner/
* sudo chown -R postfix.postfix /var/run/MailScanner/
+
** sudo chown -R postfix.postfix /var/run/MailScanner/
* sudo chown -R postfix.postfix /var/lock/subsys/MailScanner/
+
** sudo chown -R postfix.postfix /var/lock/subsys/MailScanner/
* sudo /etc/init.d/mailscanner restart
+
** sudo /etc/init.d/mailscanner restart
 
+
 
== Install a Virus Scanner for an email server (ClamAV): ==
 
== Install a Virus Scanner for an email server (ClamAV): ==
**** Install the package <code><nowiki>clamav</nowiki></code>
+
* Install the package <code><nowiki>clamav</nowiki></code>
**** Edit “/etc/MailScanner/MailScanner.conf”
+
* Edit “/etc/MailScanner/MailScanner.conf”
* Add "clamav" to the "Virus Scanners" setting (Remove the "none" setting)
+
** Add "clamav" to the "Virus Scanners" setting (Remove the "none" setting)
* Example: “Virus Scanners = clamav”
+
** Example: “Virus Scanners = clamav”
* Note: You can use multiple virus scanners at the same time.
+
** Note: You can use multiple virus scanners at the same time.
**** Run “sudo /etc/init.d/mailscanner restart”
+
* Run “sudo /etc/init.d/mailscanner restart”
 
+
 
== Install a Virus Scanner for an email server (F-Prot: Non-commercial use only) ==
 
== Install a Virus Scanner for an email server (F-Prot: Non-commercial use only) ==
**** Run “wget http://debian.logiclinux.com/pool/contrib/f/f-prot-installer/f-prot-installer_0.5.14_i386.deb”
+
* Run “wget http://debian.logiclinux.com/pool/contrib/f/f-prot-installer/f-prot-installer_0.5.14_i386.deb”
**** Run “sudo dpkg -i f-prot-installer_0.5.14_i386.deb”
+
* Run “sudo dpkg -i f-prot-installer_0.5.14_i386.deb”
**** Run “sudo apt-get install libwww-perl”
+
* Run “sudo apt-get install libwww-perl”
**** Run “sudo apt-get -f install“
+
* Run “sudo apt-get -f install“
**** Edit “/etc/MailScanner/MailScanner.conf”
+
* Edit “/etc/MailScanner/MailScanner.conf”
 
Add "f-prot" to the "Virus Scanners" setting (Remove the "none" setting)
 
Add "f-prot" to the "Virus Scanners" setting (Remove the "none" setting)
 
Example: “Virus Scanners = f-prot”
 
Example: “Virus Scanners = f-prot”
 
Note: You can use multiple virus scanners at the same time.
 
Note: You can use multiple virus scanners at the same time.
 
Run “sudo /etc/init.d/mailscanner restart”
 
Run “sudo /etc/init.d/mailscanner restart”
 
 
== Install a Virus Scanner for an email server (Bitdefender: Non-commercial use only) ==
 
== Install a Virus Scanner for an email server (Bitdefender: Non-commercial use only) ==
**** Download [http://www.bitdefender.us/bd/site/products.php?p_id=16 Bitdefender]
+
* Download [http://www.bitdefender.us/bd/site/products.php?p_id=16 Bitdefender]
 
<pre><nowiki>
 
<pre><nowiki>
 
wget -c ftp://ftp.bitdefender.com/pub/linux/free/bitdefender-console/en/BitDefender-Console-Antivirus-7.1-3.linux-gcc3x.i586.deb
 
wget -c ftp://ftp.bitdefender.com/pub/linux/free/bitdefender-console/en/BitDefender-Console-Antivirus-7.1-3.linux-gcc3x.i586.deb
 
</nowiki></pre>
 
</nowiki></pre>
**** Install the deb file via dpkg:
+
* Install the deb file via dpkg:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo dpkg -i BitDefender-Console-Antivirus-7.1-3.linux-gcc3x.i586.deb
 
sudo dpkg -i BitDefender-Console-Antivirus-7.1-3.linux-gcc3x.i586.deb
 
</nowiki></pre>
 
</nowiki></pre>
**** Edit “/etc/MailScanner/MailScanner.conf”
+
* Edit “/etc/MailScanner/MailScanner.conf”
* Add "bitdefender" to the "Virus Scanners" setting (Remove the "none" setting)
+
** Add "bitdefender" to the "Virus Scanners" setting (Remove the "none" setting)
* Example: “Virus Scanners = bidefender”
+
** Example: “Virus Scanners = bidefender”
* Note: You can use multiple virus scanners at the same time.
+
** Note: You can use multiple virus scanners at the same time.
**** Run “sudo /etc/init.d/mailscanner restart”
+
* Run “sudo /etc/init.d/mailscanner restart”
 
+
 
== Install a POP3(s) server to retrieve email: ==
 
== Install a POP3(s) server to retrieve email: ==
**** Install the <code><nowiki>dovecot-pop3d</nowiki></code> package.
+
* Install the <code><nowiki>dovecot-pop3d</nowiki></code> package.
**** This will listen on TCP port 110 (standard) and TCP port 995 (SSL secured)
+
* This will listen on TCP port 110 (standard) and TCP port 995 (SSL secured)
 
+
 
== Install an IMAP(s) server to retrieve email: ==
 
== Install an IMAP(s) server to retrieve email: ==
**** Install the <code><nowiki>dovecot-imapd</nowiki></code> package.
+
* Install the <code><nowiki>dovecot-imapd</nowiki></code> package.
**** This will listen on TCP port 143 (standard) and TCP port 993 (SSL secured)
+
* This will listen on TCP port 143 (standard) and TCP port 993 (SSL secured)
 
+
 
== Install web-based server administration (Webmin): ==
 
== Install web-based server administration (Webmin): ==
**** Install the <code><nowiki>webmin</nowiki></code> package.
+
* Install the <code><nowiki>webmin</nowiki></code> package.
**** Run "sudo /usr/share/webmin/changepass.pl /etc/webmin root mypassword"
+
* Run "sudo /usr/share/webmin/changepass.pl /etc/webmin root mypassword"
**** Run "sudo /etc/init.d/webmin restart"
+
* Run "sudo /etc/init.d/webmin restart"
**** Using a web-browser, connect to "https://localhost:10000/";
+
* Using a web-browser, connect to "https://localhost:10000/";
* Login as "root" use the password created above. (Example: mypassword)
+
** Login as "root" use the password created above. (Example: mypassword)
 
----
 
----
 
[[category:CategoryDocumentation]] [[category:CategoryNeedsExpansion]]
 
[[category:CategoryDocumentation]] [[category:CategoryNeedsExpansion]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 20:12的版本

Introduction

MailScanner scans all e-mail for viruses, spam and attacks against security vulnerabilities. It is not tied to any particular virus scanner, but can be used with any combination of 14 different virus scanners, allowing sites to choose the "best of breed" virus scanner. MailScanner has been developed in a world-leading Electronics and Computer Science Department at the University of Southampton, and is distributed for *FREE* under the GNU Public Licence.

  • Scans e-mail for viruses using any combination of up to 14 different virus scanners
  • Automatically updates all installed virus scanners every hour, by default
  • Identifies over 95% of spam using several techniques, including highly advanced heuristics
  • Spam can be tagged, rejected, discarded, archived or forwarded to other addresses for inspection by administrators
  • Pornographic spam can be stripped of all graphical content, protecting users from obscene content
  • Scans e-mail for attacks against known and unknown security vulnerabilities in popular e-mail applications, automatically correcting messages "on the fly" whenever possible and quarantining dangerous sections of other messages
  • Highly scalable: 1 PC can process over 1.5 million e-mail messages per day
  • Robust: Protects itself against "Denial of Service" attacks and operating system resource leaks
  • Highly configurable, providing ISP's and ASP's with the possibility of using thousands of different rules and configurations for any combination of users or domains
  • Easy to set up as all configuration options are supplied with "sensible" defaults

To find out more, visit the web site at www.mailscanner.info or contact the team directly at MailScanner@MailScanner.info.

Install and configure the email server (Postfix):

  • Install the postfix package.
  • Run “sudo dpkg-reconfigure postfix”
  • Choose “Internet”

(Note: If you use Comcast, you should choose "Internet with smarthost". The SMTP relay host will be "smtp.comcast.net".)

  • User to receive root mail: “myusername” (Enter your username)
  • Mail name: “mydomain.com” (Enter your domain name)
  • Local networks: “127.0.0.1/8” (Add any of your networks with users who need to send email)
  • If not specified above, choose the default setting
  • Run "sudo /etc/init.d/postfix restart"
  • This will listen on TCP port 25 (SMTP).

Install SPAM protection for an email server (MailScanner/Spamassassin):

  • Edit “/etc/postfix/main.cf” and add this line:
    • header_checks = regexp:/etc/postfix/header_checks
  • Create file “/etc/postfix/header_checks” and add this line:
    • /^Received:/ HOLD
  • Run “sudo apt-get install mailscanner”
  • Edit these settings in “/etc/MailScanner/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
  • Add to “/etc/MailScanner/spam.assassin.prefs.conf”
    • razor_config /var/lib/MailScanner
  • Install the following packages: pyzor razor dcc-client
  • Optionally install the package bind (Optional, but increases speed of SPAM filtering)
  • Edit this setting in “/etc/default/mailscanner”
    • run_mailscanner = 1
  • Run these commands
    • sudo chown -R postfix.postfix /var/spool/MailScanner/
    • sudo chown -R postfix.postfix /var/lib/MailScanner/
    • sudo chown -R postfix.postfix /var/run/MailScanner/
    • sudo chown -R postfix.postfix /var/lock/subsys/MailScanner/
    • sudo /etc/init.d/mailscanner restart

Install a Virus Scanner for an email server (ClamAV):

  • Install the package clamav
  • Edit “/etc/MailScanner/MailScanner.conf”
    • Add "clamav" to the "Virus Scanners" setting (Remove the "none" setting)
    • Example: “Virus Scanners = clamav”
    • Note: You can use multiple virus scanners at the same time.
  • Run “sudo /etc/init.d/mailscanner restart”

Install a Virus Scanner for an email server (F-Prot: Non-commercial use only)

Add "f-prot" to the "Virus Scanners" setting (Remove the "none" setting) Example: “Virus Scanners = f-prot” Note: You can use multiple virus scanners at the same time. Run “sudo /etc/init.d/mailscanner restart”

Install a Virus Scanner for an email server (Bitdefender: Non-commercial use only)

wget -c ftp://ftp.bitdefender.com/pub/linux/free/bitdefender-console/en/BitDefender-Console-Antivirus-7.1-3.linux-gcc3x.i586.deb
  • Install the deb file via dpkg:
sudo dpkg -i BitDefender-Console-Antivirus-7.1-3.linux-gcc3x.i586.deb
  • Edit “/etc/MailScanner/MailScanner.conf”
    • Add "bitdefender" to the "Virus Scanners" setting (Remove the "none" setting)
    • Example: “Virus Scanners = bidefender”
    • Note: You can use multiple virus scanners at the same time.
  • Run “sudo /etc/init.d/mailscanner restart”

Install a POP3(s) server to retrieve email:

  • Install the dovecot-pop3d package.
  • This will listen on TCP port 110 (standard) and TCP port 995 (SSL secured)

Install an IMAP(s) server to retrieve email:

  • Install the dovecot-imapd package.
  • This will listen on TCP port 143 (standard) and TCP port 993 (SSL secured)

Install web-based server administration (Webmin):

  • Install the webmin package.
  • Run "sudo /usr/share/webmin/changepass.pl /etc/webmin root mypassword"
  • Run "sudo /etc/init.d/webmin restart"
  • Using a web-browser, connect to "https://localhost:10000/";
    • Login as "root" use the password created above. (Example: mypassword)