Problem with cyrus and virtdomains option

2003-06-16 Thread Marco Pizzi
Hi to all,

I'm sorry but I'm very newbie with cyrus.
I've installed cyrus-imapd-2.2.0.a and cyrus-sasl-2.1.13_2 on a
FreeBSD 5.0 server with Sendmail 8.12.6p2/8.12.6
 I've got problems with virtual domains :(
If I have this maiboxes:

--
localhost.domain.it lm
user/[EMAIL PROTECTED]
user/marco.pizzi
--

with testdomain.it in the sendmail.cw file (local-host-names file)


and with  sendmail.cf modified as follow:

Mcyrusv2,   P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /usr/local/etc/imap/socket/lmtp

I've got the following error:

Jun 16 10:29:07 pe2650 sm-mta[1172]: h5G8T71n001172: from=[EMAIL PROTECTED], 
size=394, class=0, nrcpts=1, msgid=200306160829.h5G8T7
[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=localhost.test.it [127.0.0.1]
Jun 16 10:29:07 pe2650 sendmail[1171]: h5G8T7xf001171: [EMAIL PROTECTED], 
ctladdr=marcolin (102/20), delay=00:00:00, xdelay=00:0
0:00, mailer=relay, pri=30048, relay=localhost.test.it. [127.0.0.1], dsn=2.0.0, 
stat=Sent (h5G8T71n001172 Message accepted for delivery)
Jun 16 10:29:07 pe2650 sm-mta[1174]: h5G8T71n001172: to=[EMAIL PROTECTED], 
delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=3
0394, relay=localhost, dsn=5.1.1, stat=User unknown
Jun 16 10:29:07 pe2650 sm-mta[1174]: h5G8T71n001172: h5G8T71n001174: DSN: User unknown

What is wrong with my configuration?
Thanks for your precious attention.

Best regards,

--

Marco. 



Re: Fwd: Problem with cyrus and virtdomains option

2003-06-16 Thread Hank Beatty
On Mon, 2003-06-16 at 06:44, Marco Pizzi wrote:
 Hello again,
 
 It looks like that sendmail strips away the domain of the receiver when it is
 recognized as local.
 Have you ever encountered this problem?

Here is a portion of my sendmail.mc file that will leave the domain
portion attached for local delivery:

OSTYPE(linux)dnl
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')dnl
define(`confLOCAL_MAILER', `cyrusv2')dnl
FEATURE(`nocanonify')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`use_cw_file')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`cyrusv2')dnl

LOCAL_RULE_0
R$=L  @ $=w . $: @ $1`@'$2special local names
R$+  @ $j .   $: $1   leave untouched if @$j
R$+  @ $=w .  $: $1`@'$2  regular local name')
Rbb + $+  @ $=w . $#cyrusbb $: $1

---

Please note that this server is not an Internet facing mail server.
Which means that any mail that makes it to this server should be for a
mailbox that is actually on this server.

Regards,
-- 
Hank Beatty [EMAIL PROTECTED]