From owner-freebsd-questions Fri Aug 3 11:12:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns.crpi.ru (ns.crpi.ru [213.181.4.137]) by hub.freebsd.org (Postfix) with ESMTP id 74ACF37B405; Fri, 3 Aug 2001 11:12:25 -0700 (PDT) (envelope-from redrat@crpi.ru) Received: from redrat ([213.181.4.198]) (authenticated) by ns.crpi.ru (8.11.3/8.11.3) with ESMTP id f73I9rf03670 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO); Fri, 3 Aug 2001 22:12:23 +0400 (MSD) (envelope-from redrat@crpi.ru) Message-ID: <01b701c11c47$f2bccdc0$c604b5d5@srg.ru> From: "Alex Markov" To: "Gregory Neil Shapiro" Cc: References: <001301c115c4$bf185220$c604b5d5@srg.ru><15206.9647.587901.404247@horsey.gshapiro.net><009901c119dd$2ca0ff60$c604b5d5@srg.ru><15207.32991.969603.67883@horsey.gshapiro.net><017e01c11c41$517d4260$c604b5d5@srg.ru> <15210.57258.479756.780242@horsey.gshapiro.net> Subject: Re: Sendmail + Cyrus: please, i need your help! Date: Fri, 3 Aug 2001 22:10:32 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Fidolook Express 2.000 for MS OE5 Organization: Fidolook Express 2.000 www.fidolook.da.ru Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Gregory Neil Shapiro" To: "Alex Markov" Cc: Sent: Friday, August 03, 2001 9:30 PM Subject: Re: Sendmail + Cyrus: please, i need your help! > redrat> 1. First of all, if i 'make all' in /etc/mail, then resulting .cf has > redrat> ";" symbol in 69th line, that cause sendmail to fail on reloading > redrat> it's configuration. I forced to manually remove this symbol from > redrat> sendmail.cf. This is repeatable behaviour, so may be it is concerned > redrat> with m4 processing of .mc files? > > Look at your .mc file, specifically this line: > > define(`confTO_IDENT', `0'); Yes, this is the cause of problem! If i comment this line out, the ";" symbol disappears. Is there any workaround for this? > redrat> 3. LUSER_RELAY option still not working. If i send mail to fake > redrat> user, it returns back to me, not to postmaster, as desired. What > redrat> can i do to resolve this problem? > > That is one of the downsides of using Cyrus. I've done this at other sites > (your mileage may vary): > > LOCAL_CONFIG > Kcyrususer text -m -k 2 -v 2 /var/imap/mailboxes > > LOCAL_RULESETS > # if there's a plus part, we want to directly deliver it > SLocal_localaddr > R$* $: < > $1 > R< > $+ + $* $: < $1 > < $2 > > R< > $+ $: < $1 > < > > R< > $* $@ bogus > R< $+ > < $*> $: < $(cyrususer $1 $: postmaster $) > < $2 > > R< postmaster > < $+> $#cyrus $@ $: postmaster > R< $+ > < $+> $#cyrus $@ $: $1 + $2 > R< $+ > < > $#cyrus $@ $: $1 > > > Note that you don't need to set LUSER_RELAY for this and postmaster will > get unknown user's mail. Finally, the MTA needs to be able to read > /var/imap/mailboxes (e.g., chmod 0644 /var/imap/mailboxes). Be sure cyrus > doesn't set the permissions back when you use cyradm. Thank a lot! I'll try it tomorrow! -- Alexey Markov. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message