Barry R Cisna
2008-Jun-20 22:26 UTC
[Dovecot] no maildirsize file being created -dovecot v1.1
Hello List, Getting ready to setup a new dovecot sendmail squirrelmail server for our school which is currently running on a 4 year old install of the same, which has worked like a champ by the way. --------------------- EL5 dovecot-1.1 rc10 rpm sendmail squirrelmail --------------------- Problem: I can not get my dovecot 1.1 rc10(rpm) to generate an maildirsize file in each of the users homedir. I have re-edited the dovecot.conf file many many times but still no joy. If I uninstall and install the default dovecot 1.0.1x rpm that ships with EL5 i get the maildirsize file to generate correctly without a hitch. I am wanting to use the check_quota plugin for SM this time so I need to get this functioning correctly. How would I go about troubleshooting this. The only error I get in maillog is when I log into SM I do see were dovecot tries to check for the maildirsize file but it can not find it of course and then says " skipping quota check",,so I think I have my dovecot.conf file setup correctly. Dovecot is simply not generating the maildirsize file. Following lines added to the end of dovecot.conf file: protocol imap { mail_plugins = quota imap_quota } protocol pop3 { mail_plugins = quota } # In case you're using deliver: protocol lda { mail_plugins = quota } plugin { quota = maildir quota_rule = *:storage=1GB # 10% of 1GB = 100MB quota_rule2 = Trash:storage=10%% # 20% of 1GB = 200MB quota_rule3 = Spam:storage=20%% } ,,I have reversed the above to have quota=maildir,,etc above the protocol directives as well and still no joy. Sidenote: I also tried dovecot v1.1 rc5 rpm as well with the same results. Any tips from anyone would be appreciated. Thanks, Barry Cisna
Timo Sirainen
2008-Jun-21 00:41 UTC
[Dovecot] no maildirsize file being created -dovecot v1.1
On Jun 21, 2008, at 1:26 AM, Barry R Cisna wrote:> Problem: I can not get my dovecot 1.1 rc10(rpm) to generate an > maildirsize file in each of the users homedir. I have re-edited the > dovecot.conf file many many times but still no joy.Set mail_debug=yes and see what gets logged.> How would I go about troubleshooting this. The only error I get in > maillog is when I log into SM I do see were dovecot tries to check for > the maildirsize file but it can not find it of course and then says " > skipping quota check",,Really? I don't remember Dovecot having any such log message. Please paste it entirely and exactly. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080621/1dc986cb/attachment-0002.bin>
Barry R Cisna
2008-Jun-21 03:00 UTC
[Dovecot] no maildirsize file being created -dovecot v1.1
It looks to me after setting the mail_debug=yes in the dovecot.conf quota is looking for the maildir to be Maildir>>(/home/superuser/Maildir, rwx).my install has mailboxes listed as mail>> /home/superuser/mail ( not Maildir) How do i comment the quota to make a directive to correct this? maildir=mail >>not mail=Maildir Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Loading modules from directory: /usr/lib/dovecot/imap Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Module loaded: /usr/lib/dovecot/imap/lib10_quota_plugin.so Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Module loaded: /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Effective uid=500, gid=500, home=/home/superuser Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Quota root: namebackend=maildir argsJun 20 21:35:05 hi3 dovecot: IMAP(superuser): Quota rule: rootmailbox=* bytes=104857600 (0%) messages=0 (0%) Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Quota rule: rootmailbox=Trash bytes=10485760 (10%) messages=0 (0%) Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Quota rule: rootmailbox=Spam bytes=20971520 (20%) messages=0 (0%) Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): maildir: access(/home/superuser/Maildir, rwx): failed: No such file or directory Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): maildir: couldn't find root dir Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): maildir: Couldn't create mail storage : Root mail directory not given Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): mbox: root exists (/home/superuser/mail) Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): mbox: INBOX exists (/var/mail/superuser) Jun 20 21:35:05 hi3 dovecot: imap-login: Login: user=<superuser>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): fs: root=/home/superuser/mail, index=, control=, inbox=/var/mail/superuser Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): quota maildir: No maildir storages, ignoring quota. Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): Log synchronization error at seq=2,offset=64 for /home/superuser/mail/.imap/Trash/dovecot.index: uid_validity updated unexpectedly: 1 -> 1213899748 Jun 20 21:35:05 hi3 dovecot: IMAP(superuser): fscking index file /home/superuser/mail/.imap/Trash/dovecot.index Thanks Timo Barry Cisna
Barry R Cisna
2008-Jun-21 14:20 UTC
[Dovecot] no maildirsize file being created -dovecot v1.1
Hi Timo, I changed the maildir directive in my dovecot.conf as you suggested. The maildirsize file IS created now , but, the ~/mail folder structure is now showing all messed up for the user that logs into Squirrelmail for example: Before the mail_location was changed; ~/mail/Drafts,Sent,Trash,.subsciptions/.imap/Drafts,INBOX,Sent,Trash After, mail_location = maildir:~/mail ~/mail/cur/new/tmp/.Drafts,.Sent,.Trash,dovecot.index.log,subsciptions,maildirsize/.imap/Drafts/INBOX/Sent/Trash Notice how after the maildir directive change there are .DOT in front of Drafts,Sent,Trash as well as no .DOT in front of subsciptions,as well as the added cur,new,tmp directories under the ~/mail folder?? And yes this is the default EL5 install with maildir storage( not mbox). As I stated earlier, if i simply 'rpm -e dovecot' them 'rpm -ivh dovecot' with the default install of the dovecot rpm that shipps with EL5 everything comes up correctly as far as quotas for dovecot, Squirrelmail,etc. I think I may just stick with the default dovecot1.0.1.2-rc15.el rpm that ships with EL5 for now. I'm afraid of other underlying problems i may find as I we start using dovecot v1.1 when school starts then I will be in trouble! Another sidenote: After installing dovecot1.1 rpm dovecot appears to start fine with no errors,,but it is not actually listening on port 143 by doing an nmap localhost. I had to change listen = [::] to listen = * then restart dovecot,then dovecot was listening on port 143 as it should. Thanks for the help, Barry Cisna
Barry R Cisna
2008-Jun-22 15:21 UTC
[Dovecot] no maildirsize file being created -dovecot v1.1
Hi Timo, Thanks for the info. You are exactly right ,,after I done some researching. by default the Fedora and El distros setups up mail folders in mbox format. My Bad. I was always under the impression default was maildir.I have used sendmail>Procmail>dovecot>squirrelmail for my new setup same as the last email server setup.I found that sendmail seems to be much less CPU intensive than postfix,or I did not have the config correctly as postfix was easy to setup but really choked our email server when a secretary " bulk emailed" everyone in the school district. I have learned a lot about this in the last couple days. I thought I knew a little bit about this,but obviously I didn't know a thing. I am going to go with the default dovecot rpm that ships with EL5 1.0.1x as this does what all I need to have done. My main concern is the check_quota plugin available for Squirrelmail works,and with the dirsize quota directive put into dovecot.conf this is working very slick, and appears to be reporting very accurately.Now hopefully some teachers will not end up with 1GB mail folders!! and complaining the mail server is so slow when they check their email via Squirrelmail at home! Thanks again for steering me straight! Take Care, Barry Cisna