Email Usage Stats using a smarthost

jruiz

Verified User
Joined
Jul 2, 2013
Messages
6
Hi!!

We're using an external smarthost to filter all outgoing emails. It's working very well, we just modified exim.conf to add a new router, transport and authenticator.

The problem is that since we use the smarthost the DA page CMD_EMAIL_USAGE shows no data, all counters are 0 for every domain. I don't really know how stats are collected, is it in a route or similar? When exactly an email is counted as "sent" in exim.conf?

Thanks a lot!!
Regards.
 
Hello,

The exim.pl function:
Code:
[COLOR=#000000]lookuphost:[/COLOR]  driver = dnslookup
  domains = ! +local_domains
  ignore_target_hosts = 127.0.0.0/8
  condition = "${perl{check_limits}}"
  transport = remote_smtp
  no_more[COLOR=#222222][FONT=Verdana]
is when the email is counted..

If you've got a smarthost... you might be able to put that "condition" into it to count the usage.
I have no idea if the variables will line up, but as lookuphost and smarthost are similar, there is a good chance it will work.

John[/FONT][/COLOR]
 
Thank you very much John, didn't see it... I'm including the condition, I'll see if the stats are again counting...
Regards!
 
Back
Top