Subject: set up of sendmail.cf to use cyrus-imap
To: NetBSD Users <netbsd-users@netbsd.org>
From: Uwe Lienig <Uwe.Lienig@fif.mw.htw-dresden.de>
List: netbsd-users
Date: 08/20/2002 12:11:12
Hi users,
I'm trying to set up NetBSD to act as an e-mail server. Since our workgroup is
rather small IMAP and sendmail should run on the same machine. At the moment I
would avoid using lmtp.
IMAP is offered by cyrus-imap which runs ok. I tested the setup and I'm able to
authenticate from a windoze box either by Netscape or Outlook Express.
The next step will be to tell sendmail to use cyrus-deliver to fill the inbox. I
edited the m4-cf file for my needs.
----------------------------------------------
Start of m4-configuration - a bit stripped
----------------------------------------------
include(`../m4/cf.m4')
VERSIONID(`@(#)MyMailConf 8.11.3nb1')
OSTYPE(bsd4.4)dnl
MASQUERADE_AS(`my.domain.')dnl
MASQUERADE_DOMAIN(`my.domain.')dnl
MASQUERADE_DOMAIN(`other.domain.')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(cyrus)dnl
MAILER(smtp)dnl
-----------------------------------------------
end of m4-configuration
-----------------------------------------------
The produced sendmail.cf containes the following mailer definitions:
--------------------------------------------------------------------
Mlocal, P=/usr/libexec/mail.local, F=lsDFMAw5:/|@qPrmn9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/X-Unix,
A=mail -d $u
Mprog, P=/bin/sh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
D=$z:/,
T=X-Unix/X-Unix/X-Unix,
A=sh -c $u
Mcyrus, P=/usr/cyrus/bin/deliver, F=lsDFMnPqAh5@/:|, S=EnvFromL,
R=EnvToL/HdrToL,
U=cyrus:mail, T=DNS/RFC822/X-Unix,
A=deliver -e -m $h -- $u
Mcyrusbb, P=/usr/cyrus/bin/deliver, F=lsDFMnPu, S=EnvFromL,
R=EnvToL/HdrToL,
U=cyrus:mail, T=DNS/RFC822/X-Unix,
A=deliver -e -m $u
Msmtp, P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Mesmtp, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Msmtp8, P=[IPC], F=mDFMuX8, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Mdsmtp, P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP,
E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=TCP $h
------------------------------------------------------------
When I test the produced sendmail.cf rule set 0 which will select the delivery
agent never solves to the cyrus agent defined by Mcyrus for local adresses. Even
I didn't find any reference to use the cyrus mailer.
What I'm doing wrong. I think since I'm using NetBSD I ask it here because of
the predefined macros in the cf dir in /usr/share/sendmail/cf.
TIA
--
Uwe Lienig | fon: (+49 351) 462 2780 | mailto:uwe.lienig@fif.mw.htw-dresden.de
| fax: (+49 351) 462 3476 | http://www.fif.mw.htw-dresden.de
HTW Dresden | parcels: Gutzkowstr. 22 | letters: PF 12 07 01
-FiF- | 01069 Dresden | 01008 Dresden