Origional Post: Stop-Outbound-SMTP-Automatically-on-Mail-Queue-Size-Alert
This is cool, HOWEVER how do you send an email if you just blocked outbound email?
I’ve updated the line to directly send via my email server, as long as I am not using port 25, I’m fine (I permit internal relay on my internal IP)
echo "Port 25 has been disabled in the firewall for outbound communications until this is fixed." | mailx -s "$WARNING" -S smtp=smtp://relay.higherinfogroup.net:587 -S from="[email protected](QueueReport)" $EMAIL