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;
Work to archieve this?
Regards
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