This simple Linux shell script can be useful if you need to quickly check if there are problems in your server mail queue.
You can either download the script or run it directly from our git repository.
curlmust be installed on your system.
2. Mail queue script usage.
Simply run the following command on your server command line.
bash <(curl https://raw.githubusercontent.com/raimundas/bash-scripts/master/spam-check.sh)orCommand:
bash <(curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/raimundas/bash-scripts/master/spam-check.sh)NOTE: The following option will request the server not to use cached version.
- curl -H ‘Cache-Control: no-cache’