From owner-freebsd-questions@FreeBSD.ORG Wed May 7 04:34:18 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73A9137B401 for ; Wed, 7 May 2003 04:34:18 -0700 (PDT) Received: from smtp0.adl1.internode.on.net (smtp0.adl1.internode.on.net [203.16.214.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49CF843F85 for ; Wed, 7 May 2003 04:34:17 -0700 (PDT) (envelope-from chrisric@internode.on.net) Received: from rocko (ppp1332.nsw.padsl.internode.on.net [150.101.112.51]) h47BYFsu099272 for ; Wed, 7 May 2003 21:04:15 +0930 (CST) From: "Chris Richards" To: Date: Wed, 7 May 2003 21:34:14 +1000 Message-ID: <004001c3148c$96968650$020a0a0a@rocko> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Sendmail & Cyrus IMAP, .mc file help please X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2003 11:34:18 -0000 Hiya, I recently installed Cyrus IMAP and it's working fine :) What I need help with is the sendmail ".mc" file - I done some research on how to get it to deliver to cyrus if the recipient wasn't in a local file (sendmail.cN - so root (and others) isn't a imap account) There is only one problem... I don't know much at all about sendmail, I pretty much just merged the 2 example files. Can someone please point me in the right direction? When I try to run sendmail I get the error: sendmail553 5.0.0 /etc/mail/sendmail.cf: line 989: < @ w... Unbalanced '<' 554 5.0.0 /etc/mail/sendmail.cf: line 989: Inappropriate use of $= on RHS Line 989 is: R$=N < @ $=w . > $: $#local $: $1 Help! :) Thank you! Regards, Chris --------------------------------------------------- spunky.mc - my .mc file, maybe I have something out of order? --------------------------------------------------- # divert(-1) # Custom MC file for host spunky divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.16 2002/05/22 16:39:14 gshapiro Exp $') OSTYPE(freebsd4) DOMAIN(generic) dnl from Cyrus sample .mc dnl if you aren't using Sendmail 8.12, you might need to remove dnl the following feature. FEATURE(`preserve_local_plus_detail') FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') dnl from Cyrus sample .mc FEATURE(`nocanonify') FEATURE(`always_add_domain') dnl from Cyrus sample .mc dnl setting cyrus as the trusted user will make it easier to pass dnl Sendmail's safefile checks. however, it means that someone with the dnl "cyrus" password could easily become root. dnl define(`confTRUSTED_USER', `cyrus') dnl from Cyrus sample .mc dnl define(`confBIND_OPTS',`-DNSRCH -DEFNAMES') dnl define(`confTO_IDENT',`0') dnl from Cyrus sample .mc define(`confLOCAL_MAILER', `cyrus') define(`confCW_FILE', `-o /etc/mail/local-host-names') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') define(`confMAX_MIME_HEADER_LENGTH', `256/128') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') dnl from Cyrus sample .mc MAILER_DEFINITIONS Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=FILE /usr/local/cyrus/imap/socket/lmtp MAILER(local) MAILER(smtp) LOCAL_RULE_0 R$=N $: $#local $: $1 R$=N < @ $=w . > $: $#local $: $1 Rbb + $+ < @ $=w . > $#cyrus $: + $1 LOCAL_CONFIG FN /etc/mail/sendmail.cN