Guys and Gals,

I am trying to configure Cyrus IMAP 2.0.16 and
Sendmail 8.11.6 on Red Hat Linux 7.2.  Sendmail was
configured to use LMTP instead of deliver.  I used the
cyrusv2.mc file that came with the source distribution
to create the sendmail.cf file.  I can successfully
send and receive e-mail on the Cyrus IMAP mailboxes
via localhost, however, whenever I try to 'echo
"Subject: This is a test" | /usr/sbin/sendmail -v
$recipient's_e-mail_address', I get:

 WARNING: local host name ($hostname) is not
qualified; fix $j in config file
$recipient's_e-mail_address... Connecting to $host.
via esmtp...
220 $host ESMTP Sendmail 8.11.3/8.11.3; Mon, 29 Apr
2002 18:57:44 +0800
>>> EHLO $hostname
250-$host Hello adsl-xx.xx.xxx.info.com.ph
[$IP_address] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From:<$user@$hostname> SIZE=25
250 2.1.0 <$user@$hostname>... Sender ok
>>> RCPT To:<$recipient's_e-mail_address>
250 2.1.5 <$recipient's_e-mail_address>... Recipient
ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 g3TAvl323273 Message accepted for delivery
$recipient's_e-mail_address... Sent (g3TAvl323273
Message accepted for delivery)
Closing connection to $host.
>>> QUIT
221 2.0.0 $host closing connection


A 'cat' into '/var/log/maillog' shows:

[...previous entries...]
Apr 29 18:24:20 $hostname sendmail[6228]:
g3TAOEN06228: to=$recipient's_e-mail_address,
ctladdr=root (0/0), delay=00:00:06, xdelay=00:00:06,
mailer=esmtp, pri=30025, relay=$host.
[$host's_IP_address], dsn=2.0.0, stat=Sent
(g3TAvl323273 Message
accepted for delivery)

Here's the cyrusv2.mc file:

# 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.3 2000/09/09 04:02:11 leg Exp $

divert(0)dnl
VERSIONID(`cyrus v2 sample configuartion')

OSTYPE(linux)
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
define(`confTO_IDENT',`0')

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')
FEATURE(`accept_unresolvable_domains') dnl Just added
dnl this but to of no avail.
FEATURE(`nocanonify')
FEATURE(`always_add_domain')
MAILER(`local')
MAILER(`smtp')

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

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


Yours truly,

Charlie
E-mail Administrator Wannabe

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to