Cyrus and sendmail

David Brown strato dbrown at
Thu Feb 12 13:06:29 EST 2004


Before I take too long on this, I should ask:  Which
old .mc file? Frankly, I'm not sure at this point.  I
have about 50 files in my /cf directory (see below). 
Should this be a short one I build myself, or one of
the prototypes, for example?



[root at ServerCharlie cf]# ls
Build   Makefile         README   
[root at ServerCharlie cf]# cat
# Copyright (c) 1998, 1999 Sendmail, Inc. and its
#       All rights reserved.
# Copyright (c) 1983 Eric P. Allman.  All rights
# Copyright (c) 1988, 1993
#       The Regents of the University of California. 
All rights reserved.
# By using this file, you agree to the terms and
conditions set
# forth in the LICENSE file which can be found at the
top level of
# the sendmail distribution.
#  This is a generic configuration file for Linux.
#  It has support for local and SMTP mail only.  If
you want to
#  customize it, copy it to a name appropriate for
your environment
#  and do the modifications there.
VERSIONID(`$Id:,v 8.1 1999/09/24
22:48:05 gshapiro Exp $')



Trying not burden this group with my newbie questions.  I'm new to
Linux and do not have a programming background.  I'm using the right
now, but my failed results are below.

It must be something in the source configuration, which I copied from
cyrusv2.m4 file and tried to customiye in a files I've called

Please help!

David S. Brown

***** Creating *****

[root at ServerCharlie cf]# cp /usr/share/sendmail-cf/mailer/cyrusv2.m4
cp: A>myfile.mcA< A?berschreiben? j
[root at ServerCharlie cf]# ./Build
Using M4=/usr/bin/m4
rm -f
/usr/bin/m4 ../m4/cf.m4 > || ( rm -f &&
exit 1 )
chmod 444

<<<<<<<<-- snip --<<<<<<<<<

Hi David,

The cyrusv2.m4 goes at the _end_ of your .mc file, not in its place.
You need to get back your old .mc file, edit it and remove the cyrus
definition at the end of it, if it is there and put the contents of
mailer/cyrusv2.m4 at the end. Then make and install a new .cf.

There should be a line in the new .cf file that begins with "Mcyrusv2"
now. If there is, you should be all set.


***** imapd.conf *****

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus root
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt


you should now add the following line:

lmtpsocket: /var/imap/socket/lmtp

to imapd.conf


***** cyrus.conf *****

# standard standalone server implementation

  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
#  idled                cmd="idled"

# UNIX sockets start with a slash and are put into
  # add or remove based on preferences
  imap          cmd="imapd" listen="imap" prefork=5
  imaps         cmd="imapd -s" listen="imaps" prefork=1
  pop3          cmd="pop3d" listen="pop3" prefork=3
  pop3s         cmd="pop3d -s" listen="pop3s" prefork=1
  sieve         cmd="timsieved" listen="sieve" prefork=0

  # at least one LMTP is required for delivery
  lmtp          cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp"

  # this is only necessary if using notifications
#  notify       cmd="notifyd" listen="/var/lib/imap/socket/notify"
proto="udp" prefork=1

  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression
  delprune      cmd="ctl_deliver -E 3" at=0400


Unless you need a tcp socket listening on lmtp (sendmail host and cyrus
host on different machines), I would comment out the
"lmtp	cmd="lmtpd" listen="lmtp" prefork=0" line and have only
the lmtpunix active.


Home Page:
List Archives/Info:

Home Page:
List Archives/Info:

More information about the Info-cyrus mailing list