milter requirment

This is a discussion on milter requirment within the SendMail forums in Other Technologies category; 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 -- Cheers Res "The hopes we had, were much to high, way out of reach, but we have to try, no need to hide, no need to run, cause all the answers come one by one. The game will never be over, because we're keeping the dream alive" -Freiheit...

Go Back   Application Development Forum > Other Technologies > SendMail

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-30-2008, 11:56 PM
Res
Guest
 
Default milter requirment

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


--
Cheers
Res

"The hopes we had, were much to high, way out of reach, but we have to
try, no need to hide, no need to run, cause all the answers come one by
one. The game will never be over, because we're keeping the dream alive"
-Freiheit
Reply With Quote
  #2  
Old 08-31-2008, 11:17 AM
Andrzej Adam Filip
Guest
 
Default Re: milter requirement [socket map for FEATURE(`ldap_routing')]

Res <res@ausics.net> 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@onet.eu : anfi@xl.wp.pl
Be wary of strong drink. It can make you shoot at tax collectors and miss.
-- Lazarus Long, "Time Enough for Love"
Reply With Quote
  #3  
Old 08-31-2008, 11:40 AM
Tuc
Guest
 
Default Re: milter requirement [socket map for FEATURE(`ldap_routing')]

On Aug 31, 11:17 am, Andrzej Adam Filip <a...@onet.eu> wrote:
> P.S.
> Would you like to be insulted with more detailed advises? ;-)
>

Andrzej,

With answers like this, I'd love to be insulted on my
questions!

Tuc
Reply With Quote
  #4  
Old 09-01-2008, 05:41 AM
Res
Guest
 
Default Re: milter requirement [socket map for FEATURE(`ldap_routing')]

On Sun, 31 Aug 2008, Andrzej Adam Filip wrote:

> The following message is a courtesy copy of an article
> that has been posted to comp.mail.sendmail as well.
>
> 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.



Trying to avoid all that, to do it your way we might as well leave our
sendmail front-ends using smf-sav talking to the backend qmail/vpopmail
stuff, because we would be just re-inventing a variant of the same wheel.

We are about to undertake large operation in upgrading hardware and then
move the prime mail server network to postfix since it has native MySQL
support and Claus has said thats not planned for sendmail, and as postfix
can take advantage of Dovecots LDA, it will be far simpler and less messy
and better redundancy then our existing setup, and the qmail routing boxes
in the middle wont be needed, so they can be used as extra webmail or
whatever


--
Cheers
Res

"The hopes we had, were much to high, way out of reach, but we have to
try, no need to hide, no need to run, cause all the answers come one by
one. The game will never be over, because we're keeping the dream alive"
-Freiheit
Reply With Quote
  #5  
Old 09-01-2008, 06:09 AM
Andrzej Adam Filip
Guest
 
Default Re: milter requirement [sendmail and MySQL]

Res <res@ausics.net> wrote:
> [...]
> We are about to undertake large operation in upgrading hardware and
> then move the prime mail server network to postfix since it has native
> MySQL
> support and Claus has said thats not planned for sendmail, and as
> postfix can take advantage of Dovecots LDA, it will be far simpler and
> less messy and better redundancy then our existing setup, and the
> qmail routing boxes in the middle wont be needed, so they can be used
> as extra webmail or whatever


For my curiosity: Have you tried to make MySQL support natively socket
map protocol? :-) [yourself or by asking MySQL developers]

P.S.
I am under impression that I have achieved convincing Cyrus IMAP
developers to support socket map before it left sendmail's betas.

--
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl
"I have to convince you, or at least snow you ..."
-- Prof. Romas Aleliunas, CS 435
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:50 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.