Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2001 10:30:18 -0700
From:      Gregory Neil Shapiro <gshapiro@FreeBSD.ORG>
To:        "Alex Markov" <redrat@crpi.ru>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Sendmail + Cyrus: please, i need your help!
Message-ID:  <15210.57258.479756.780242@horsey.gshapiro.net>
In-Reply-To: <017e01c11c41$517d4260$c604b5d5@srg.ru>
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>

next in thread | previous in thread | raw e-mail | index | archive | 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');

redrat> 2. Is it necessary to have "local_lmtp" feature, then i use cyrus
redrat> mailer as my only local mailer? I don't see any difference with
redrat> this feature on/off.

No, you don't need it.

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.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15210.57258.479756.780242>