auto create features

Craig White craigwhite at azapple.com
Fri Apr 7 13:15:18 EDT 2006


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=<cyrus at myhomelenders.net> to=<test2 at myhomelenders.net>
Apr  7 10:05:41 srv1 postfix/cleanup[14961]: C530DF8DC0:
message-id=<20060407170541.C530DF8DC0 at srv1.myhomelenders.net>
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=<cyrus at myhomelenders.net>, 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:
<20060407170541.C530DF8DC0 at srv1.myhomelenders.net> 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:
<20060407170541.C530DF8DC0 at srv1.myhomelenders.net> user.test2
1144429547 1
Apr  7 10:05:47 srv1 postfix/lmtp[15054]: 16CC0F8DB8:
to=<test2 at myhomelenders.net>, 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



More information about the Info-cyrus mailing list