diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 35e9bee..43ed726 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -770,6 +770,11 @@ POSTFIX_INSTALL(){ [ ${action-x} ] && exit 0 ENTER2CONTINUE } +POSTFIX_CLEARQUEUE(){ + systemctl stop postfix + postsuper -d ALL + systemctl start postfix +} BASHRC_INSTALL(){ echo -e "${idsCL[Green]}Installing root/.bashrc${idsCL[Default]}" /usr/bin/wget -O ~/.bashrc https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/bashrc @@ -1220,6 +1225,7 @@ if [ ${action-x} ]; then watchtower) INSTALL_WATCHTOWER ${2};; docker-cleanup) DOCKER_CLEANUP;; syncthing-update) SYNCTHING_APT_UPDATE;; + mailclear) POSTFIX_CLEARQUEUE;; # *) echo "Thats an invaild option,"; # exit 1;; esac