only half of the problem solved -- cyrus deliver slow

William K. Hardeman wont-i at wkh.org
Wed Sep 18 15:10:46 EDT 2002


Su,

According to the documentation (and my limited experience), for Sendmail, 
you'll want to use one of the following in your sendmail.mc file to 
generate the proper sendmail.cf lines, depending on your version of Cyrus 
Imapd and Sendmail.

For Cyrus Imapd 2.x.x with Sendmail 8.11.x (doc/cyrusv2.mc file):

-------------------<cut here>------------------

# divert(-1)
#
#       (C) Copyright 2000 by Carnegie Mellon University
#
#       This sample mc file is for a site that uses the Cyrus IMAP server
#       exclusively for local mail. This requires Sendmail 8.10 or later.
#
# $Id: cyrusv2.mc,v 1.3 2000/09/09 04:02:11 leg Exp $

divert(0)dnl
VERSIONID(`cyrus v2 sample configuartion')

OSTYPE(linux)
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
define(`confTO_IDENT',`0')

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

define(`confLOCAL_MAILER', `cyrus')

FEATURE(`nocanonify')
FEATURE(`always_add_domain')
MAILER(`local')
MAILER(`smtp')

MAILER_DEFINITIONS
Mcyrus,	P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
			S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
			A=FILE /var/imap/socket/lmtp

LOCAL_RULE_0
Rbb + $+ < @ $=w . >	$#cyrus $: + $1

-----------------<cut here>-------------

For Cyrus Imapd 2.1.x (and possibly 2.0.x) with Sendmail 8.12.4 and above, 
use the cyrusv2 mailer definition in the Sendmail distribution 
(doc/install-configure.html):

---------------<cut here>--------------

define(`confLOCAL_MAILER', `cyrusv2')
MAILER(`cyrusv2')

--------------<cut here>--------------

These entries will deliver directly to the lmtp socket.

Hope this helps,
Will

--On Wednesday, 18 September, 2002 14:42 -0400 Su Li <sli at rim.net> wrote:

> Thanks Scott,
>
> I am thinking of switching to postfix. I hear a few things about it too.
> Maybe I have to bug you some later time. But the bottle neck right now
> seems like the imap server.
>
> For "enable lmtpunix", I tried add the following line to imapd.conf:
> lmtpsocket: /var/imap/socket/lmtp
>
> But I still get: " cyrus  9425  9418  0 14:28 ? 00:00:00 deliver -e -m  --
> loadtest641".
>
> There must be something else I need to change to enable lmtpunix, and not
> to use /cyrus/bin/deliver.
> Should I do something in sendmail config file -- in your case postfix
> config file?
>
>
>
> Any one knows how to set up sendmail for lmtp socket delivery so that I
> don't get lots a deliver -e -m in the system?
>
>
> Thanks,
>
> Su
>
>
> -----Original Message-----
> From: Scott Russell [mailto:lnxgeek at us.ibm.com]
> Sent: September 18, 2002 2:00 PM
> To: Su Li
> Cc: 'Lawrence Greenfield'; info-cyrus at lists.andrew.cmu.edu
> Subject: Re: only half of the problem solved -- cyrus deliver slow
>
>
> On Wed, Sep 18, 2002 at 01:23:08PM -0400, Su Li wrote:
>> I tried set sendmail configuration to deliverymode=queue. and use
> "sendmail
>> -db" and "sendmail -q1s". I got the same through put. I using sendmail
>> 8.11.6, will that effect the through put the email delivery of cyrus
>> imap?
>
>>
>> I did went through the configuration of sendmail about cyrus. But I still
>> get:
>>
>> cyrus     3645  3644  0 13:17 ?        00:00:00 deliver -e -m  --
>> loadtest510
>>
>> Is that the process that you was talking about, which is not good for
>> performance? If yes, what should I change?
>
> I'm not a sendmail user, I use postfix instead. It's easier to
> configure and maintain. It's well supported, has an active mailing
> list, good docs,  and in general it 'just works'.
>
> If you're spawning /usr/cyrus/bin/deliver processes as it appears in
> your ps listing then yes, that's going to hurt you.
>
> In your cyrus.conf enable lmtpunix: socket and configure sendmail to
> deliver directly to the socket, not use the deliver binary.
>
> If you want to switch to postfix let me know. I'll help you configure
> it. For sendmail you should ask someone else on this list, or the
> sendmail list, how to setup sendmail for lmtp socket delivery.
>
> --
>   Scott Russell (lnxgeek at us.ibm.com)
>   Linux Technology Center, System Admin, RHCE.
>   Dial 877-735-8200 then ask for 919-543-9289 (TTY)



----------------------------------------------------------------------------
William K. Hardeman
wont-i at wkh.org
http://www.wkh.org

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
                -- Isaac Asimov

Always listen to experts. They'll tell you what can't be done and why. Then
do it.
--Robert A. Heinlein




More information about the Info-cyrus mailing list