Claudio Jeker wrote:

On Wed, Aug 04, 2004 at 02:04:08PM +0100, Nuno Miguel Pais Fernandes wrote:


Hello,

I've read this ML and discovered a thread about per-user antivirus, but is said that it requires 2 machines.

I want to setup in one machine per-user antivirus, meaning that some
users have clamav and other users have comercial antivirus.

I've thought of using ip alias and using diferent tcpserver and
QMAILQUEUE env variables acording to each interface, like:

eth0 -> tcpserver without QMAILQUEUE
eth0:1 -> tcpserver with QMAILQUEUE (comercial antivirus)
eth0:2 - > tcpserver with QMAILQUEUE (clamav)

qmail @ eth0 uses mailHost to send each user's email to the correct
qmail server
qmail @ (eth0:1  && eth0:2) treats all mail as local and delivers it
after scanning.

I would need 2 ldap servers, one with mailHost attribute ( used @ eth0)
and the other without ( used @ eth0:1 and eth0:2).

Can anyone figure out if it works?



You need only on ldap server but at least 2 qmail installations. Then you can configure two different control/me and use control/ldapclusterhost -- or whatever it was called -- to make the scanning work. You can then use two different QMAILQUEUE and qmail-scanner version for the comercial/non-comercial scanner.

At first sight I think this should work but I never tried something like
this.


Idem. and same conclusion.

Another way would be to have your own queue, which check through the environment variable which IP was used to connect and then fork the right qmail-queue.
It should even be possible to write this in few line of bash but like Claudio, I never tested.

Thomas

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to