Re: ClamAV with Alpine on Ubuntu

Ken Mankoff <[email protected]> Mon, 20 Feb 2012 18:38:58 -0500 (EST)
Newsgroups gmane.mail.pine.general
Message-ID <[email protected]>
I think this is a fairly basic use of the alpine 'filter' ability.=20
Set a filter that runs on all messages (or all New message, or all=20
New messeages with attachments) that passes the message to your=20
script. The script should write a tmp file, run clamav, parse the=20
output, and set its return code based on the clamav output. Either=20
use a 3rd party app to notify you of a potential virus (Growl?) or=20
have alpine auto-file the message to a maybe-virus folder.

   -k.

On Mon, 20 Feb 2012, David Prager Branner wrote:

> Dear Ken,
>
> Thanks for your replies.
>
> I haven't learned to use procmail yet, but am definitely intent on doin=
g so
> when I have some time. At the moment, I simply run Alpine locally and g=
mail
> does everything else. Somehow or other, the messages in question got
> through gmail's normally excellent filters, which is why I suspect they=
 may
> be false positives. My interest in using ClamAV is that I may not alway=
s be
> using gmail.
>
> As for the specifics you mention, I suppose it would be less trouble to
> scan messages as they are saved locally. I know that gmail isn't always
> cooperative about remote access, so this would probably save some
> bandwidth. But I'll be glad to follow your suggestions as to the most
> efficient thing to do.
>
> - dpb
>
> On Mon, Feb 20, 2012 at 2:53 PM, Ken Mankoff <[email protected]> wrote:
>
>> If you are IMAPing doesn't google/gmail do virus scanning?  If you are
>> fetching, then the solution is found by linking procmail to clamav, no=
t
>> alpine to clamav.
>>
>>
>> Or, more specifics would help. Do you want alpine to make clamav scan =
a
>> remote IMAP message on the gmail servers, or scan a message as it is s=
aved
>> to the local folder but before that folder is modified?
>>
>>   -k.
>>
>>
>> On Feb 20, 2012, at 13:27, David Prager Branner <brannerchinese@gmail.=
com>
>> wrote:
>>
>> I am using Alpine 2.00 on Ubuntu 10.04.3 to access accounts on
>> smtp.gmail.com, with great satisfaction. I have two questions.
>>
>> 1. Recently I discovered that the antivirus software ClamAV has identi=
fied
>> a virus =E2=80=94 perhaps a false positive =E2=80=94 in one of the "fo=
lder" files that
>> Alpine saves messages to on my server. I'm unable to locate the offend=
ing
>> text or code manually, and am wondering if Alpine can be configured to=
 work
>> with ClamAV to identify a specific message in a "folder" more precisel=
y.
>>
>> 2. A related question is whether it is possible to configure Alpine to
>> scan incoming mail using ClamAV as it arrives, rather than when it is =
saved
>> to disk.
>>
>> I find no references to "clamav" in the archives of this list.
>>
>> Thanks for your help.
>>
>> Sincerely,
>>
>> David Branner
>> brannerchinese.com
>>
>> _______________________________________________
>>
>> Pine-info mailing list
>> [email protected]
>> http://mailman2.u.washington.edu/mailman/listinfo/pine-info
>>
>>
>

_______________________________________________
Pine-info mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/pine-info