I’m not really sure anybody tried too hard when writing this spam message…
Simple really and more as a reference when I forget
sudo launchctl start org.postfix.master
However this will only last for 60 seconds unless you have “fixed” your version of Postfix.
Sometimes you want to send out but not have every spammer try and send you rubbish on port 25 so changing to a non standard port helps with automated spammers.
First edit the config file
sudo nano etc/postfix/master.cf
and find the line
smtp inet n – n – – smtpd
and change to
9876 inet n – n – – smtpd
and then save and restart Postfix
sudo service postfix restart
then if you need to check simply grep
netstat -tanp | grep 9876
which should give you at least a line like this
tcp 0 0 0.0.0.0:9966 0.0.0.0:* LISTEN
Today I had a problem with apt-get using ipv6 and timing out. The answer is simple, you can force ipv4 if required.
sudo apt-get update -o Acquire::ForceIPv4=true
Might not solve my issue that the servers appear to be down but hoehum…
tl:dr Just send a tweet with the hashtag #wakeonlan and a properly formatted mac address like AA:BB:CC:DD:EE:FF, an ip address or FQDN and a port number and that is it. Easy.
It all started a few weeks ago when I was looking at Slack to use at a clients site so we could integrate more. If you haven’t tried Slack I would highly recommend taking a look – it’s WhatsApp for groups with a steroid injection of crazy fun stuff for developers. One of those fun things are hooks where you can define actions when things happen. So I have Slack hook alert to a group called #twitter whenever a tweet mentions @depicus it would call a webpage on a server. Sadly the info Slack passes wasn’t enough for me as it doesn’t include the message body of the tweet. So sadly my brave idea of Wake on Lan via Twitter died….