Re: milter requirement [socket map for FEATURE(`ldap_routing')]
- From: Andrzej Adam Filip <anfi@xxxxxxx>
- Date: Sun, 31 Aug 2008 17:17:22 +0200
Res <res@xxxxxxxxxx> wrote:
Anyone know of an existing milter that will query a MySQL database for
a user@name and accept/reject? wanna see if we can eliminate milter
that has to ask an internal server (which then has to ask sql), cut
out the middle man , so to speak :)
I would suggest you customizing MIMEDefang.org milter (GPL licensed).
Mimedefang filtering script is written in perl so adding SQL queries via
perl DBI should be doable and relatively simple.
-------------------------------------------------------------------------
I would suggest using FEATURE(`ldap_routing') with socket map(s) used
instead of default LDAP queries. It will allow you "easy switch" to
classic ldap_routing based on LDAP.
MIMEDefang can serve socket maps. As I understand you need to define
filter_map function in your mimedefang filtering script.
It will be called as below:
my ($code, $value) = filter_map($map_name, $lookup_key);
List of valid codes:
"OK" value for key found and passwd in $value
"NOTFOUND" value for key not found
"TEMP" temporary problem with lookup
"TIMEOUT" lookup timeout
"PERM" permanent problem with lookup
List of map_names used by ldap_routing:
"ldapmh" (mh -> mail host)
"ldapmra" (mra -> mail routing address)
P.S.
Would you like to be insulted with more detailed advises? ;-)
URL(s):
http://www.mimedefang.org/
http://www.sendmail.org/m4/ldap_routing.html
--
[pl>en Andrew] Andrzej Adam Filip : anfi@xxxxxxx : anfi@xxxxxxxx
Be wary of strong drink. It can make you shoot at tax collectors and miss.
-- Lazarus Long, "Time Enough for Love"
.
- Next by Date: keep copy of mail
- Next by thread: keep copy of mail
- Index(es):
Relevant Pages
|
Loading