/etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP myhostname = $HOSTNAME mydestination = relayhost = mynetworks = 127.0.0.0/8 inet_interfaces = loopback-only inet_protocols = ipv4
/etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP myhostname = $HOSTNAME mydestination = relayhost = mynetworks = 127.0.0.0/8 inet_interfaces = loopback-only inet_protocols = ipv4
upstream $PROXY_NAME {
server 127.0.0.1:$PROXY_PORT;
}
server {
location / {
proxy_set_header Host $host;
proxy_set_header Proxy "";
proxy_set_header X-Real-IP $remote_addr;
Move-ActiveMailboxDatabase $DATABASE -ActivateOnServer $SERVER -SkipLagCheck -SkipClientExperience -SkipHealthChecks -MountDialOverride:None
sudo killall -HUP mDNSResponder
grep offline /sys/devices/system/memory/*/state | \
cut -d: -f1 | \
while read -r mem; do
echo online > "$mem";
done
tune2fs -m 0 /dev/sda1
nc -z $SERVER $PORT
wget -r -l inf -nH -nc --restrict-file-names=nocontrol ftp://$USER:'$PASSWORD'@$SERVER/
# keep ssh connection alive
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
# reset iptables rules/chains
iptables -F
iptables -X
iptables -t nat -F
postsuper -d ALL