Cyrus IMAP, sendmail and LDAP

Igor Brezac igor at ipass.net
Thu Jul 8 15:58:20 EDT 2004


On Thu, 8 Jul 2004, AJ wrote:

> Well, because I read on various lists that if you don't use ldap_routing then
> the cyrus mail server can become cluttered with various bounces and spoofed
> sender addresses.. This way, sendmail will verify each user before accepting
> delivery.  I may try the other alternative via socket map.
> What do you recommend?

This is what virtusertable does.  It accepts mail only for known users.
Just make sure you have a 'catch all' entry for each domain.  Something
like:
@example.com  error:nouser 550 User unknown

-Igor

>
> Quoting Igor Brezac <igor at ypass.net>:
>
> > On Thu, 8 Jul 2004, AJ wrote:
> >
> >> John,
> >>   Thanks, everything is up and running now, but I have one final question...
> >> Is it possible for sendmail to check the alias file or virtusertable before
> >> doing an ldap lookup.  I am not ready to move these into ldap and I want to
> >> preserve them.
> >
> > If you are already using virtusertable, why do you bother setting up
> > ldap_routing?  You can just setup an ldap based virtusertable map.
> >
> > -Igor
> >
> >> Thanks again for all of your help.
> >>
> >> AJ
> >>
> >> Quoting John Andrews <johna at stjoelive.com>:
> >>
> >> > You will want to have something similar to this for ldap_routing.
> >> >
> >> > FEATURE(`ldap_routing', `ldap -1 -T<TMPF> -v mailHost -k
> >> > (mailLocalAddress=%0)', `ldap -1 -T<TMPF> -v mailRoutingAddress -k
> >> > (mailRoutingAddress=%0)', `bounce', `preserve')dnl
> >> >
> >> > http://www.sendmail.org/m4/ldap_routing.html
> >> >
> >> >> # LDAP Related
> >> >> FEATURE(`ldap_routing')
> >> >> LDAPROUTE_DOMAIN(`panther.mydomain.com')
> >> >> define(`confLDAP_DEFAULT_SPEC', `-h localhost -b
> >> >> ou=Users,dc=mydomain,dc=com')
> >> >
> >> > --
> >> >
> >> > John Andrews
> >> > Systems Administrator
> >> > NPG Cable, Inc.
> >> > (816) 273-0337
> >> > johna at npgco.com
> >>
> >>
> >>
> >> ---
> >> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> >> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> >> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> >>
> >
> > --
> > Igor
>
>
>
>

-- 
Igor
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list