search for: diskalert

Displaying 2 results from an estimated 2 matches for "diskalert".

Did you mean: disapert
2019 Oct 22
0
dovecot disk space settings
...d to adapt to your own environment. #!/bin/bash MAILSPACE=$( df -h | grep "/dev/sdd" | awk '{ print $4 }' | sed 's/G//g' ) if [ "$MAILSPACE" -lt "5" ] ; then MESSAGE="Alert, only $MAILSPACE Gb of space left on Mail Drive" df -h > /tmp/diskalert.txt mutt -s "$MESSAGE" me at example.com < /tmp/diskalert.txt else # Uncomment to debug MESSAGE="Safe for now: $MAILSPACE Gb of space left on Mail Drive" #echo $MESSAGE fi
2019 Oct 22
3
dovecot disk space settings
Ok, what about placing a dummy file of 5GB or so on the partition, that you can remove when necessary? -----Original Message----- Subject: Re: dovecot disk space settings >> I don't want to restrict each mailbox size. It's just to prevent > running out space completely. > > Why? (If I may ask) > > To provide mailboxes with unlimited space. And to make it