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