Re: Deliver messages to the accounts of virtualdomains.

2004-06-08 Thread Simon Matter
> 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:

Which version of cyrus are you using?

>
> 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 [EMAIL PROTECTED] in the LDAP directory.
>
> I try two motheds to login with it.
> First: I used the command "cyradm"
> cyradm --user [EMAIL PROTECTED] --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=<[EMAIL PROTECTED]>, 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=<[EMAIL PROTECTED]>
> 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=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced
> (data format error. Command output: wangpenghui: Mailbox does not exist )
>
> I found that the "[EMAIL PROTECTED]" 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?

You didn't show us any of your postfix parameters. Which version are you
using? Looks like you are using cyrus deliver instead of LMTP.

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

I'm not sure but I think you have to enable createonpost for
autocreateinboxfolders to work. Check the README from the creators of the
patch.

Simon

>
> 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
>
>


---
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


Deliver messages to the accounts of virtualdomains.

2004-06-08 Thread Wang Penghui
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 [EMAIL PROTECTED] in the LDAP directory.
I try two motheds to login with it.
First: I used the command "cyradm"
cyradm --user [EMAIL PROTECTED] --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=<[EMAIL PROTECTED]>, 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=<[EMAIL PROTECTED]>
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=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced 
(data format error. Command output: wangpenghui: Mailbox does not exist )

I found that the "[EMAIL PROTECTED]" 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


replicate cyrus

2004-06-08 Thread claus westerkamp
Hello,
is there a HowTo available for replicating cyrus-imap? I would like to 
setup a failover solution.

thank you
claus
---
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