个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '{{From|https://help.ubuntu.com/community/ScanningEmail}} {{Languages|UbuntuHelp:ScanningEmail}} == How would I go about scanning my email for viruses? == While viruses on Linux ...')
 
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/ScanningEmail}}
 
{{From|https://help.ubuntu.com/community/ScanningEmail}}
 
{{Languages|UbuntuHelp:ScanningEmail}}
 
{{Languages|UbuntuHelp:ScanningEmail}}
== How would I go about scanning my email for viruses? ==
+
== How would I go about scanning my email for viruses and other nasties? ==
While viruses on Linux are generally requiring special privileges to run, one could still be sending an email from Linux with an attachment that could be affected by a virus, which would then spell doom for Windows users. To make your communications safer, here is how you can scan your email for viruses.
+
While viruses on Linux are rare and would require special privileges to run, one could still be sending an email from Linux with an attachment that could be affected by a virus, which could then spell doom for Windows users. As well things like "spoofed" web site addresses can be sent to you via email and Clamav can detect these and warn you about them so you don't mistakenly click a link to go to a bogus web site. To make your communications safer, here is how you can scan your email for viruses and other malware.
 
=== Requirements ===
 
=== Requirements ===
 
You need to have [[UbuntuHelp:ClamAV|ClamAV]] running in automated mode. Installing the '''clamav-daemon''' package provides this. See [[UbuntuHelp:ClamAV|the|ClamAV documentation]] for more information about this.  
 
You need to have [[UbuntuHelp:ClamAV|ClamAV]] running in automated mode. Installing the '''clamav-daemon''' package provides this. See [[UbuntuHelp:ClamAV|the|ClamAV documentation]] for more information about this.  
 
You will also need to add the following lines to /etc/clamav/clamd.conf:
 
You will also need to add the following lines to /etc/clamav/clamd.conf:
 
<pre><nowiki>
 
<pre><nowiki>
TCPsocket 3310
+
TCPSocket 3310
 
TCPAddr localhost  
 
TCPAddr localhost  
 
</nowiki></pre>
 
</nowiki></pre>
第24行: 第24行:
 
=== Scanning email for viruses in Evolution ===
 
=== Scanning email for viruses in Evolution ===
 
* [http://lurker.clamav.net/message/20050618.021537.f1ab6d55.en.html scanning email from evolution using a filter]
 
* [http://lurker.clamav.net/message/20050618.021537.f1ab6d55.en.html scanning email from evolution using a filter]
* [http://ubuntuforums.org/showthread.php?t=84423 ClamAV and Evolution, it can be done!]
+
This thread gives you all the steps to have Clamav automatically scan all your incoming Evolution e-mails and pop up notifications as well as make syslog entries:
 +
* [http://ubuntuforums.org/showthread.php?t=1363102 Incoming e-mail virus scan with Evolution]
 
=== Testing your email virus-scanning setup ===
 
=== Testing your email virus-scanning setup ===
 
# Install clamav-testfiles
 
# Install clamav-testfiles

2010年5月20日 (四) 00:08的最新版本

How would I go about scanning my email for viruses and other nasties?

While viruses on Linux are rare and would require special privileges to run, one could still be sending an email from Linux with an attachment that could be affected by a virus, which could then spell doom for Windows users. As well things like "spoofed" web site addresses can be sent to you via email and Clamav can detect these and warn you about them so you don't mistakenly click a link to go to a bogus web site. To make your communications safer, here is how you can scan your email for viruses and other malware.

Requirements

You need to have ClamAV running in automated mode. Installing the clamav-daemon package provides this. See the|ClamAV documentation for more information about this. You will also need to add the following lines to /etc/clamav/clamd.conf:

TCPSocket 3310
TCPAddr localhost 

You can edit such file by issuing the following command:

gksu gedit /etc/clamav/clamd.conf

Once you've made such changes, restart the ClamAV service:

sudo service clamav-daemon restart

Scanning email for viruses in Thunderbird

Scanning email for viruses in Thunderbird will require installing the Clamdrib extension. Once the extension has been installed you can test if its communicating with the ClamAV installation by going to Tools > Add-ons > clamdrib > Preferences > Test Settings. See below for instructions on how to test if you virus scanning works. Keep in mind ClamAV will check any emails you preview or open, it will *not* scan incoming emails as they come in or outgoing emails. For more information see this Thunderbird Virus Scan thread.

Scanning email for viruses in Evolution

This thread gives you all the steps to have Clamav automatically scan all your incoming Evolution e-mails and pop up notifications as well as make syslog entries:

Testing your email virus-scanning setup

  1. Install clamav-testfiles
  2. Email your account any of the following files:
  • /usr/share/clamav-testfiles/clam.cab
  • /usr/share/clamav-testfiles/clam.exe
  • /usr/share/clamav-testfiles/clam.exe.bz2
  • /usr/share/clamav-testfiles/clam-v2.rar
  • /usr/share/clamav-testfiles/clam-v3.rar
  • /usr/share/clamav-testfiles/clam.zip