how to empty mail queue by cron?
how to empty mail queue by cron?
hello everyone,
i am using latest vesta version on small debian VPS (1G RAM).
Lately i got the problem that one domain email service is getting attacked. So it over run the mail server with too
many wrong delivered email requests. I would like to set an auto delete.
I tried to set
and
into the cron. but it didn't work. Has anyone an idea what i did wrong? or is there an more acurate way to approach this problem?
any hint is welcome and thanks in advance!
i am using latest vesta version on small debian VPS (1G RAM).
Lately i got the problem that one domain email service is getting attacked. So it over run the mail server with too
many wrong delivered email requests. I would like to set an auto delete.
I tried to set
Code: Select all
sudo /usr/sbin/exiqgrep -o 7200 -f '<>' -i | xargs -r /usr/sbin/exim -Mrm
Code: Select all
sudo /usr/sbin/exiqgrep -z -o 7200 -i | xargs -r /usr/sbin/exim -Mrm
any hint is welcome and thanks in advance!
Re: how to empty mail queue by cron?
With sudo from admin you have some limitations, check sudoers.
And if you plan use logn command in cron, it's not alwayes good.. better make sh script for more than one command.
And if you plan use logn command in cron, it's not alwayes good.. better make sh script for more than one command.