3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Avira AntiVir imp...
FromSent OnAttachments
Marco BalmerNov 17, 2006 3:20 am 
Alessandro VeselyNov 18, 2006 2:12 am 
Marco BalmerNov 21, 2006 3:51 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Avira AntiVir implementation?Actions...
From:Alessandro Vesely (ves@tana.it)
Date:Nov 18, 2006 2:12:24 am
List:net.sourceforge.lists.courier-users

Marco Balmer wrote:

Is there a implementation for http://www.avira.com 's AntiVir solution?

Their AntiVir Unix MailGate works with Sendmail's milterlib. Courier has more or less the same callbacks, however the details are slightly different.

One may try implement milterlib for Courier. It provides for callbacks on connection (not provided by Courier, should be faked), helo (ditto), envfrom (ditto), envrcpt (provided as rcpt APIs), header (not provided for each header, can be forwarded by a global filter), eoh (ditto), body (ditto: Courier does not split messages into header/body parts), eom, abort, close.

In addition, the socket can only be a unix domain socket and must be in specific Courier directories. Forwarding to a different socket for library interface compliance is a gratuitous waste of resources.

Presumably, AntiVir is really only interested in the body of the message and just the MIME headers necessary to parse it. A small subset of the milterlib possibilities. Thus, it would be easier and better to implement that directly using the global filtering API.

Unfortunately, AntiVir is not available as a library. Instead, they support each single MTA. Hence, support for Courier should be coded by their staff. Perhaps, they would grab some startup approach from my interface for SophosAV http://www.tana.it/sw/avfilter/