Sendmail and Cyrus IMAP - Real Time Integration

James Miller jimm at simutronics.com
Thu Aug 26 14:54:41 EDT 2004


Hello,

I'm trying to implement Andrzej Filip's Real Time Cyrus Integration Version
2 (sendmail,cyrus2) recipe to get sendmail to check whether a cyrus account
exists before accepting the message and I'm having a few problems.

I've setup the cyrus account 'jimm' and I can send messages to it via
sendmail just fine.  The version is cyrus is 2.2.8 and sendmail is 8.13.1.
Hopefully I'm just doing something silly but I'm abit confused about the
results I'm getting.


(I'm running the sendmail command as root).
mailbox:# sendmail -d60.5 -bv jimm at simutronics.com
map_lookup(dequote, jimm, %0=jimm) => NOT FOUND (0)
map_lookup(host, simutronics.com, %0=simutronics.com) => simutronics.com.
(0)
map_lookup(dequote, jimm, %0=jimm) => NOT FOUND (0)
jimm at simutronics.com... deliverable: mailer cyrusv2, user jimm

mailbox:# sendmail -d60.5 -bv blahvomadsf
map_lookup(dequote, jimm, %0=jimm) => NOT FOUND (0)
map_lookup(dequote, blahvomadsf, %0=blahvomadsf) => NOT FOUND (0)
blahvomadsf... deliverable: mailer cyrusv2, user blahvomadsf

mailbox:# sendmail -d60.5 -bv blahvomadsf at simutronics.com
map_lookup(dequote, jimm, %0=jimm) => NOT FOUND (0)
map_lookup(host, simutronics.com, %0=simutronics.com) => simutronics.com.
(0)
map_lookup(dequote, blahvomadsf, %0=blahvomadsf) => NOT FOUND (0)
blahvomadsf at simutronics.com... deliverable: mailer cyrusv2, user blahvomadsf

sendmail.mc
--------------
divert(-1)
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')
OSTYPE(linux)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
define(`QUEUE_DIR', `/var/spool/mqueue')dnl
QUEUE_GROUP(`slowmail', `P=/var/spool/mqueue/slow-queue')dnl
define(`confPRIVACY_FLAGS','goaway)dnl
FEATURE(virtusertable, hash -o /etc/mail/mbt.hash.db)dnl
FEATURE(dnsbl,`sbl-xbl.spamhaus.org', `Rejected - see
http://www.spamhaus.org/SBL/')dnl
FEATURE(dnsbl,`dnsbl.njabl.org', `Message from $&{client_addr} rejected -
see http://njabl.org/')dnl
FEATURE(`mailertable')dnl
# DOMAIN(generic)dnl
define(`confLOCAL_MAILER', `cyrusv2')dnl
FEATURE(`mrs')dnl
FEATURE(`mrs_cyrus')dnl
MODIFY_MAILER_FLAGS(`CYRUSV2', `-A5')dnl
MAILER(`cyrusv2')dnl
MAILER(`smtp')dnl
# Mimedefang
INPUT_MAIL_FILTER(`mimedefang',
`S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:5m;R:5m;E:5m')



site.config.m4
------------
APPENDDEF(`confENVDEF', `-UNIS')

dnl ### Additional things added
APPENDDEF(`confMAPDEF', `-DNSMAP -LDAPMAP -USERDB')
APPENDDEF(`confMAPDEF', `-DMAP_REGEX')
APPENDDEF(`confMAPDEF', `-DNEWDB')
APPENDDEF(`confMAPDEF', `-DSOCKETMAP')
define(`confLD', `ld')
define(`confMTCCOPTS', `-D_REENTRANT')
define(`confMTLDOPTS', `-lpthread')
define(`confLDOPTS_SO', `-shared')
define(`confSONAME',`-soname')

ifelse(confBLDVARIANT, `DEBUG',
dnl Debug build
`
        define(`confOPTIMIZE',`-g -Wall')
',
dnl Optimized build
confBLDVARIANT, `OPTIMIZED',
`
        define(`confOPTIMIZE',`-O2')
',
dnl Purify build
confBLDVARIANT, `PURIFY',
`
        define(`confOPTIMIZE',`-g')
',
dnl default
`
        define(`confOPTIMIZE',`-O2')
')


--------
mailertable entry

simutronics.com mrs_cyrus_mailertable:error:5.1.1:550 User unknown



Thanks,

James Miller
Systems & Network Administrator
Simutronics Corporation
www.play.net
636.946.4263 x113

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