How do i disable e-mail traffic calculation?

ساخت وبلاگ
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

DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 79 تاريخ : جمعه 3 شهريور 1402 ساعت: 15:25