Cyrus and sendmail

Mike O'Rourke mjoop at curia.op.org
Thu Feb 12 11:43:41 EST 2004


>>> "David Brown strato" <dbrown at b-e-s-t-group.com> 02/12/04 04:24pm
>>>
FROM MIKE O'ROURKE:

Hi David,

The mailer definition that you are using in your cyrusv2.mc file is
for
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
use
"deliver", or check in /etc/cyrus.conf to see if you are starting the
lmtp service there.

HTH, Mike.
---
Home Page: http://asg.web.cmu.edu/cyrus 
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu 
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html 

***************************************

Mike,

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
source
now, but my failed results are below.

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

Please help!

David S. Brown



***** Creating myfile.mc *****

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

<<<<<<<<-- 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.



>>>>>>>>--snip-->>>>>>>>>>

***** 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

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



you should now add the following line:

lmtpsocket: /var/imap/socket/lmtp

to imapd.conf



>>>>>>>>>>--snip-->>>>>>>>>>

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

# standard standalone server implementation

START {
  # 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
/var/lib/imap/sockets
SERVICES {
  # 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"
prefork=1

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

EVENTS {
  # 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

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



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.


Mike.

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list