I am setting up an anti-spam layer for my users.  Each user has
preferences stored in LDAP.  Individual users should be able to control
turning spam filtering on/off, virus filtering on/off, message handling
(tagged or quarantined?), the aggressiveness of spamassassin, and have
white/black lists.

Is there a way I can write a plug-in that would connect up to LDAP and
pull those preferences and apply them to qpsmtpd?  Is the plug-in API
able to manipulate qpsmtpd that much?

Right now I'm using Postfix, and I was planning on putting qpsmtpd right
after Postfix much like how amavisd works, but I suppose qpsmtpd could
be at the front and the only MTA running on the system if it worked well
enough.  I guess a mailing system is only as fast as the slowest program
in the mail chain.  How does qpsmtpd compare to Postfix?  Postfix seems
to do extremely well with getting massive amounts of email out the door.

But anyway... something else I'd kinda like to do is have my plug-in
somehow make a persistent connection to LDAP so that connections aren't
created/destroyed for EVERY message coming through.  Would that be
possible?

Something else I have to keep in mind is some of the domains I filter
email for actually don't get stored on my servers, but are forwarded on
to their own email servers (they just use me for spam/virus filtering).
Only time they are stored on my servers is if the message is spam AND
the recipient user has set their preferences to quarantine the message.
So I would need a way to handle this as well. 


Thanks a lot.
Sean

Reply via email to