Shared folders
Kent Nasveschuk
kent at mail.wareham.mec.edu
Tue Aug 17 08:58:27 EDT 2004
Hello,
I've been trying to get Cyrus IMAP to work with sendmail for shared
folders. I don't know if I have the the sendmail side of it set up
correctly to be able to post messages to shared folders. I can move
messages to shared folders but I want to be able to post messages if the
mail client is set up to use the server for smtp.
The system Cyrus-IMAP is version 2.2.6 installed from RPMs on RedHat
Enterprise v3 update 2.
Sendmail telnet port 25
250-wpssrv3.tow.net Hello wpssrv3.tow.net [127.0.0.1], pleased to meet
you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI LOGIN PLAIN
250-STARTTLS
250-DELIVERBY
250 HELP
quit
imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus root
sieve_admins: cyrus sieve root
sieveusehomedir: false
sievemaxscripts: 5
sievemaxscriptsize: 32
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
tls_cert_file: /usr/share/ssl/certs/server.pem
tls_key_file: /usr/share/ssl/certs/server.pem
tls_ca_file: /usr/share/ssl/certs/server.pem
autocreatequota: 10000
allowanonymouslogin: no
createonlogin: yes
autocreateinboxfolders: sent|drafts|templates|trash
altnamespace: yes
allowplainwithouttls: yes
saslauthd.conf:
ldap_servers: ldap://172.16.0.3/
ldap_search_base: ou=users,dc=tow,dc=net
ldap_auth_method: bind
ldap_filter: uid=%u
I can connect to the system, login using plain text and TLS for sending
and receiving to the IMAP server.
This is in my auth.log:
Aug 17 08:41:13 wpssrv3 i7HCf3Bw031932
h00608cca5a48.ne.client2.attbi.com [66.30.232.13]: AUTH[31932]:
AUTH=server, relay=h00608cca5a48.ne.client2.attbi.com [66.30.232.13],
authid=kent, mech=PLAIN, bits=0
Aug 17 08:41:19 wpssrv3 i7HCf3Bx031932
h00608cca5a48.ne.client2.attbi.com [66.30.232.13]: DATA[31932]:
i7HCf3Bx031932: from=<kent at mail.wareham.mec.edu>, size=321, class=0,
nrcpts=1, msgid=<1092746402.3693.12.camel at 1134>, proto=ESMTP,
daemon=MTA, relay=h00608cca5a48.ne.client2.attbi.com [66.30.232.13]
Aug 17 08:41:19 wpssrv3 ./i7HCf3Bx031932 localhost: client RCPT[31934]:
i7HCf3Bx031932: to=<+public.forms at mail.wareham.mec.edu>, delay=00:00:00,
xdelay=00:00:00, mailer=cyrusv2, pri=30321, relay=localhost, dsn=4.4.2,
stat=Deferred
Mail never makes it to +public.forms at mail.wareham.mec.edu
from cyradm:
wpssrv3.tow.net> listacl public.forms
kent lrswipcda
I have full rights to the folder.
Hear is my sendmail.mc:
# divert(-1)
#
# (C) Copyright 2000 by Carnegie Mellon University
#
# 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: cyrusv2.mc,v 1.4 2001/08/23 23:26:56 leg Exp $
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`cyrus v2 8-12-2004')
OSTYPE(linux)
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
define(`confTO_IDENT',`0')
dnl define(`SMART_HOST',`mail.wareham.mec.edu')
define(`confDEF_USER_ID',``8:12'')dnl
dnl define(`confTRUSTED_USER', `smmsp')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`', `A p')dnl
dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS',
`authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
define(`confCACERT_PATH',`/usr/share/ssl/certs')
define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
dnl #
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)dnl
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.
define(`confTRUSTED_USER', `cyrus')
define(`confTO_IDENT', `0')dnl
define(`confLOCAL_MAILER', `cyrusv2')
define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')
dnl if you aren't using Sendmail 8.12, you might need to remove
dnl the following feature.
FEATURE(`preserve_local_plus_detail')
FEATURE(`nocanonify')
FEATURE(`always_add_domain')
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
MAILER(`local')
MAILER(`cyrusv2')dnl
MAILER(`smtp')
MAILER_DEFINITIONS
Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
S=EnvFromSMTP/EnvFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/X-Unix,
A=FILE /var/lib/imap/socket/lmtp
LOCAL_RULE_0
Rbb + $+ < @ $=w . > $#cyrus $: + $1
define(`CYRUSV2_MAILER_FLAGS',`SA5@')
define(`CYRUSV2_BB_MAILER_FLAGS',`S')
MODIFY_MAILER_FLAGS(`LOCAL',`+u')dnl
Anyone have any ideas? I'm not a sendmail guru, what I've got is from
endless reading on the Internet.
Kent N
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
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