Suspend delivery at certain times, the format is in "crontime". If the crontime matches (that particular minute) it will or will not suspend the queue. This can be used eg. to suspend traffic on evening or weekends by regulatory law.
Follow the instructions in our manual to add our package repository and then run the below command.
apt-get install halon-extras-suspend-time
yum install halon-extras-suspend-time
Only deliver mail on working hours on weekdays
plugins:
- id: suspend-time
config:
suspends:
- tag: nonworkhours
ifnot:
- "* 8-17 * * 1-5"