Re: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread AJ
John,
  Thanks again, I wound up just using the socket map option w/ cyrus 
and sendmail, which seems to be working well for me.
Apparently, you can't have an aliases file and ldap_routing unless your 
aliases are in an ldap map.

AJ
John Arthur wrote:
Ok, so I recompiled sendmail w/ LDAP support..
Here are the relavent parts of my mc file:
define(`confLOCAL_MAILER', `cyrusv2')
define(`CYRUSV2_MAILER_ARGS', `FILE /var/cyrus/imap/socket/lmtp')
# LDAP Related
FEATURE(`ldap_routing')
LDAPROUTE_DOMAIN(`panther.mydomain.com')
define(`confLDAP_DEFAULT_SPEC', `-h localhost -b
ou=Users,dc=mydomain,dc=com')

define(`confLDAP_DEFAULT_SPEC', `-h localhost -b
ou=Users,dc=mydomain,dc=com')
LDAPROUTE_DOMAIN(`panther.mydomain.com')
dnl # LDAPROUTE_DOMAIN_FILE(`/etc/mail/LDAP-Routing')
FEATURE(`ldap_routing',,,`bounce',`preserve')
---
You have not configured Sendmail to bounce addresses that are not in LDAP. I
also like to preserver '+' addresses
John

---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread John Arthur
> Ok, so I recompiled sendmail w/ LDAP support..
> Here are the relavent parts of my mc file:
>
> define(`confLOCAL_MAILER', `cyrusv2')
> define(`CYRUSV2_MAILER_ARGS', `FILE /var/cyrus/imap/socket/lmtp')
>
> # LDAP Related
> FEATURE(`ldap_routing')
> LDAPROUTE_DOMAIN(`panther.mydomain.com')
> define(`confLDAP_DEFAULT_SPEC', `-h localhost -b
> ou=Users,dc=mydomain,dc=com')
>

define(`confLDAP_DEFAULT_SPEC', `-h localhost -b
ou=Users,dc=mydomain,dc=com')
LDAPROUTE_DOMAIN(`panther.mydomain.com')
dnl # LDAPROUTE_DOMAIN_FILE(`/etc/mail/LDAP-Routing')
FEATURE(`ldap_routing',,,`bounce',`preserve')

---
You have not configured Sendmail to bounce addresses that are not in LDAP. I
also like to preserver '+' addresses

John



---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread Igor Brezac

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 <[EMAIL PROTECTED]>:
>
> > 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 <[EMAIL PROTECTED]>:
> >>
> >> > You will want to have something similar to this for ldap_routing.
> >> >
> >> > FEATURE(`ldap_routing', `ldap -1 -T -v mailHost -k
> >> > (mailLocalAddress=%0)', `ldap -1 -T -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
> >> > [EMAIL PROTECTED]
> >>
> >>
> >>
> >> ---
> >> 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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread AJ
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?
Quoting Igor Brezac <[EMAIL PROTECTED]>:
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 <[EMAIL PROTECTED]>:
> You will want to have something similar to this for ldap_routing.
>
> FEATURE(`ldap_routing', `ldap -1 -T -v mailHost -k
> (mailLocalAddress=%0)', `ldap -1 -T -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
> [EMAIL PROTECTED]

---
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

---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread Igor Brezac

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 <[EMAIL PROTECTED]>:
>
> > You will want to have something similar to this for ldap_routing.
> >
> > FEATURE(`ldap_routing', `ldap -1 -T -v mailHost -k
> > (mailLocalAddress=%0)', `ldap -1 -T -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
> > [EMAIL PROTECTED]
>
>
>
> ---
> 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
---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread Igor Brezac

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 <[EMAIL PROTECTED]>:
>
> > You will want to have something similar to this for ldap_routing.
> >
> > FEATURE(`ldap_routing', `ldap -1 -T -v mailHost -k
> > (mailLocalAddress=%0)', `ldap -1 -T -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
> > [EMAIL PROTECTED]
>
>
>
> ---
> 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
---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread AJ
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.
Thanks again for all of your help.
AJ
Quoting John Andrews <[EMAIL PROTECTED]>:
You will want to have something similar to this for ldap_routing.
FEATURE(`ldap_routing', `ldap -1 -T -v mailHost -k
(mailLocalAddress=%0)', `ldap -1 -T -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
[EMAIL PROTECTED]

---
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread Andrzej Filip
AJ wrote:
Ok, so I recompiled sendmail w/ LDAP support..
Here are the relavent parts of my mc file:
define(`confLOCAL_MAILER', `cyrusv2')
define(`CYRUSV2_MAILER_ARGS', `FILE /var/cyrus/imap/socket/lmtp')
# LDAP Related
FEATURE(`ldap_routing')
LDAPROUTE_DOMAIN(`panther.mydomain.com')
define(`confLDAP_DEFAULT_SPEC', `-h localhost -b 
ou=Users,dc=mydomain,dc=com')

#
# The mailer definitions
#
MAILER(`cyrusv2')
MAILER(`local')
MAILER(`smtp')
It looks like sendmail is still delivering via cyrus mailer, it accepts the
message even if the account does not exist in ldap.
What am I doing wrong?

You have not specified that sendmail should bounce messages to addresses 
without ldap_routing entries:

FEATURE(`ldap_routing',,,`bounce')
http://www.sendmail.org/m4/ldap_routing.html
--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread John Andrews
You will want to have something similar to this for ldap_routing.

FEATURE(`ldap_routing', `ldap -1 -T -v mailHost -k
(mailLocalAddress=%0)', `ldap -1 -T -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
[EMAIL PROTECTED]

---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-08 Thread AJ
Ok, so I recompiled sendmail w/ LDAP support..
Here are the relavent parts of my mc file:
define(`confLOCAL_MAILER', `cyrusv2')
define(`CYRUSV2_MAILER_ARGS', `FILE /var/cyrus/imap/socket/lmtp')
# LDAP Related
FEATURE(`ldap_routing')
LDAPROUTE_DOMAIN(`panther.mydomain.com')
define(`confLDAP_DEFAULT_SPEC', `-h localhost -b ou=Users,dc=mydomain,dc=com')
#
# The mailer definitions
#
MAILER(`cyrusv2')
MAILER(`local')
MAILER(`smtp')
It looks like sendmail is still delivering via cyrus mailer, it accepts the
message even if the account does not exist in ldap.
What am I doing wrong?
Thanks.
AJ


Quoting John Arthur <[EMAIL PROTECTED]>:
Thanks.. is there any LDAP attribute that will tell sendmail what server
and cyrus mailbox to deliver to.
Yes,
mailLocalAddress   -- Addresses to accept email to (as many as you want)
mailRoutingAddress -- The address to send the mail to
mailHost -- The host to deliver mail to
It seems that using ldap routing w/
mailLocalAddress and mailHost will cause a loop if everything is all one
one server.
You're not giving Sendmail enough credit ;-)
IF mailHost == local-host-name sendmail delivers localy. No loop.
John

---
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread Andrzej Filip
AJ wrote:
Thanks.  I have reviewed the sendmail page numerous times, but my 
question is what is the difference between the way I have things set up 
now, i.e just using cyrus as a local mailer, as opposed to ldap_routing.
I am not sure why one would go one way or the other, just trying to 
clarify.
Using cyrus as local mailer makes sendmail accept messages to non existing 
cyrus mailboxes (accept now, send bounce later) UNLESS you use RTCyrus2.

http://anfi.homeunix.net/sendmail/rtcyrus2.html
I personnaly suggest keeping mailbox data in one place (LDAP). It allows to 
avoid "lost data synchronization" problem. "Inbox autocreate" patch simplifies 
further the administration.

P.S. Some spammers send "dictionary recipient" spam so "accept now, send 
bounce later" may consume a lot of your server resources and keep a lot of 
bounce messages in your server queue.

--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread AJ
Thanks, I understand, but now, how can I go about setting up 
sendmail/ldap to deliver to my cyrus server, which happens to be the 
same name as my sendmail server.. i.e.:

server name is:   rabbit.domain.com
my email address is:   [EMAIL PROTECTED]
I have an ldap entry for the user john.smith, and a cyrus mailbox for 
the user john.smith.
If I set up ldap w/ a mailHost of rabbit.domain.com and a 
mailLocalAddress or mailRoutingAddress of [EMAIL PROTECTED], 
won't it just loop?  How can I configure sendmail to deliver to my cyrus 
box on the same system.  Am I missing an ldap attribute?

Thanks.
AJ
John Arthur wrote:
The way you have it setup now Sendmail accepts all mail before trying to
deliver it via cyrus (just like most secondary and some primary mx servers
do). So if I send 1000 emails to non existant users your sendmail will
accept them all (regardless of weather they exist or not) before trying to
deliver them to cyrus. Because I'm a spammer I've used fake return addresses
so you now have 1000 bounces sitting in your mail queue (which Sendmail
keeps trying to resend every hour)until they expire putting a strain on your
resources.
Every time I have setup LDAP routing for a domain (primarily on the mx
servers but also on the cyrus system) it has resulted in a 80% to 90%
reduction in mail traffic and server load.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of AJ
Sent: Thursday, 8 July 2004 8:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Cyrus IMAP, sendmail and LDAP
Thanks.  I have reviewed the sendmail page numerous times, but my
question is what is the difference between the way I have things set up
now, i.e just using cyrus as a local mailer, as opposed to ldap_routing.
I am not sure why one would go one way or the other, just trying to clarify.
Thanks.
AJ
Andrzej Filip wrote:
AJ wrote:

My setup is cyrus, sendmail and openldap for all users data.
The way I have things set up now is sendmail use cyrus local mailer,
and is not compile w/ LDAP support, so if a mailbox does not exist in
cyrus,   it gets bounced.  Sendmail does not do user/mailbox lookups
via LDAP.
This seems to work ok, but on the net I have been reading most people
set up sendmail to look at ldap for users, rather than cyrus.
Can some people share their setups on how they implement these three
together?

* LDAP ROUTING (sendmail)
http://www.sendmail.org/m4/ldap_routing.html
*  Autocreate INBOX patch for Cyrus
http://email.uoa.gr/projects/cyrus/autocreate/index.html
---
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
---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread John Arthur
> Thanks.. is there any LDAP attribute that will tell sendmail what server 
> and cyrus mailbox to deliver to.  

Yes,
mailLocalAddress   -- Addresses to accept email to (as many as you want)
mailRoutingAddress -- The address to send the mail to
mailHost -- The host to deliver mail to

>It seems that using ldap routing w/
> mailLocalAddress and mailHost will cause a loop if everything is all one 
> one server.

You're not giving Sendmail enough credit ;-)

IF mailHost == local-host-name sendmail delivers localy. No loop.

John 
---
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


RE: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread John Arthur
The way you have it setup now Sendmail accepts all mail before trying to
deliver it via cyrus (just like most secondary and some primary mx servers
do). So if I send 1000 emails to non existant users your sendmail will
accept them all (regardless of weather they exist or not) before trying to
deliver them to cyrus. Because I'm a spammer I've used fake return addresses
so you now have 1000 bounces sitting in your mail queue (which Sendmail
keeps trying to resend every hour)until they expire putting a strain on your
resources.

Every time I have setup LDAP routing for a domain (primarily on the mx
servers but also on the cyrus system) it has resulted in a 80% to 90%
reduction in mail traffic and server load.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of AJ
Sent: Thursday, 8 July 2004 8:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Cyrus IMAP, sendmail and LDAP


Thanks.  I have reviewed the sendmail page numerous times, but my
question is what is the difference between the way I have things set up
now, i.e just using cyrus as a local mailer, as opposed to ldap_routing.
I am not sure why one would go one way or the other, just trying to clarify.

Thanks.
AJ

Andrzej Filip wrote:
> AJ wrote:
>
>>  My setup is cyrus, sendmail and openldap for all users data.
>> The way I have things set up now is sendmail use cyrus local mailer,
>> and is not compile w/ LDAP support, so if a mailbox does not exist in
>> cyrus,   it gets bounced.  Sendmail does not do user/mailbox lookups
>> via LDAP.
>> This seems to work ok, but on the net I have been reading most people
>> set up sendmail to look at ldap for users, rather than cyrus.
>> Can some people share their setups on how they implement these three
>> together?
>
>
> * LDAP ROUTING (sendmail)
> http://www.sendmail.org/m4/ldap_routing.html
> *  Autocreate INBOX patch for Cyrus
> http://email.uoa.gr/projects/cyrus/autocreate/index.html
>
---
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

---
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread Igor Brezac

On Thu, 8 Jul 2004, Andrzej Filip wrote:

> AJ wrote:
> >  My setup is cyrus, sendmail and openldap for all users data.
> > The way I have things set up now is sendmail use cyrus local mailer, and
> > is not compile w/ LDAP support, so if a mailbox does not exist in cyrus,
> >   it gets bounced.  Sendmail does not do user/mailbox lookups via LDAP.
> > This seems to work ok, but on the net I have been reading most people
> > set up sendmail to look at ldap for users, rather than cyrus.
> > Can some people share their setups on how they implement these three
> > together?
>
> * LDAP ROUTING (sendmail)
> http://www.sendmail.org/m4/ldap_routing.html
> *  Autocreate INBOX patch for Cyrus
> http://email.uoa.gr/projects/cyrus/autocreate/index.html
>

You can also use ldap for virtuser/mailer maps.

-- 
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread AJ
Thanks.. is there any LDAP attribute that will tell sendmail what server 
and cyrus mailbox to deliver to.  It seems that using ldap routing w/
mailLocalAddress and mailHost will cause a loop if everything is all one 
one server.

AJ
Wil Cooley wrote:
On Wed, 2004-07-07 at 15:51, AJ wrote:
Thanks.  I have reviewed the sendmail page numerous times, but my 
question is what is the difference between the way I have things set up 
now, i.e just using cyrus as a local mailer, as opposed to ldap_routing.
I am not sure why one would go one way or the other, just trying to clarify.

If you use LDAP routing (or any other form of recipient verification)
you can reject bogus messages during the SMTP conversation.  Puts less
work on your server and your postmaster, because he doesn't have to deal
with the double-bounces caused by viruses and spammers sending mail to a
non-existent address from a non-existent address.
Wil
---
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread Wil Cooley
On Wed, 2004-07-07 at 15:51, AJ wrote:
> Thanks.  I have reviewed the sendmail page numerous times, but my 
> question is what is the difference between the way I have things set up 
> now, i.e just using cyrus as a local mailer, as opposed to ldap_routing.
> I am not sure why one would go one way or the other, just trying to clarify.

If you use LDAP routing (or any other form of recipient verification)
you can reject bogus messages during the SMTP conversation.  Puts less
work on your server and your postmaster, because he doesn't have to deal
with the double-bounces caused by viruses and spammers sending mail to a
non-existent address from a non-existent address.

Wil
-- 
Wil Cooley [EMAIL PROTECTED]
Naked Ape Consultinghttp://nakedape.cc



signature.asc
Description: This is a digitally signed message part


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread AJ
Basically, i have sendmail, cyrus and ldap all on the same box, so
I am not sure I need ldap routing in sendmail.
What do you think?
Andrzej Filip wrote:
> AJ wrote:
>
>>  My setup is cyrus, sendmail and openldap for all users data.
>> The way I have things set up now is sendmail use cyrus local mailer,
>> and is not compile w/ LDAP support, so if a mailbox does not exist in
>> cyrus,   it gets bounced.  Sendmail does not do user/mailbox lookups
>> via LDAP.
>> This seems to work ok, but on the net I have been reading most people
>> set up sendmail to look at ldap for users, rather than cyrus.
>> Can some people share their setups on how they implement these three
>> together?
>
>
> * LDAP ROUTING (sendmail)
> http://www.sendmail.org/m4/ldap_routing.html
> *  Autocreate INBOX patch for Cyrus
> http://email.uoa.gr/projects/cyrus/autocreate/index.html
>
---
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread AJ
Thanks.  I have reviewed the sendmail page numerous times, but my 
question is what is the difference between the way I have things set up 
now, i.e just using cyrus as a local mailer, as opposed to ldap_routing.
I am not sure why one would go one way or the other, just trying to clarify.

Thanks.
AJ
Andrzej Filip wrote:
AJ wrote:
 My setup is cyrus, sendmail and openldap for all users data.
The way I have things set up now is sendmail use cyrus local mailer, 
and is not compile w/ LDAP support, so if a mailbox does not exist in 
cyrus,   it gets bounced.  Sendmail does not do user/mailbox lookups 
via LDAP.
This seems to work ok, but on the net I have been reading most people 
set up sendmail to look at ldap for users, rather than cyrus.
Can some people share their setups on how they implement these three 
together?

* LDAP ROUTING (sendmail)
http://www.sendmail.org/m4/ldap_routing.html
*  Autocreate INBOX patch for Cyrus
http://email.uoa.gr/projects/cyrus/autocreate/index.html
---
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


Re: Cyrus IMAP, sendmail and LDAP

2004-07-07 Thread Andrzej Filip
AJ wrote:
 My setup is cyrus, sendmail and openldap for all users data.
The way I have things set up now is sendmail use cyrus local mailer, and 
is not compile w/ LDAP support, so if a mailbox does not exist in cyrus, 
  it gets bounced.  Sendmail does not do user/mailbox lookups via LDAP.
This seems to work ok, but on the net I have been reading most people 
set up sendmail to look at ldap for users, rather than cyrus.
Can some people share their setups on how they implement these three 
together?
* LDAP ROUTING (sendmail)
http://www.sendmail.org/m4/ldap_routing.html
*  Autocreate INBOX patch for Cyrus
http://email.uoa.gr/projects/cyrus/autocreate/index.html
--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
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