Deliver messages to the accounts of virtualdomains.

Wang Penghui wangpenghui at realss.com
Tue Jun 8 20:45:16 EDT 2004


Hi, all.

I want to add the virtual domain supported to my Cyrus-IMAP server.
And i have followed the docs with the Distribution
http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html
First i changed my imapd.conf to:

configdirectory:        /var/imap
partition-default:      /var/spool/imap
sievedir:               /var/imap/sieve
tls_cert_file:          /etc/cyrusimapd/server.crt
tls_key_file:           /etc/cyrusimapd/server.key
admins:                 cyrus
virtdomains:            userid
hashimapspool:          yes
allowanonymouslogin:    no
allowplaintext:         yes
unixhierarchysep:       yes
defaultdomain:          hackerdom.org
sasl_pwcheck_method:    saslauthd
mech_list: plain login
sendmail: /usr/sbin/sendmail
autocreateinboxfolders: Sent|Drafts|Templates|Trash

And my saslauthd.conf to:

ldap_servers: ldap://localhost/
ldap_bind_dn: cn=Manager, dc=hackerdom, dc=org
ldap_bind_pw: Secret:)
ldap_search_base: ou=Realss, dc=hackerdom, dc=org
ldap_version: 3

Then i have added a account named user at domain.com in the LDAP directory.

I try two motheds to login with it.
First: I used the command "cyradm"
cyradm --user user at domain.com --auth login --server localhost
After type the correct password, I could login well.
Second: I used Mozilla-thunderbird as the MUA.
I filled the IMAP server as "localhost".
After type the correct password, I could login well too.

Then i try to send a message for a test.
But i found that it could not be received at all.

I have checked the /var/log/mail.info, and found the follow log:

Jun  9 08:15:03 hartt postfix/trivial-rewrite[5476]: warning: 
dict_ldap_lookup: Fixed query_filter (associatedDomain=*) is probably 
useless
Jun  9 08:15:04 hartt postfix/pipe[5614]: 9C42424384: 
to=<wangpenghui at bitco.realss.com>, relay=cyrus, delay=3, status=bounced 
(data format error. Command output: wangpenghui: Mailbox does not exist )
Jun  9 08:15:04 hartt postfix/cleanup[5475]: 84BDD24389: 
message-id=<20040609001504.84BDD24389 at mail.hackerdom.org>
Jun  9 08:15:04 hartt postfix/qmgr[28434]: 84BDD24389: from=<>, 
size=2503, nrcpt=1 (queue active)
Jun  9 08:15:04 hartt postfix/pipe[5614]: 84BDD24389: 
to=<wangpenghui at bitco.realss.com>, relay=cyrus, delay=0, status=bounced 
(data format error. Command output: wangpenghui: Mailbox does not exist )

I found that the "user at domain.com" has been changed to "user".
I don't know why does it change.
Could someone point out where i have set wrong parameter or other reasons?

I have another question.
I have set
autocreateinboxfolders: Sent|Drafts|Templates|Trash
in /etc/imapd.conf
But why does it take no effect?

Thanks in advance!

Penghui Wang



---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
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