I am not sure, but I guess you have already created the user inbox before posting the email to the account. However, by design autocreate patch does not function this way.

In order the create on post feature of the autocreate patch be activated, no account at all must be pre-exist. If the mailbox has been already created, then the patch is not activated at all. This is probably the reason for not seeing any log messages.

Below I cite the conditions required in order the create on post functionality to be activated:

Create on post
==============
This feauture provides automatic creation of a user's INBOX folder when all of the
following requirements are met.

i) An e-mail message addressed to the user has been received.

ii) The recipient is not any of the imap_admins or admins accounts.
Note that passing e-mails to admins or imap_admins accounts from
the MTA to LMTP should be avoided in any case.

iii) The recipient's INBOX does not exist.

iv) The "autocreatequota" option in the imap configuration file
has been set to a non zero value.

v) The "createonpost" option in the imap configuration file
has been switched on.


The above text was taken from the patch's documentation at:
http://email.uoa.gr/projects/cyrus/autocreate/README.autocreate-cyrus-2.2

I hope this clears the situation out.

Cheers,
Christos



Craig White wrote:
On Fri, 2006-04-07 at 13:19 +0300, Christos Soulios wrote:
When autocreate fails, it logs the error message to your syslog. (be sure
you do not filter out warnings). The patch for cyrus-2.3.x also logs debug
info to check if the patch was invoked. Unfortunately debug info are not
printed for cyrus 2.2.12.

Cheers,
Christos


Craig White wrote:
I am using Simon's rpm's on a CentOS 4 system...

# rpm -q cyrus-imapd
cyrus-imapd-2.2.12-16

my /etc/imapd.conf includes...

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
lmtp_downcase_rcpt: 1

createonpost: 1
autocreateinboxfolders: Sent Items|SPAMBOX|VIRUSBOX|Drafts|Deleted Items
autosubscribeinboxfolders: Sent Items|SPAMBOX|VIRUSBOX|Drafts|Deleted
Items
autosubscribesharedfolders: public|user.ratesheets
autocreatequota: 512000
autocreate_sieve_script: /var/lib/imap/autocreate/default_sieve_script
autocreate_sieve_compiledscript:
/var/lib/imap/autocreate/default_sieve_script.bc
generate_compiled_sieve_script: 1
allowallsubscribe: 1
anysievefolder: 1

and on other systems where I have done this, the auto features
(autocreateinboxfolders, autosubscribeinboxfolders, etc.) all work. The
features used to work here but seemed to have stopped working and I
don't know why - which is why I upgraded last night.

Is there a way I can 'trace' where things are breaking down on the
'autocreate' features when I create a new mailbox and send the first
email to the new mailbox?
----
that's just it...I'm not seeing log of significant info.

here is the maillog...

# account created...
Apr  7 10:05:41 srv1 master[15542]: about to
exec /usr/lib/cyrus-imapd/imapd
Apr  7 10:05:41 srv1 imap[15542]: executed

# mail automatically generated...
Apr  7 10:05:41 srv1 postfix/pickup[14853]: C530DF8DC0: uid=76
from=<cyrus>
Apr  7 10:05:41 srv1 postfix/cleanup[14961]: C530DF8DC0: hold: header
Received: by srv1.myhomelenders.net (Postfix, from userid 76)??id
C530DF8DC0; Fri,  7 Apr 2006 10:05:41 -0700 (MST) from local;
from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]>
Apr  7 10:05:41 srv1 postfix/cleanup[14961]: C530DF8DC0:
message-id=<[EMAIL PROTECTED]>
Apr  7 10:05:41 srv1 MailScanner[14598]: New Batch: Scanning 1 messages,
842 bytes
Apr  7 10:05:43 srv1 MailScanner[14598]: Virus and Content Scanning:
Starting
Apr  7 10:05:43 srv1 imap[15203]: accepted connection
Apr  7 10:05:43 srv1 master[15560]: about to
exec /usr/lib/cyrus-imapd/imapd
Apr  7 10:05:43 srv1 master[15561]: about to
exec /usr/lib/cyrus-imapd/imapd
Apr  7 10:05:43 srv1 imap[15560]: executed
Apr  7 10:05:43 srv1 imap[15561]: executed
Apr  7 10:05:43 srv1 imap[15203]: login: localhost.localdomain
[127.0.0.1] cyrus plaintext User logged in
Apr  7 10:05:47 srv1 MailScanner[14598]: Requeue: C530DF8DC0.A2DE3 to
16CC0F8DB8
Apr  7 10:05:47 srv1 MailScanner[14598]: Uninfected: Delivered 1
messages
Apr  7 10:05:47 srv1 postfix/qmgr[6603]: 16CC0F8DB8:
from=<[EMAIL PROTECTED]>, size=848, nrcpt=1 (queue active)

# autocreate_sieve_compiled_script should have been copied but didn't...
Apr  7 10:05:47 srv1 lmtpunix[14976]: IOERROR: fstating sieve
script /var/lib/imap/sieve/t/test2/defaultbc: No such file or directory
Apr  7 10:05:47 srv1 lmtpunix[14976]: duplicate_check:
<[EMAIL PROTECTED]> user.test2
0
Apr  7 10:05:47 srv1 lmtpunix[14976]: mystore: starting txn 2147486686
Apr  7 10:05:47 srv1 lmtpunix[14976]: mystore: committing txn 2147486686
Apr  7 10:05:47 srv1 lmtpunix[14976]: duplicate_mark:
<[EMAIL PROTECTED]> user.test2
1144429547 1
Apr  7 10:05:47 srv1 postfix/lmtp[15054]: 16CC0F8DB8:
to=<[EMAIL PROTECTED]>, orig_to=<test2>,
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=6,
status=sent (250 2.1.5 Ok)
Apr  7 10:05:47 srv1 postfix/qmgr[6603]: 16CC0F8DB8: removed

and to verify the existence of the autocreate_sieve files...
# ls -l /var/lib/imap/autocreate/
total 24
-rwxr-xr-x  1 cyrus mail 4660 Mar 11  2005 default_sieve_script
-rwxr-xr-x  1 cyrus mail 5536 Mar 11  2005 default_sieve_script.bc


nor were the 'autocreateinboxfolders'
# ls -l /var/spool/imap/t/user/test2/
total 32
-rw-------  1 cyrus mail 1079 Apr  7 10:05 1.
-rw-------  1 cyrus mail  708 Apr  7 10:05 cyrus.cache
-rw-------  1 cyrus mail  167 Apr  7 10:05 cyrus.header
-rw-------  1 cyrus mail  136 Apr  7 10:05 cyrus.index

The wierd thing is that this setup worked when I set it up and for some
months and then all of a sudden, it stopped working. So I ended up
downloading latest SRPM from Simon and compiling it and installing it
but that didn't change.

So I cannot figure out what isn't working when I don't see any errors.

Craig

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