Baltasar Cevc wrote:

Hi Warrick,

>Warrick FitzGerald wrote:
> I'm assuming that timsieved is the server that's responsible
> for saving the the scripts. Two questions:
> 1. I see timsieved has it's own PAM config file. When does
> this get used (As I have not updated this to use my MySQL
> DB for auth)?
I don't have the slightest clue - I used SASLDB only (we need
DIGEST-MD5 and CRAM-MD5). Perhaps that done like that because
PAM automatically uses the name of the program as config file
name?

> 2. The man page says that it reads it's config from
> imapd.conf, so if it's not saving the scripts the the
> correct location is this possible a bug in the timsieved
> when working with virtual domains?
I'm not so sure. As far as I see, the server contains code
to handle that - from timsieved/actions.c:
100 int actions_setuser(const char *userid)
101 {
102 char hash, *domain;
103 char *foo=sieve_dir;
104 int result;
105
106 sieve_dir=(char *) xmalloc(1024);
107
108 if (config_virtdomains && (domain = strchr(userid, '@'))) {
109 char d = (char) dir_hash_c(domain+1);
110 *domain = '\0'; /* split [EMAIL PROTECTED] */
111 hash = (char) dir_hash_c(userid);
112 snprintf(sieve_dir, 1023, "%s%s%c/%s/%c/%s",
113 foo, FNAME_DOMAINDIR, d, domain+1,
114 hash, userid);
115 *domain = '@'; /* reassemble [EMAIL PROTECTED] */
116 }
117 else {
118 hash = (char) dir_hash_c(userid);
119
120 snprintf(sieve_dir, 1023, "%s/%c/%s", foo, hash,userid);
121 }
>> /var/lib/imap/sieve/domain/t/test2.livetechnology.com/w/wfitzgerald/defaultbc


Perhaps the problem is the domain+1 ?
Do you know why the file name is "defaultbc", not "default"?

Baltasar

Baltasar - Thanks.

Well I thought perhaps it neeed the base directoty structure to exist perhaps, so I created /domain/t/test2.livetechnology.com/w/wfitzgerald under /var/lib/imap/sieve

Still no go ... oh goodness. Any idea how one can enable better debuggin in Sieve?

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

Reply via email to