LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2012, 06:02 AM   #1
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Rep: Reputation: 16
How do I make Clamav scan incoming and outgoing email? Thunderbird


I have Arch Linux, and I am using Mozilla Thunderbird ( version 6.0.2). I need clamav ( version 0.97.2-1) to scan incoming and outgoing email.

What I've done to solve this:
1) The Clamav website has documentation, but it lacks detail, making it useless.
2) Most forums such as this one date back to 2008 and before. They mention software and extensions that are outdated or do not exist in the AUR.
3) Ubuntu forums 2008 speaks of extensions which are not available Thunderbird.
3) Arch Linux only provides set up information for Clamav & Thunderbird.
4) Google was of no help due to the fact that all information appears to be outdated.
Help would be greatly appreciated and is obviously needed.
Thanks
 
Old 02-04-2012, 09:33 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
The p3scan package (which is in the Arch repository) can be used to set up an email proxy, so that email can be scanned by any one of a number of virus scanners (including clamav by default). This can be set up to operate transparently by using iptables, so that there is no need to change any of the email clients. There is a readme file with a description of the configuration.
 
1 members found this post helpful.
Old 02-05-2012, 01:42 AM   #3
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Original Poster
Rep: Reputation: 16
Thanks, Neonsignal

Thanks for the fast reply and the program suggestion.
Unfortunately, I now have three questions, of which one is in two parts:

Question 1)
Within the "/etc/p3scan/p3scan.conf" file there is a line that reads "# username: laitcg#pop.gmail.com:110 host: <url of p3scan machine> port: 8110".

My question is:how does a person find the url of the p3scan machine?

Question 2)
Within the read me file that you sent me (http://p3scan.sourceforge.net/readme.html)
there appears the following:
P3SCAN_USER=mail (clamav, etc...)
iptables -t nat -I PREROUTING -p tcp -i eth0 --dport pop3 -j REDIRECT --to 8110
iptables -t nat -I PREROUTING -p tcp -i eth0 --dport smtp -j REDIRECT --to 8110
iptables -t nat -I PREROUTING -p tcp -i eth0 --dport pop3s -j REDIRECT --to 8110
iptables -t nat -I OUTPUT -p tcp --dport pop3 -m owner --uid-owner $P3SCAN_USER -j ACCEPT
iptables -t nat -I OUTPUT -p tcp --dport pop3 -j REDIRECT --to 8110

My question as it pertains to the above is: Who is the owner and who is the P3SCAN_user?

Question 3)
Within the "/etc/p3scan/p3scan.conf" file there is a paragraph that reads:
"Clam Anti-Virus: http://www.clamav.net
#
# This program must run as the same user as p3scan is running so that
# it can access the mail files for scanning. Either compile with the
# options --with-user=mail --with-group=mail (if p3scan is using the
# the default user/group of "mail") or change "User" in clamav.conf
# to the user p3scan is running as. If you get a return code other
# than a 0 or 1, see the clamav documentation for the reason.
#"

My question as it pertains to the above is: I installed Clamav years ago, so how do I make it run as user mail?


Again, thanks for pointing me in the correct direction. If you or someone could please, please answer the three questions that I've asked above, I would be most grateful.

Last edited by yanfaun; 02-05-2012 at 10:00 PM. Reason: Clarity & appearance
 
  


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
bcc all outgoing / incoming email through Sendmail Server abhandari Linux - Server 3 06-14-2010 04:59 AM
How to configure incomming/outgoing Servers for Email/Thunderbird akhattak Fedora 4 11-03-2009 01:57 PM
Sendmail/Mailscanner - how can I only scan incoming email. jeffski Linux - Software 2 01-19-2009 10:40 PM
How to make bitdefender antivirus auto scan incoming mail ginda Linux - Software 1 03-15-2005 10:42 AM
Clamav scanning outgoing, but not incoming mail chaan Linux - Software 0 04-09-2004 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration