个人工具

UbuntuHelp:ScanningEmail

来自Ubuntu中文

Wikibot讨论 | 贡献2009年11月17日 (二) 20:33的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/ScanningEmail}} {{Languages|UbuntuHelp:ScanningEmail}} == How would I go about scanning my email for viruses? == While viruses on Linux ...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

How would I go about scanning my email for viruses?

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.

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

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