Cyrus and sendmail

David Brown strato dbrown at
Tue Feb 10 09:45:49 EST 2004

sorry to confuse things with different users.  Same result whether I use my
account "dbrown" or other accounts "testuser" and  "debug".

-----Original Message-----
From: David Brown strato [mailto:dbrown at]
Sent: Dienstag, 10. Februar 2004 15:29
To: Andrzej Filip; info-cyrus at
Cc: tbecker at; dbrown at;
dbrown at; Artur Wystub
Subject: RE: Cyrus and sendmail

> ***** ERROR MESSAGE *****
> [root at SERVERNAME cyrus-imapd-2.1.16]# /etc/init.d/sendmail start
> sendmail starten: 554 5.0.0 No local mailer defined
> 554 5.0.0 QueueDirectory (Q) option must be set

Lack of QueueDirectory usually means that is an empty file or
badly wrong.

How to generate from *.mc file is described at

Andrzej [en:Andrew] Adam Filip backup:
anfi at


Thanks!  I've worked pretty much everything out (including building and restarting sendmail without errors), except my mail is still
not going to cyrus.  Notice the message below does not say "connecting to
cyrus".  My mail goes to /var/spool/mail instead.  I put a dummy message
into /var/spool/imap/d/user/dbrown and I can see the message in Outlook on a
workstation.  Now if I can only get incoming messages to go there!

I'd appreciate it if someone could check my configs and tell me where I went
wrong.  It must be something in these configs.  Simon said something about
using lmtp, but frankly I haven't a clue.  Please see below: test message,
imapd.conf,, steps to create

Thanks in advance for any advice from the list! Please reply all.

David S. Brown


***** Attempted Message *****

[testuser at ServerCharlie testuser]$ echo "Subject:
Testing 1 2 3" | /usr/lib/sendmail -v debug
debug... Connecting to [] via relay...
220 localhost.localdomain ESMTP Sendmail
8.12.8/8.12.8; Tue, 10 Feb 2004 13:56:54 +0100
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello ServerCharlie
[], pleased to meet you
250 HELP
>>> MAIL From:<testuser at localhost.localdomain> SIZE=23
250 2.1.0 <testuser at localhost.localdomain>... Sender
>>> RCPT To:<debug at localhost.localdomain>
>>> DATA
250 2.1.5 <debug at localhost.localdomain>... Recipient
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i1ACusib009128 Message accepted for delivery
debug... Sent (i1ACusib009128 Message accepted for
Closing connection to []
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
[testuser at ServerCharlie testuser]$

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

[root at ServerCharlie root]# cat /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
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
[root at ServerCharlie root]#

***** sendmail source config file *****

[root at ServerCharlie cf]# cat
#       (C) Copyright 2000 by Carnegie Mellon
#       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:,v 1.4 2001/08/23 23:26:56 leg Exp $
VERSIONID('cyrus configuration for redhat linux')


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

dnl if you aren't using Sendmail 8.12, you might need
to remove
dnl the following feature.



Mcyrus,         P=/usr/lib/cyrus-imapd/deliver,
F=lsDFMnqA@/:|SmXz, E=\r\n,
                S=EnvFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/X-Unix, U=cyrus:mail,
                A=deliver -m $h -- $u

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

[root at ServerCharlie cf]#

***** Steps to build *****

1) Edit

2) m4 it:
[root at ServerCharlie cf]# m4

/usr/share/sendmail-cf/m4/cf.m4 >

3) Copy resulting file to

[root at ServerCharlie cf]# cp
cp: >/etc/mail/< uberschreiben? j

4) Restart sendmail:

[root at ServerCharlie cf]# /etc/init.d/sendmail stop;
/etc/init.d/sendmail start
sendmail herunterfahren:
    [  OK  ]
sm-client herunterfahren:
    [  OK  ]
sendmail starten:
    [  OK  ]
sm-client starten:
    [  OK  ]
[root at ServerCharlie cf]#

Home Page:
List Archives/Info:

More information about the Info-cyrus mailing list