Help on quota usage.

2014-02-14 Thread Anant Athavale
Dear List,

for one user, the lq user.xx is showing 1.6 GB, where as actual usage on
file system is less than 1 GB.  I want to know, how can get where is the
additional quota sitting in /var/spool/imap partition for user xxx.

Thanks in advance.

-- 
anant athavale.
bangalore

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Help on quota usage.

2014-02-14 Thread mayak
On 02/14/2014 12:41 PM, Anant Athavale wrote:
 Dear List,

 for one user, the lq user.xx is showing 1.6 GB, where as actual usage
 on file system is less than 1 GB.  I want to know, how can get where
 is the additional quota sitting in /var/spool/imap partition for user xxx.

 Thanks in advance.

 -- 
 anant athavale.
 bangalore
hi anant

try:

su - cyrus
/usr/lib/cyrus-imapd/quota -f

to fix quota calculation

cheers

mayak

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Help on quota usage.

2014-02-14 Thread Eric Luyten
On Fri, February 14, 2014 1:30 pm, mayak wrote:
 On 02/14/2014 12:41 PM, Anant Athavale wrote:

 Dear List,


 for one user, the lq user.xx is showing 1.6 GB, where as actual usage on
 file system is less than 1 GB.  I want to know, how can get where is the
 additional quota sitting in /var/spool/imap partition for user xxx.

 Thanks in advance.


 --
 anant athavale. bangalore
 hi anant

 try:


 su - cyrus /usr/lib/cyrus-imapd/quota -f


 to fix quota calculation


The underlying filesystem MAY have compression capabilities, which will most
certainly lead to 'du' returning a lower value than Cyrus 'list quota'.


Eric Luyten, Computing Centre VUB/ULB, mail spool compression factor 1.68



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Help on quota usage.

2014-02-14 Thread Joseph Brennan


--On February 14, 2014 5:11:19 PM +0530 Anant Athavale 
athavale.an...@gmail.com wrote:




 Dear List,

 for one user, the lq user.xx is showing 1.6 GB, where as actual usage on
 file system is less than 1 GB.  I want to know, how can get where is the
 additional quota sitting in /var/spool/imap partition for user xxx.



mbexamine user.xx | egrep '(Number.of.Messages|^Examining)'


Joseph Brennan
Columbia University IT




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Help on quota usage.

2014-02-14 Thread Adam Tauno Williams
On Fri, 2014-02-14 at 13:56 +0100, Eric Luyten wrote:
 On Fri, February 14, 2014 1:30 pm, mayak wrote:
  On 02/14/2014 12:41 PM, Anant Athavale wrote:
  for one user, the lq user.xx is showing 1.6 GB, where as actual usage on
  file system is less than 1 GB.  I want to know, how can get where is the
  additional quota sitting in /var/spool/imap partition for user xxx.
 The underlying filesystem MAY have compression capabilities, which will most
 certainly lead to 'du' returning a lower value than Cyrus 'list quota'.

+1.  The utilization of the underlying storage and the value calculated
by Cyrus may not correspond 1:1 for a variety of reasons [although, I
guess one might expect them to the close-ish - unless delayed expunge,
deduplication, etc... features are used].  I have seen the filesystem
and Cyrus quota values differ into both directions [fq  fq] for
apparently valid reasons.



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Help on quota usage.

2014-02-14 Thread John Wade
Isn't the most likely cause of  cyrus quota showing more usage than file 
system  the single instance store feature? (Assuming you have tried 
fixing the quota as others have suggested)   If you do any lists or mass 
emailing with an MTA that can use the single instance store feature, 
this can save a lot of disk space. You should be able to find these 
hardlinked messages via


find . -type f -links +1

Hope this helps,
John

On 2/14/2014 5:41 AM, Anant Athavale wrote:

Dear List,

for one user, the lq user.xx is showing 1.6 GB, where as actual usage 
on file system is less than 1 GB.  I want to know, how can get where 
is the additional quota sitting in /var/spool/imap partition for user xxx.


Thanks in advance.

--
anant athavale.
bangalore



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Best distro for Exim/Cyrus

2014-02-14 Thread Paul O'Rorke

Vlad and Andrew,

thanks so much for the tip on the lmtpd -a - that certainly did allow 
mail to flow to the expected mailbox.  Thanks so much.


I'm definitely making progress thanks to the help here. I'm stuck 
getting sasl authentication though.  As I understand it cyrus_sasl uses 
it's own (Berkley?) database so I can manage users without them having 
system accounts.  Certainly I've been using saslpasswd2 to set the user 
passwords but I'm unable to configure this.


If I uncomment any of the Authentcate against cyrus-sasl options I get 
an error when running  update-exim4.conf:


   root@blmail:~# update-exim4.conf
   2014-02-14 14:54:28 Exim configuration error in line 849 of
   /var/lib/exim4/config.autogenerated.tmp:
  authenticator cram_md5_sasl_server: cannot find authenticator
   driver cyrus_sasl
   Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not
   installing
   /var/lib/exim4/config.autogenerated.tmp to
   /var/lib/exim4/config.autogenerated

If I don't use any encrypted passwords I can log in, work with 
mailboxes, receive mail but not send (relay not permitted which I 
suspect is so as to not be an open relay..?)


What do I need to do to authenticate with the cyrus_sasl db?  Why would 
the authenticator driver cyrus_sasl not be available?  Do I need to 
enable that somewhere?


I've read so many conflicting pages I've completely confused myself.  
Maybe I should be looking at TLS/SSL now...


thanks again

*Paul O'Rorke* Tracker Software Products p...@tracker-software.com 
mailto:paul.oro...@tracker-software.com



On 2/13/2014 1:09 AM, Vladislav Kurz wrote:


On Thursday 13 of February 2014 00:30:55 Paul O'Rorke wrote:

 Thanks for that Vladislav, it was very helpful. :-)



 I have managed to get exim to use the defined cyrus_delivery transport

 attempting to deliver a received mail but it is baulking on the SSL 
cert.


For starters, comment out everything related to tls/ssl. You can get 
thet working later when everything else is OK. There's no need for TLS 
and Auth on LMTP. I think Andrew is right, just fix the quotes in 
cyrus.conf


lmtp cmd=lmtpd -a listen=localhost:lmtp prefork=0 maxchild=20

 and confirm the permissions on the cert file:



 root@blmail:~# ls -l /etc/ssl/private/

 total 4

 -rw-r- 1 root root 916 Feb 12 12:41 ssl-cert-snakeoil.key



 What process/user should have access to this key? Is it simply the

 wrong owner/group?

I usually set the key to be readable by group mail, and ensure that 
users cyrus and Debian-exim are members of group mail.


 I'll come back to the Spamassassin issue later (unless of course it's

 related!)

I think it is not related.

--

S pozdravem

Vladislav Kurz

=== WebStep, s.r.o. (Ltd.) = a step to the Web ===

address: Mezirka 1, 602 00 Brno, CZ, tel: +420 548 214 711

=== www.webstep.net === vladislav.k...@webstep.net ===




Cyrus Home Page:http://www.cyrusimap.org/
List Archives/Info:http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus