Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Christopher Paluch
cpaluch at mindspring.com
Thu Feb 19 10:09:00 EST 2004
-----Forwarded Message-----
From: Christopher Paluch <cpaluch at mindspring.com>
Sent: Feb 19, 2004 8:50 AM
To: Mike O'Rourke <mjoop at curia.op.org>, info-cyrus at lists.andrew.cmu.edudsp
Subject: Re: Virtual domains, user at domain.com: Mailbox unknown
First let me thank everyone for their help so far and I apologize if some of this is really "sendmail" issues and not a pure "cyrus" issue.
I have basically given up the idea of trying to keeping local mail delivery via procmail and I hopefully have eliminated it, since I can't send mail to root anymore (User unknown) nor send email to another Linux server via the mail command (data format error). I will look into those after I solve this one.
This is what's happening now:
Server name: server.adomain.com
I have created a mailbox via the command: cm user/test.one at test.com
/etc/cyrus.conf has changed from default setup, which was listed in a previous email.
/etc/imapd.conf:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
srvtab: /var/imap/srvtab
allowanonymouslogin: no
sasl_passwd_check: saslauthd
unixhierarchysep: yes
sendmail: /usr/sbin/sendmail
sievedir: /usr/sieve
sieveusehomedir: no
postuser: shared
altnamespace: yes
virtdomains: yes
defaultdomain: future .com
loginrealms: future.com test.com
/etc/mail/local-host-names:
localhost
server.adomain.com
adomain.com
/etc/mail/virtusertable is empty
/etc/mail/mailertable:
test.com cyrusv2:/var/imap/socket/lmtp
/etc/mail/sendmail.mc:
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')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
define(`confTO_IDENT', `0')dnl
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
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
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
dnl MAILER(procmail)dnl
MAILER(cyrusv2)dnl
define(`confLOCAL_MAILER', `cyrusv2')dnl
PUSHDIVERT(-1)
_DEFIFNOT(`_DEF_CYRUSV2_MAILER_FLAGS', `lsDFMnqXz')
_DEFIFNOT(`CYRUSV2_MAILER_FLAGS', `A@/:|m')
ifdef(`CYRUSV2_MAILER_ARGS',, `define(`CYRUSV2_MAILER_ARGS', `FILE /var/imap/socket/lmtp')')
define(`_CYRUSV2_QGRP', `ifelse(defn(`CYRUSV2_MAILER_QGRP'),`',`', ` Q=CYRUSV2_MAILER_QGRP,')')dnl
POPDIVERT
#########################################
### Cyrus V2 Mailer specification ###
#########################################
VERSIONID(`$Id: cyrusv2.m4,v 1.1 2002/06/01 21:14:57 ca Exp $')
Mcyrusv2, P=[IPC], F=_MODMF_(CONCAT(_DEF_CYRUSV2_MAILER_FLAGS, CYRUSV2_MAILER_FLAGS), `CYRUSV2'),
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
_OPTINS(`CYRUSV2_MAILER_MAXMSGS', `m=', `, ')_OPTINS(`CYRUSV2_MAILER_MAXRCPTS', `r=', `, ')_OPTINS(`CYRUSV2_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,_CYRUSV2_QGRP
A=CYRUSV2_MAILER_ARGS
After all this I still get "User unknown", when I send mail to test.one at test.com.
Again I ask, when I read "Configuring Virtual Domains" it says I don't have to specify multiple IP addresses. Is that correct or do I have to do that to get this to work?
Thanks,
Chris Paluch
---
Home Page: http://asg.web.cmu.edu/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