Email Bandwidth Calculation - Any updates?

On the subject of calculations and quotas, could we have the live quotas implemeted also :D

If you can let me know exactly what folders/files should be included for each directory I'd be happy to write the script myself... which could then be called by a token possibly?

Chris
 
Ah yes, live quotas. The system currently in place can do it with a few minor code additions.. just need to decide when the tally is done. I'll assume they'd want it right when they login.. just things like reseller would work as well because if they have 300+ users... they'd be done doing what they're doing before the tally is done. (would for a tally proccess from the da process so it would tally while the page is being sent.. then the next page they view would be updated.. assuming it's done......)

John
 
Consider it bumped.

Jeff

DirectAdmin Support said:
Bump this thread after this coming release and we'll see about putting it in the next one :)
 
Hello,

I've already been working on a new exim.pl and working that into Jeffs exim.conf. The new exim.pl will have 1) max emails per day 2) bandwidth counting

and one very important new one:

3) exim will *know* who sent an through a php script as the apache user. It will be counted for both the bandwidth and against the daily email limit. I'll let you guys know how it's done later, but just a heads up ;) (It was a fluke I figured it out)

John
 
Glad to hear these updates, John.

Please let me know if you need any changes in my exim.conf file; I'd like to keep mine in sync with yours.

Thanks.

Jeff
 
Jeff,

I'm not done quite yet, but so far, the only things I've added are:

Code:
spamcheck:
  driver = pipe
  batch_max = 100
  command = /usr/sbin/exim -oMr spam-scanned -bS
  current_directory = "/tmp"
  group = mail
  home_directory = "/tmp"
  log_output
  message_prefix =
  message_suffix =
  return_fail_output
  no_return_path_add
  transport_filter = /usr/bin/spamc [b]-u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}[/b]
  use_bsmtp
  user = mail
and
Code:
lookuphost:
  driver = dnslookup
  domains = ! +local_domains
  ignore_target_hosts = 127.0.0.0/8
  [b]condition = "${perl{check_limits}}"[/b]
  transport = remote_smtp
  no_more
and
Code:
userautoreply:
   driver = accept
   condition = ${lookup{$local_part} lsearch {/etc/virtual/${domain}/autoresponder.conf}{yes}{no}}
   require_files = /etc/virtual/${domain}/reply/${local_part}.msg
   transport = userautoreply
   [b]unseen[/b]
I may be adding a few more "condition"s but they'd just be really small one liners. Of course, this stuff can't be done until the new exim.pl is out :)

Note that the spamc line will stiff default to the main spamassasin config file if the user spamassassin config file doesn't exist.

John
 
Thanks, John.

I'll keep these for my general knowledge but won't change anything in my "free" DA SpamBlocker exim.conf release until you're fully ready.

Hopefully we can make concurrent releases.

Jeff
 
jlasman said:
Thanks, John.

I'll keep these for my general knowledge but won't change anything in my "free" DA SpamBlocker exim.conf release until you're fully ready.

Hopefully we can make concurrent releases.

Jeff

agreed , thanks but willing to wait
 
So has this been done? And if so how do we see which php scripts sent the email?
 
Back
Top