james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <nor...@apache.org>
Subject Re: Bandwidth Usage
Date Mon, 06 Sep 2010 15:34:14 GMT
Ok that would be easy.. Just write a Mailet and store the data
somewhere per domain. Something like that;


public class YourMailet extends GenericMailet {
/**
     * @see org.apache.mailet.GenericMailet#service(Mail)
     */
    public void service(Mail mail) {
        try {
            int size = mail.getSize();
            MailAddress recip = mail.getRecipient();

           // store data
            ....

        } catch (MessagingException e) {
            log(e.getMessage());
        }

    }
}

Bye,
Norman

2010/9/6 Carl Vorster <ccnews@propartners.co.za>:
> Hi Norman,
>
> Yes, you can say that, something like adding the total size(KB/MB) of
> incoming/outgoing mail together for a domain per month...
>
> Hope I'm making sense.
>
> Thanks
> Carl
>
>
> -----Original Message-----
> From: norman.maurer@googlemail.com [mailto:norman.maurer@googlemail.com] On
> Behalf Of Norman Maurer
> Sent: Monday, September 06, 2010 1:16 PM
> To: James Users List
> Subject: Re: Bandwidth Usage
>
> Hi Carl,
>
> ok so its not bandwith.. Its the amount of mail send and received per
> domain right ?
>
> Bye,
> Norman
>
>
> 2010/9/6 Carl Vorster <ccnews@propartners.co.za>:
>> Hi Norman,
>>
>> I need to track bandwidth usage i.e. incoming and outgoing mail.
>> The business wants to bill clients for the amount of bandwidth used.
>>
>>
>> Thanks
>> Carl
>>
>>
>> -----Original Message-----
>> From: norman.maurer@googlemail.com [mailto:norman.maurer@googlemail.com]
> On
>> Behalf Of Norman Maurer
>> Sent: Monday, September 06, 2010 12:49 PM
>> To: James Users List
>> Subject: Re: Bandwidth Usage
>>
>> Hi Carl,
>>
>> are you really want to track bandwith or storage ?
>>
>> Bye,
>> Norman
>>
>>
>> 2010/9/6 Carl Vorster <ccnews@propartners.co.za>:
>>> Hi,
>>>
>>> I need to track bandwidth usage per domain/user.
>>>
>>> What would be the best approach to tackle this?
>>>
>>>
>>> Thanks in advance.
>>>
>>> Carl
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Mime
View raw message