Re: [Exim] Accounting

Top Page
Delete this message
Reply to this message
Author: Daniel Buchholz
Date:  
To: exim-users
Subject: Re: [Exim] Accounting
OK, some more info.

This is how the eximstats output looks now:

/------------------------------------------
Deliveries by transport
-----------------------
                      Volume    Messages
  domainA_delivery      2328           1
  local_delivery        18KB           2
  domainB_delivery       14MB         413
  remote_smtp           10MB         153
  domainC_delivery      15MB         163
-------------------------------------------/


remote_smtp has all remote deliveries, regardless of the sending domain (A,
B, C)

To have accounting for the domains it would be nice to have remote_smtp
split to
domainA_remote_smpt, domainB_remote_smtp and domainC_remote_smtp.
So I tried

/---------Transports---------
domainA_remote_smtp:
driver = smtp
domainB_remote_smtp:
driver = smtp
domainC_remote_smtp:
driver = smtp
remote_smtp:
driver = smtp
----------------------------/
/--------Routers------------
lookuphostA:
driver = lookuphost
transport = domainA_remote_smtp
domains = domainA
lookuphostB:
driver = lookuphost
transport = domainB_remote_smtp
domains = domainB
lookuphostC:
driver = lookuphost
transport = domainC_remote_smtp
domains = domainC
lookuphost:
driver = lookuphost
transport = remote_smtp
-----------------------------/

with messages ending up in remote_smtp regardless of sending domain.

Anything wrong with that? Any other idea of doing accounting on hosted
domains?

Thanks!

Daniel

> -----Ursprüngliche Nachricht-----
> Von: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
> Gesendet am: Mittwoch, 1. März 2000 17:57
> An: Daniel Buchholz
> Cc: exim-users@???
> Betreff: Re: [Exim] Accounting
>
> On Wed, 1 Mar 2000, Daniel Buchholz wrote:
>
> > Hi!!
> >
> > I would like to have seperate remote_smtp-transports for each
> domain I host
> > to provide some basic accounting. I read something about the
> domains-option
> > for routers but doing something like
> >
> > dom.ain-router:
> > driver = lookuphost
> > domains = dom.ain
> > transport = dom.ain_remote_smtp
> >
> > and
> >
> > dom.ain_remote_smtp:
> > driver = smtp
> >
> > showed no success.
>
> What went wrong? Apart from the fact that you can't have dots in
> transport names.
>
> However, it doesn't seem the best way of doing accounting.
>
>
> --
> Philip Hazel            University of Cambridge Computing Service,
> ph10@???      Cambridge, England. Phone: +44 1223 334714.

>
>