Unblock Port 25: Getting Schooled by a sysadmin

[linkstandalone]

If you didn't know, I host my own mail server here at mail.simonxiang.xyz (don't try to type that into your browser). Although setting it up is usually a long and forlorn process (or so I've heard), for me it was actually quite simple. There's a YouTuber out there that goes by Luke Smith that wrote a nice script to easily set up mail on your new server. If you just read the README and make sure you have all the requirements set up on your domain registrar and VPS provider, it's a two minute process to run the script and be on your merry way with a fancy new email server.

However, after setting it up I couldn't send mail for some strange reason. After testing two possibilities (domain on a spam list, postfix configuration issue), my cocky self decided that I didn't mess up anywhere when installing and that my VPS provider, Vultr, had blocked the port that allows me to send email (port 25) so I couldn't use their VPS to send spam emails or something like that. So I sent them a slightly condescending support ticket that went something like this:

Hello Vultr, Can you unblock Port 25? I know y'all are blocking it because you think I'll send spam emails or something, but I promise I wont.

Regards,
Simon

In 57 seconds, a system administrator at Vultr responded with this (not verbatim):

Hello Simon,

We're not blocking port 25 access. Check your instances firewall rules and listening services, you can do this by running netstat -uplnt | less. Furthermore, also run iptables -L for firewall rules, and iptables -F to flush rules from the chain: to test outbound port 25 access, run telnet portquiz.net 25. Thanks,

[omitted for privacy],
Systems Administrator

After spending the last two months learning how to use Linux and setting up my own server, I thought I knew a lot of commands (I have a terminal "cheat sheet" that's 250+ lines long), and a lot about how Linux works in general.

Well, after reading his response, I felt like I knew nothing. It was a good return to reality: Ego is something that creeps into everything (especially when things are going well), and ego leads to complacency. Complacency leads to the slow decline of the quality of work you put out, whether it be personal, academic, or job related. Basically, it's good for us to feel like complete idiots sometimes— it's how we get better.

(After this exchange, I added the three new commands he taught me and some more to a "systems administration" section of my terminal commands cheat sheet).

Anyways, that's it for now. We should all follow along with this motto (spoken by a very wise person):

"I don't know everything, I just know what I know."

–HT