PDA

View Full Version : Email Bandwidth Calculation - Any updates?



rhoekman
05-28-2004, 04:31 AM
I have seen some posts regarding getting the bandwidth of emails sent by the user?

Any updates on this?

DirectAdmin Support
05-28-2004, 11:34 AM
Bump this thread after this coming release and we'll see about putting it in the next one :)

John

ProWebUK
05-28-2004, 05:05 PM
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

DirectAdmin Support
05-31-2004, 03:40 PM
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

nobaloney
06-03-2004, 07:17 PM
Consider it bumped.

Jeff


Originally posted by DirectAdmin Support
Bump this thread after this coming release and we'll see about putting it in the next one :)

DirectAdmin Support
06-04-2004, 11:39 AM
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

nobaloney
06-04-2004, 11:45 AM
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

DirectAdmin Support
06-05-2004, 01:16 PM
Jeff,

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


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 -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}
use_bsmtp
user = mailand
lookuphost:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = remote_smtp
no_moreand
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
unseenI 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

nobaloney
06-06-2004, 12:11 PM
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

servertweak
03-10-2005, 05:44 AM
Originally posted by jlasman
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

barry
09-15-2005, 11:26 AM
So has this been done? And if so how do we see which php scripts sent the email?

DirectAdmin Support
09-15-2005, 12:22 PM
Very old thread.

If you want these changes, use this:
http://help.directadmin.com/item.php?id=51

It doesn't know which php script sent the email.

I believe there is a php patch that adds the script name to the email headers in the mail() function. Here we go:
http://www.lancs.ac.uk/~steveb/php-mail-header-patch/

John