Update 'config/postfix/clear-queue.sh'

This commit is contained in:
b.waal
2019-10-03 14:06:08 +02:00
parent 15638c31cd
commit fd23efb754

View File

@@ -1,6 +1,13 @@
#!/bin/bash
echo "#Clear mail queue every night" >> /etc/crontab
echo "0 0 * * * /opt/clear-queue.sh" >> /etc/crontab
echo "#!/bin/sh"
echo "postfix -f"
echo "#Purge mail queue every night" >> /etc/crontab
echo "0 0 * * * root /opt/clear-queue.sh" >> /etc/crontab
echo "#!/bin/sh" >> /opt/purge-queue.sh
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