Change Postfix port number

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



Wake on Tweet – because you never asked for it…

Wake on Tweet

Wake on Tweet

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….

Continue reading