Fred Ball wrote:

> Hi, crew.  I'm going for my first installation of Cyrus imapd, running 
> sendmail and freeBSD 4.3.
> 
> I'm using the O'Reilly IMAP book as a guide, and everything *seemed*okay 
> until I hit the instructions for building the sendmail config file.  It 
> instructs me to add the following two lines to cyrusproto.mc:
> 
>     OSTYPE(freebsd4)
>     DOMAIN('DOMAIN.COM')
> 
> Then I run:
> 
>     m4 ../m4/cf.m4 cyrusproto.mc > cyrusproto.cf
> 
> Every time I do this, I get the message:
> 
>     m4: . . /domain/'DOMAIN.COM'.m4: No such file or directory


To build a sendmail.cf under FreeBSD 4.x, start with the freebsd.mc 
file, which should be in /etc/mail. Copy that to some other name, and 
put that name in /etc/make.conf in a SENDMAIL.MC= line.

For cyrus 2.x, change you need to make is like this:

FEATURE(local_lmtp)dnl
define(`confLOCAL_MAILER',`cyrus')dnl

MAILER_DEFINITIONS
mcyrus, 
        P=[IPC], F=lsSDFMnqA@/:|SmXz, E=\r\n,
                S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
                U=cyrus:cyrus, A=FILE /var/imap/socket/lmtp

The mailer definition should be the same as the one for 'smtp', but with 
the U= added and the A= as shown. The argument to A= should be the lmtp 
listening socket path specified in your cyrus.conf file.

This is an optimal setup. No extra processes will be spawned (with 2.x 
deliver just does the equivalent LMTP delivery), envelope information 
will be preserved (for Sieve), CCed mail will be hardlinked in the cyrus 
filesystem.

To deliver to top leve dirs, specify +box.path. To deliver to a folder 
under a user's INBOX, use user+box.

Nothing could be simpler.


> 
> as if it is looking for another script piece.  When I omit the domain 
> line, it seems to output fine.  But then I try O'Reilly's test for the 
> sendmail config:
> 
>     cyradmin -user cyrus localhost imap

 >
 > and it returns:
 >
 > cyradm: cannot connect to server
 >
 > Any ideas on where to start with this????
 >

I think you're mixing apples and oranges here. This has nothing to do 
with sendmail. But it probably does mean that cyrus isn't running.



Reply via email to