Cyrus and sendmail

David Brown strato dbrown at b-e-s-t-group.com
Thu Feb 12 13:06:29 EST 2004


Mike,

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, generic-linux.mc for example?

Thanks!

David

[root at ServerCharlie cf]# ls
Build           cyrusproto.cf      generic-hpux9.cf   
    generic-osf1.mc      mail.cs.mc      
s2k-ultrix4.mc
chez.cs.mc      cyrusproto.mc      generic-hpux9.mc   
    generic-solaris.cf   mail.eecs.mc     submit.cf
clientproto.mc  cyrusv2.cf         generic-linux.cf   
    generic-solaris.mc   mailspool.cs.mc  submit.mc
cs-hpux10.mc    cyrusv2.mc         generic-linux.mc   
    generic-sunos4.1.cf  Makefile         tcpproto.mc
cs-hpux9.mc     cyrusv2.mc.old     generic-mpeix.cf   
    generic-sunos4.1.mc  myfile.cf        ucbarpa.mc
cs-osf1.mc      generic-bsd4.4.cf  generic-mpeix.mc   
    generic-ultrix4.cf   myfile.mc        ucbvax.mc
cs-solaris2.mc  generic-bsd4.4.mc 
generic-nextstep3.3.cf  generic-ultrix4.mc  
python.cs.mc     uucpproto.mc
cs-sunos4.1.mc  generic-hpux10.cf 
generic-nextstep3.3.mc  huginn.cs.mc         README   
       vangogh.cs.mc
cs-ultrix4.mc   generic-hpux10.mc  generic-osf1.cf    
    knecht.mc            s2k-osf1.mc
[root at ServerCharlie cf]# cat generic-linux.mc
divert(-1)
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its
suppliers.
#       All rights reserved.
# Copyright (c) 1983 Eric P. Allman.  All rights
reserved.
# 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.
#
 
divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24
22:48:05 gshapiro Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl

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




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


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