How do i disable e-mail traffic calculation?

pcburakq

Verified User
Joined
Feb 6, 2015
Messages
31
Hello all,

I have a customized exim installation for rate limiting and using a gateway server to send e-mails.

Everything works well, however DirectAdmin sometimes randomly calculate some unusual traffic.

One account might calculate 100 GB of Email traffic in a day, while another account might calculate over 2 TB!

I'm aware it's most likely caused by a connection not able to be properly closed so it calculates indefinetaly.

I want to stop DirectAdmin from calculating e-mail, pop and imap traffic altogether but haven't been able to find success.

I have a small script that empties /etc/virtual/usage/usernames.bytes files but abnormal traffic still calculates.

I can see that it also calculates dovecot traffic so would a small script like;

#!/bin/bash # This script clears the contents of all files with a .bytes extension # in the /etc/virtual/usage/ directory. # Loop through each .bytes file and clear its contents for file in /etc/virtual/usage/*.bytes; do > "$file" > /var/log/dovecot-lmtp.log > /var/log/dovecot-lmtp-error.log done

Work to archieve this?

Regards
 
I've detected that the script i've prepared does not work, DirectAdmin still calculates Email, Imap and POP traffic.

How can i prevent DirectAdmin from calculating these?

Regards
 
Anyone has any idea?

Cleaning;

/var/log/dovecot-lmtp.log
/var/log/dovecot-lmtp-error.log
/etc/virtual/usage/*.bytes

Files just cause the customers unable to see their sent mail details, nothing else.
I don't want directadmin to calculate e-mail traffic but couldn't figure out a way to.

Regards
 
Back
Top