Control Web Panel

WebPanel => Postfix => Topic started by: hanliong on February 16, 2022, 04:01:23 AM

Title: How to empty the spool email?
Post by: hanliong on February 16, 2022, 04:01:23 AM
In Cpanel I use bash script as follows:

Code: [Select]
#!/bin/sh

/bin/rm -rf /var/spool/exim/input/
/bin/rm -rf /var/spool/exim/msglog/
/etc/rc.d/init.d/exim restart

It is used to clear the spool email then restart the exim.
But in CWP I cant find the same folder. How to do that in CWP as well as restart the exim?
Thanks.
Title: Re: How to empty the spool email?
Post by: rcschaff on February 16, 2022, 08:55:46 PM
CWP uses PostFix, not Exim.  I would not recommend removing anything from the que.  Eventually, it will give up on non-deliverable, and remove them automatically
Title: Re: How to empty the spool email?
Post by: studio4host on February 16, 2022, 09:38:36 PM
info: http://wiki.centos-webpanel.com/postfix-mail-server-commands
Title: Re: How to empty the spool email?
Post by: hanliong on February 17, 2022, 02:08:48 AM
Ok, thanks for all for your information.