Update 'config/postfix/clear-queue.sh'
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "#Clear mail queue every night" >> /etc/crontab
|
echo "#Purge mail queue every night" >> /etc/crontab
|
||||||
echo "0 0 * * * /opt/clear-queue.sh" >> /etc/crontab
|
echo "0 0 * * * root /opt/clear-queue.sh" >> /etc/crontab
|
||||||
echo "#!/bin/sh"
|
echo "#!/bin/sh" >> /opt/purge-queue.sh
|
||||||
echo "postfix -f"
|
echo "postfix -f" >> /opt/purge-queue.sh
|
||||||
|
chmod +x /opt/purge-queue.sh
|
||||||
|
|
||||||
|
echo "#Clear mail queue weekly" >> /etc/crontab
|
||||||
|
echo "@weekly root /opt/clear-queue.sh" >> /etc/crontab
|
||||||
|
echo "#!/bin/sh" >> /opt/clear-queue.sh
|
||||||
|
echo "postsuper -d ALL" >> /opt/clear-queue.sh
|
||||||
|
chmod +x /opt/clear-queue.sh
|
||||||
Reference in New Issue
Block a user