Cyrus and sendmail

Mike O'Rourke mjoop at
Thu Feb 12 11:43:41 EST 2004

>>> "David Brown strato" <dbrown at> 02/12/04 04:24pm

Hi David,

The mailer definition that you are using in your file is
cyrus version 1. You need to use the mailer definitions from
/path/to/sendmail/source/cf/mailer/cyrusv2.m4; you have those from
/path/to/sendmail/source/cf/mailer/cyrus.m4 instead.

One precaution: you are using the "deliver" program for mail delivery
to cyrus (the default with version 1). The cyrusv2 mailer definition
uses lmtp instead, which, I believe, is the preferred method. You will
need to change this if there is a particular reason that you want to
"deliver", or check in /etc/cyrus.conf to see if you are starting the
lmtp service there.

HTH, Mike.
Home Page: 
List Archives/Info: 



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:

More information about the Info-cyrus mailing list