Setting Up Postfix Locally to Send Email via Google SMTP

Postfix

Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers email. This is required in order to be able to send emails from a local machine (without using any vendor’s client).

Installation

Postfix has to be configured. The suggested way to do that is via: sudo dpkg-reconfigure postfix. You can also directly edit your /etc/postfix/main.cf file and make changes to the configuration. For most purposes, dpkg-reconfigure should suffice.

Object Modeling Best Practices

OOP Is All About Encapsulation

Yes, that’s right. Object-oriented programming aims to encapsulate properties and methods into a consolidated object so that operations can be carried out on the object. The whole aim is to move away from procedural functions, which are not easy to reason with or prove correctness. But this principle often gets violated and people write procedural code using objects. Here is a classic example:

class Rectangle {
    private Long length;
    private Long breadth;

    //gettters
    //setters
    //constructors
}


ELK Stack Overview and Use Cases

Instead of writing about what exactly ELK is, let me state the need and use cases for it.

Log Aggregation and Efficient Searching

In a very naive scenario, you have one server and lots of log messages generated by your application and system which are crucial to look at once something goes wrong. Now there are basically two problems with it: