Mail Quota in postfix and squirrelmail
Hi!
I'm running squirrelmail with postfix and dovecot. I want to define mail quota, so that user see the percentage of usage of his inbox (normally that size is defined in /etc/postfix/main.cf, for mails residing in /var/spool/mail or /var /mail) so that he can delete old emails when the inbox is full. Rightnow, user himself doesn't know if the mailbox is full except when he noticed that the mail he was supposed to receive didn't arrive to his inbox. I tried to do that using squirrelmail plugin, with IMAP quotas, but the quota was collecting the size or all user folders starting from /home/ to /var/spool/mail/ I didn't like that as without quota usage, the mail will fail to arrive when the inbox is full, that's I want my quota to consider only inbox folder in /var/spool/mail and not other folders like sent items, etc Is there a way or a plugin to define quotas accepted by squirrelmail/postfix but to count only inbox folder /var/spool/mail? Cheers, Stefano |
Ok, finally I get a link on postfix http://www.postfix.org/addon.html
and I found several addons for Quota software ------------------------- * quota policy daemon script by Pablo Armando. * Per-user mailbox quota patch by Keith Stevenson. Not part of Postfix because it does not work with maildir files and because users with .forward files can bypass quota restrictions. * PostmMon Postfix Mail Box Monitor by Eduardo Mendes and Ricardo Malafaia. This sends mail notifications when a user has too much mail. * Postfix virtual delivery agent patches with additional features including quota by Anderson Nadal. ------------------------- And I'm testing them now Cheers, Stefano |
Dovecot tried for years to add quota to their IMAP server. I don't know how far they got with it but it wasn't that good from what I can remember.
I switched to cyrus-imap which has the best quota support; and squirrelmail works great with it. Althought cyrus-imap is a lot more difficult to install and administer; but it's very worth it. Under squirrelmail it will continuously alert you with over the limit messages everytime you login. Also the user gets a nice progress bar of the quota and total accumulation and it turns red if more than 90% full. I know courier-imap also has quota support and it should be easier to administer but I know it is not as powerful as cyrus-imap (unless someone else can prove me wrong). |
Well, while testing them one of them requires me to patch my existing postfix: the patch is postfix-2.5.5-vda-ng.patch.
The README file directs me to install that patch while i'm in postfix directory (expecting that I instaklled postfix by tarballs, i.e thru directory such as /usr/share/postfix-2.5.5/...). However I installed postfix by rpm and the directories for postyfix are /etc/postfic and /usr/libexec/postfix. As the patch searches for which file to replace, I don't which file should be affected by that patch, is is main.cf or whuch file. I tried to run the patch while I'm on /etc/postfix/ and specified main.cf as the file to patch but it gave errors: ############ [root@libismail postfix]# patch -p0 < postfix-2.5.5-vda-ng.patch patching file postfix-2.5.5/README_FILES/VDA_README can't find file to patch at input line 105 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -uNr postfix-2.5.5.orig/src/global/mail_params.h postfix-2.5.5/src/global/mail_params.h |--- postfix-2.5.5.orig/src/global/mail_params.h 2008-07-27 21:10:27.000000000 +0200 |+++ postfix-2.5.5/src/global/mail_params.h 2008-08-25 11:57:48.813792568 +0200 -------------------------- File to patch: ############ when I specified main.cf as a file to patch it gave errors File to patch: main.cf patching file main.cf Hunk #1 FAILED at 2171. 1 out of 1 hunk FAILED -- saving rejects to file main.cf.rej can't find file to patch at input line 163 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -uNr postfix-2.5.5.orig/src/util/file_limit.c postfix-2.5.5/src/util/file_limit.c |--- postfix-2.5.5.orig/src/util/file_limit.c 2003-10-22 20:48:36.000000000 +0200 |+++ postfix-2.5.5/src/util/file_limit.c 2008-08-25 11:57:48.813792568 +0200 -------------------------- File to patch: ############### Any help please? Cheers, Stefano |
All times are GMT -5. The time now is 03:35 PM. |