PDF(2.1 MB) View with Adobe Reader on a variety of devices
ePub(2.2 MB) View in various apps on iPhone, iPad, Android, Sony Reader, or Windows Phone
Mobi (Kindle)(2.6 MB) View on Kindle device or Kindle app on multiple devices
Updated:February 28, 2020
This document provides instructions on how to flash Asterisk onto an SD card and install Webmin and Postfix Mail Server. The goal is to install Postfix Mail Server onto a Raspberry Pi for testing purposes.
The Raspberry Pi is not a Cisco supported product. This document is for support purposes only and is not a solution document.
What is Webmin?
Webmin is a Graphical User Interface (GUI) for system administration for Unix-like system. Unix is an operating system that supports and allows for multitasking and multiuser functionality. You can easily install modules on Webmin such as Postfix Mail Server, Lightweight Directory Access Protocol (LDAP) server, Procmail Mail filter, Point-to-Point Tunneling Protocol (PPTP) VPN Server, and many more. You can also set up user accounts, DNS, file sharing, and other configurations that you need instead of having to manually edit each Unix configuration file. This is a good solution if you don’t like working with command lines and would rather use the GUI to help you configure and add new functionality.
Postfix Mail Server is an open-source mail transfer agent. It is an application that is used to send and receive mail. Postfix Mail Server can be used with other modules such as Dovecot. Dovecot is an open-source Internet Message Access Protocol (IMAP) and Post Office Protocol 3 (POP3) server that is used as a mail storage server.
Everyone uses email. Users can host their own mail server, or they can go with a third-party provider. One of the biggest questions that people have when using a third-party provider is, “Am I comfortable with that?” Most users would probably want to use a third-party provider because their security is better than what they have at their home or at their small business; but some users would rather host it internally. When hosting your own mail server, you have complete control over your own data.
Additionally, hosting your own mail server means you get to control your own email address with your domain name (i.e. Bob@esupport.com). Which for business presentation looks better than reaching out with a third-party domain name (i.e. Bob@hotmail.com). There are a lot of choices that the users have when hosting their own mail server. There is Exchange, Sendmail, Groupwise, Postfix, and many more. Some servers are free, but some are not. In this case, Postfix is a free and open-source mail server that users can install on their Raspberry Pi.
Raspberry Pi (Pi 3 B+, Pi 3, Pi 2, B+, B, and A model – for more information, check out: raspberry-asterisk.org)
In the raspberry-asterisk downloads page, scroll down till you see the latest image available for download. In this example, we selected the raspbx-04-04-2018.zip next to the HTTP field. The zip file should start installing.
Make sure you have enough storage on your SD card. We will be using a 32GB SD card for this tutorial.
Once you have downloaded the zip file, navigate to the location of the zip file. Right-click the zip file and select Extract All….
Feel free to use other software (i.e. 7-Zip, WinRAR, WinZip, etc.) to extract the zip file.
An Extract Compressed (Zipped) Folders window should appear. Click Extract to extract the zip file in the folder that it is currently in.
Feel free to extract it into a different folder. To do this, click Browse… and select a different folder.
Once the file has been extracted. You should see the unzipped folder.
If you haven’t installed Etcher yet, check out their website by clicking here.
The Etcher window should appear. Click Select image.
The Open window appears. Navigate to the location of the raspbx image. Select the raspbx-04-04-2018.img and click Open.
Make sure your SD card is selected. Click Change to select a different SD card. Click Flash! when you are ready to flash the raspbx image to your SD card. It will take some time to flash the image onto your SD card. Please do not interrupt it. It should prompt you when it is finished flashing the image onto your SD card.
Make sure your SD card is plugged into your device. You may need an adapter if your device does not have an SD card port.
You should now have successfully imaged your SD card with the raspbx image.
Connecting to the Raspberry Pi using SSH
Connect to your Raspberry Pi by Secure Shell (SSH) or connect your Raspberry Pi to a computer monitor via HDMI. Before you can access your Raspberry Pi using SSH, you would need to know the IP address of the Raspberry Pi. In this example, PuTTY was used to SSH into the Raspberry Pi.
Feel free to try some of the methods in Raspberry Pi documentation to find the IP address of your Raspberry Pi: Raspberry Pi IP Address.
Enter the IPaddress of your Raspberry Pi in the Host Name (or IP address) field. Ensure that the port is 22 and SSH is selected as the Connection Type. Click Open to start the session.
A PuTTY Security Alert will appear. Click Yes to continue with the connection.
Step 4. You will be prompted with a login. Enter the username root and raspberry as the default password.
It is recommended to change your password when you are logged in. Use the passwd command to change your password.
Installing Webmin on the Raspberry Pi
Some commands we will be using can be found on this page. For the most updated commands, refer to the link provided.
Enter the following command to install dependencies. When prompted to continue, press y on your keyboard to continue.
Enter the command below to download the DEB version of Webmin into the Raspberry Pi. A DEB file extension is a Debian Software Package file. This is mainly used in Unix-based operating system which contains archives for executable files, documentation, and libraries.
The administration username is set to root and the password is your current root password.
dpkg --install webin_1.900_all.deb
You should have successfully installed Webmin on your Raspberry Pi.
Accessing Webmin and Installing Postfix Mail Server
Enter https://IP_address_of_your_raspberry_pi:10000 in the URL of your web browser to access the web page of Webmin. In this example, https://192.168.86.39:10000 was entered.
If you don’t remember the IP address of your Raspberry Pi, then you can try and access it using https://raspbx:10000.
Log in to the web configuration page of Webmin.
Note: The username is set to root and the password is your current password for root. If you have changed your password in step 4 of Connecting to the Raspberry Pi using SSH section, then enter the password that you have changed.
In the Webmin tab, click Un-used Modules drop-down list.
In the Un-used Modules drop-down list, find Postfix Mail Server and click on it.
In the Postfix Mail Server, click the Click here button to download and install Postfix. It will look for packages that you haven’t installed yet.
Click the Install Now button.
A list of packages will appear showing the packages that you will be installing. If the install has not started, click Install Now button again to start the installation.
Postfix should be installing. You should see something like the image below.
Once Postfix has been installed, you should get a notification at the bottom stating that “install complete” or “Successfully installed 2 packages.”
Navigate to Postfix Mail Server on the left side menu. Postfix Mail Server may be in the Servers or Un-used Modules drop-down list. In this example, Postfix Mail Server was in Un-used Modules drop-down list.
You should have successfully installed Postfix Mail Server on the Raspberry Pi. To start providing mail service with Postfix, there are three configurations that need to be configured in most cases. Click General Options, then configure What domain to use in outbound mail, What domains to receive mail for, and local networks. Click the Save and Apply button to save your change.