Hi folks, Sorry for bothering you. I found the solution for my problem just now! The point is to tell sendmail to pass _ALL_ mail that can't be deliverd locally to cyrus. So (see below) I inserted the line define(`LUSER_RELAY', `cyrus:localhost')dnl into my mc file and everything works fine. --------------------------------------------------------- VERSIONID(`@(#)mozart.mc based on main-v7sun.mc V1.0 03/04/2002') OSTYPE(solaris2)dnl DOMAIN(mydomain)dnl MAILER(local)dnl MAILER(smtp)dnl define(`confTO_IDENT',`0')dnl define(`LUSER_RELAY', `cyrus:localhost')dnl MAILER_DEFINITIONS Mcyrus, P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=FILE /var/imap/conf/socket/lmtp
LOCAL_RULE_0 Rbb + $+ < @ $=w . > $#cyrus $: + $1 --------------------------------------------------------- >================================================== > >How can I manage the delivery of mails based upon the existence (os/imap) of the user? > >Cyrus IMAPD is up and running (Solaris 8, Sun's sendmail 8.11.6). mailx -s test test_user works fine since test_user exists in cyrus (mailbox, sasldb entry..) mails -s test root returns 550 >"User unknown" (neither mailbox nor sasldb entry) > >Apr 10 19:05:24 mozart sendmail[2155]: [ID 801593 mail.info] g3AH5Og02155: to=root, delay=00:00:00, xdelay=00:00:00, mailer=cyrus, pri=30119, relay=localhost [[UNIX: /var/imap/conf/socket/lmtp]], dsn=5.1.1, stat=User unknown > >How can I tell sendmail to deliver mail "locally" (e.g. to /var/mail/<user>)iff the user exists at the os level and otherwise try an imap account? > >TIA >Markus > >================================ >name : Cyrus IMAPD >version : v2.1.3 2002/03/07 20:00:42 >vendor : Project Cyrus >support-url: http://asg.web.cmu.edu/cyrus >os : SunOS >os-version : 5.8 >environment: Cyrus SASL 2.1.2 > Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001) > > OpenSSL 0.9.6c [engine] 21 dec 2001 > CMU Sieve 2.1 > TCP Wrappers > lock = fcntl > auth = unix > idle = poll > mboxlist.db = db3 > subs.db = flat > seen.db = flat > duplicate.db = db3-nosync > tls.db = db3-nosync