Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

how to empty mail queue by cron?

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
palle
Posts: 1
Joined: Sat Jan 23, 2016 4:49 pm

how to empty mail queue by cron?
  • Quote

Post by palle » Sat Jan 23, 2016 4:57 pm

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

Code: Select all

sudo /usr/sbin/exiqgrep -o 7200 -f '<>' -i | xargs -r /usr/sbin/exim -Mrm
and

Code: Select all

sudo /usr/sbin/exiqgrep -z -o 7200 -i | xargs -r /usr/sbin/exim -Mrm 
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!
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: how to empty mail queue by cron?
  • Quote

Post by skurudo » Sat Jan 23, 2016 7:40 pm

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.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password