|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: postfix smtp and MX with LDAP
From: Arya, Manish Kumar (m.arya
yahoo.com)
Date: Thu Mar 30 2006 - 04:34:33 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
yesss it works :)
server_host = 10.44.85.133
search_base = ou=postfix,dc=colt,dc=net
query_filter = (mynetworks=*)
result_attribute = mynetworks
now i can list allowed IPs in LDAP :)
-manish
--- "Arya, Manish Kumar" <m.arya
yahoo.com> wrote:
> Hi Victor,
>
> I have added following lines to main.cf
>
> mynetworks = ldap:/etc/postfix/allowed_networks.cf
>
> smtpd_recipient_restrictions = permit_mynetworks,
> reject_unauth_destination, permit
>
> and in allowed_networks.cf i have added
> -----------------------------
> server_host = 10.44.85.133
> search_base = ou=postfix,dc=manish,dc=net
> -----------------------------
>
> what more is required in allowed_networks.cf
>
> I am not sure in which attr allowed networks will go
> ?
>
> can you tell me a eg entry
>
> Thanks,
> -Manish
>
>
>
>
> --- Victor Duchovni
> <Victor.Duchovni
MorganStanley.com> wrote:
>
> > On Wed, Mar 29, 2006 at 12:26:24AM -0800, Arya,
> > Manish Kumar wrote:
> >
> > > Hi,
> > >
> > > I want to setup postfix for SMTP relay and
> MX.
> > and
> > > I want to store entire SMTP allowed/disallowed
> > IPs
> > > and MX entires in LDAP.
> > > can someone give idea how to do this. I have
> > > compiled postfix with LDAP support on solaris
> box.
> > but
> > > LDAP configs for postfix are looking
> > > confusing/incomplete in online doc
> > > http://www.postfix.org/LDAP_README.html
> >
> > Consult also:
> >
> > http://www.postfix.org/ldap_table.5.html
> >
> > and
> >
> > http://wwww.postfix.org/DATABASE_README.html
> >
> > Divide and conquer, get everything working with
> > indexed files (cdb,
> > btree, hash or dbm) first, then when Postfix is
> > delivering all mail
> > correctly, one table at a time, replace with LDAP
> > tables that are tested
> > with "postmap -q" to return identical results for
> > all the keys in the
> > indexed tables.
> >
> > --
> > Viktor.
> >
> > Disclaimer: off-list followups get on-list replies
> > or get ignored.
> > Please do not ignore the "Reply-To" header.
> >
> > To unsubscribe from the postfix-users list, visit
> > http://www.postfix.org/lists.html or click the
> link
> > below:
> >
>
<mailto:majordomo
postfix.org?body=unsubscribe%20postfix-users>
> >
> > If my response solves your problem, the best way
> to
> > thank me is to not
> > send an "it worked, thanks" follow-up. If you must
> > respond, please put
> > "It worked, thanks" in the "Subject" so I can
> delete
> > these quickly.
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]