Cyrus IMAP, sendmail and LDAP

AJ aj at mindcrash.com
Thu Jul 8 13:12:54 EDT 2004


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 <lists at davey.net.au>:

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




More information about the Info-cyrus mailing list