The 7 Log Management Tools Java Developers Should Know Splunk vs. Sumo Logic vs. LogStash vs. GrayLog vs. Loggly vs. PaperTrails vs. Splunk>Storm Splunk, Sumo Logic, LogStash, GrayLog, Loggly, PaperTrails – did I miss someone? I’m pretty sure I did. Logs are like fossil fuels – we’ve been wanting to get rid of them for the past 20 years, but we’re not quite there […]

Quickly indent multiple lines in vi/vim Indenting lines of programming code is essential for readability. Indenting multiple lines at once is a feature that any useful code editing software should have. As a programmer, I went far too long not knowing how to do this with vim (one of my favorite editors). It’s so easy, even Mike Tyson could do […]

Postfix — the Sendmail Replacement Architecture Some mail systems such as Sendmail are implemented as one large monolithic program that does everything. One large program certainly makes it easy to share data between different parts of the system. Unfortunately, one large program also makes it easy to make fatal mistakes. Postfix is based on semi-resident, mutually-cooperating, processes that perform […]

Setup Postfix with a remote SMTP relay host Sending outgoing email thru a 3rd party SMTP relay service is a quick and easy alternative to setting up a full fledged local email server. Google Apps/Gmail, Yahoo, and many ISPs provide SMTP relaying for free. This guide will cover configuring Postfix on a CentOS server to relay outgoing email to a 3rd party. […]

Better Use of Office 365 as a Smart Host with Postfix A while ago I wrote a post on how I managed to get my systems integrated with Office365 to send email notifications. At the time the method I used worked well enough but it was annoying. Every system had to log in individually which meant the username and password had to be distributed to […]

Postfix Configure Multiple ISP Client SMTP Authentication How do I support multiple ISP accounts (smarthost) in the Postfix SMTP client for relaying email? For example: [a] must be relay via [b] must be relay via [c] must relay all my default email via Only Postfix version v2.3+ supports multiple ISP accounts via sender-dependent override for […]

25, 465, 587… What port should I use? It’s a common question that we receive here at Mailgun. To ensure connectivity to our Simple Mail Transfer Protocol (SMTP) endpoint, Mailgun offers multiple port options, but which one should you use? Let’s first take a historical look at each port and then we’ll discuss today’s methodology for usage. If you’re not a history […]

Redirect all ServerAlias to ServerName on apache2 conf

#vi “/etc/apache2/sites-available/” <VirtualHost *:80> ServerAdmin ServerName ServerAlias ServerAlias ServerAlias ServerAlias         UseCanonicalName Off RewriteEngine On RewriteCond %{HTTP_HOST}  !^ [nocase] RewriteRule ^(.*)$$1 [last,redirect=301] Include /etc/apache2/included/ </VirtualHost>

How do I Compress a Whole Linux or UNIX Directory? Q. How can I compress a whole directory under Linux / UNIX using a shell prompt? A. It is very easy to compress a Whole Linux/UNIX directory. It is useful to backup files, email all files, or even to send software you have created to friends. Technically, it is called as a compressed archive. […]