Mail Quota with Dovecot (User + Domain) - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: Mail Quota with Dovecot (User + Domain) (/thread-9361.html) |
RE: Mail Quota with Dovecot (User + Domain) - kouga - 01-25-2010 07:59 PM (01-25-2010 07:50 PM)TheCry Wrote:Here's my passwd. Quote:mail:x:8:12:mail:/var/spool/mail:/sbin/nologin Quote:Check the path of deliverThe path to deliver is correct in my environment. BTW: Quote:If you have different emailadresses eg "info@..." you will get more than one line in this query.You were right!! I made correction in my dovecot-sql-*.conf. Thanks for your advise. RE: Mail Quota with Dovecot (User + Domain) - TheCry - 01-25-2010 08:04 PM (01-25-2010 07:59 PM)kouga Wrote: BTW:OK... So i will change the wiki next time! Thanks for the testing! RE: Mail Quota with Dovecot (User + Domain) - kouga - 01-25-2010 08:17 PM (01-25-2010 08:04 PM)TheCry Wrote: OK... No problem. I tested because I needed to know. Meanwhile, did you try [per domain quota] for mail?? RE: Mail Quota with Dovecot (User + Domain) - aseques - 01-25-2010 08:33 PM Hi, I just spotted the mistake on the wiki, I changed the WHERE into: mail_acc='%n' and domain.domain_name='%d' I didn't spot that mistake on the wiki config (I have my local copy already fixed) RE: Mail Quota with Dovecot (User + Domain) - TheCry - 01-25-2010 08:34 PM (01-25-2010 08:17 PM)kouga Wrote: Meanwhile, did you try [per domain quota] for mail??Sorry.. No... RE: Mail Quota with Dovecot (User + Domain) - kouga - 01-25-2010 08:39 PM (01-25-2010 08:34 PM)TheCry Wrote: Sorry.. No... Someone give me some FRISK or a perfect solution. RE: Mail Quota with Dovecot (User + Domain) - TheCry - 01-25-2010 08:56 PM I remember we had a patch inside the german corner: http://www.isp-control.net/forum/thread-6045-page-3.html But... Diskspace quota and mailbox quota are 2 different table entries... It is not so simple what you want! RE: Mail Quota with Dovecot (User + Domain) - kouga - 01-26-2010 10:07 AM (01-25-2010 08:56 PM)TheCry Wrote: I remember we had a patch inside the german corner: http://www.isp-control.net/forum/thread-6045-page-3.htmlGerman....Can't understand what everybody is talking about... But I'll check more. I was thinking, if domain quota size (quota/used) calculated by proftpd be included in table of mail_users, and find a way to query both user/domain quota with Dovecot while receiving mail, maybe it's possible?? RE: Mail Quota with Dovecot (User + Domain) - kouga - 01-26-2010 12:27 PM (01-26-2010 10:07 AM)kouga Wrote: I was thinking, if domain quota size (quota/used) calculated by proftpd OR, how about enabling postfix virtual quota using VDA and check the domain quota only, when passed, give it to Dovecot LDA and check the user quota. I'll give it a try. ---------------------------------- Nope, didn't work. Now what..... RE: Mail Quota with Dovecot (User + Domain) - kilburn - 01-26-2010 06:06 PM Domain quotas and mail quotas are different beasts. Mail quotas (which ispcp doesn't directly support as of now) are to be checked each time a mail is delivered, whereas domain disk quotas are updated just overnight. Thus, integrating them both in the mail delivery is a fairly stupid thing to do, because if the domain is ever detected over-quota, all the users would be unable to receive e-mails for a whole day, even if they free the overused space. That said, the short answer is: trying to check domain quotas when delivering mail is currently a stupid thing to do, so just make sure that sum(mail_quotas) < domain_quota and you'll be fine. |