Posts

How to set up RainLoop webmail in Ubuntu server

Image
I had originally written this tutorial for xmodulo.com Webmail is undoubtedly an essential part of any mail server. While native email client software has typically more features compared to webmail services, accessing IMAP or SMTP server ports via an email client from outside of the trusted network can sometimes be tricky. Moreover, while you need a designated workstation, laptop, or mobile device to use an email client, you can use webmail services from anywhere as long as you have an Internet connection. This tutorial will focus on setting up  RainLoop  webmail on an Ubuntu server running Apache. RainLoop is PHP-based webmail, and has the following features. Supports apache, nginx and other web servers. Standard interface supplemented with a gallery of themes to select from. Free to use for personal and non-profit projects. As of this writing, there is no support for email filtering and out-of office auto replies yet. Install RainLoop on  Ubuntu  Ser...

How to monitor BGP sessions with Nagios

Image
I had originally written this tutorial for xmodulo.com As a versatile network monitoring tool, Nagios can monitor the health of various network elements such as routers and switches. Among others, Nagios can be configured to monitor BGP sessions of a router, and generate alerts whenever there is something wrong in existing  BGP sessions . Several BGP monitoring plugin tools exist for Nagios. These tools are useful in monitoring critical BGP peers of a router, and generating alerts for them. This tutorial will explain  how to monitor BGP neighbors using Nagios plugin tools . Tested Platforms Tested and working perfectly with Cisco ASR 1000 series routers. Tested and working perfectly with Cisco 3700 series layer-3 switches. Should work with other Cisco devices as well. Tested and does NOT work with Quagga routers. Not tested on JunOS. Tested Topology Nagios will monitor all the BGP sessions for router-1. BGP neighbors AS 50 and AS 70 are vital for operation, s...

How to configure a mail server with Postfix and Dovecot for different requirements

Image
I had originally written this article for xmodulo.com Mail server admins may often have to deal with different types of requirements based on service policies or customer-specific requests. This tutorial will cover  common cases of mail server administration . More specifically, it will show how different mail server requirements can be met by tuning parameters of  Postfix and Dovecot . Useful Postfix Commands Before we start, let us look at some commands related to Postfix. 1. postfix reload vs. service postfix restart To reload Postfix with any updated configuration files, two commands can be used. postfix reload:  This command will check configuration files, and will update Postfix accordingly. As this command does not cause Postfix to shut down, it is highly recommended in production environments. service postfix restart:  This command will first shut down Postfix, and then start it again. This command will start a fresh instance of Postfix. De...

How to enable user authentication for a Postfix SMTP server with SASL

Image
I had originally written this tutorial for xmodulo.com Every mail server administrator dreads his or her server becoming compromised by spammers. A lot of effort, time and even money is spent on securing mail servers and making sure that the servers do not become open relay. To combat against spambots in an SMTP server, Postfix in general uses the  mynetworks  parameter to specify the trusted sender network i.e., LAN. In a typical scenario, the users stationed in the internal LAN are legitimate users, and Postfix will happily accept SMTP requests from them, and forward the emails towards destination. Although this used to be the standard practice in the past, today's users want mobility. Everyone wants to be able to send/receive emails in their phones/tablets/laptops at work, home, on the go, or even from their favorite coffee shop around the corner. For people who are in the fields for critical services, a simple email alert could save a lot of time, effort and money. ...