LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2009, 08:35 AM   #1
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Rep: Reputation: 15
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
 
Old 06-11-2009, 10:20 AM   #2
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
Old 06-11-2009, 10:28 AM   #3
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
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).
 
Old 06-11-2009, 10:30 AM   #4
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail usage quota graph with postfix vm_devadas Linux - Software 6 09-20-2006 11:36 AM
Mail usage quota graph with postfix vm_devadas Linux - Software 2 09-12-2006 08:59 AM
mail server RH9-postfix-squirrelmail hivtop Red Hat 8 04-12-2005 03:11 AM
mail server RH9-postfix-squirrelmail hivtop Linux - Newbie 1 04-05-2005 01:24 PM
Postfix 2.0 and squirrelmail 1.5.0 error when send mail ley Red Hat 0 07-09-2004 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration