Trending February 2024 # How To Run Android Apps On Ubuntu Linux With Anbox # Suggested March 2024 # Top 2 Popular

You are reading the article How To Run Android Apps On Ubuntu Linux With Anbox updated in February 2024 on the website We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested March 2024 How To Run Android Apps On Ubuntu Linux With Anbox

For a long time people have been trying to get Android apps running on Linux. After all, it makes a whole lot of sense. Android does use the Linux kernel. So why has it been so hard then?

Aside from the Linux kernel, Linux and Android are radically different systems. Linux uses the GNU user environment, while Android has its own entirely different one that’s heavily reliant on Java. Android also relies on many Google-specific tools like those that run the Play store. Of course, none of those are available for or run on Linux.

Anbox aims to bridge the gap by providing a compatibility layer between Android apps and Linux. It uses the host system’s Linux kernel but creates its own Android userspace. You can think of it as being sort of like Wine (Windows compatibility layer).

It’s important to keep in mind that Anbox is in early Alpha. Don’t expect perfection right now. The purpose of this is to experiment and test out features and apps. Things will break. Over time, the project will mature, and you’ll probably see some improvement in the coming months.

Install Anbox

If you’re running Ubuntu, you should already have Snap installed. Anbox is packaged and distributed as a Snap package. Use it to install Anbox.





anbox Install the Anbox Modules

You’re going to need a couple of specialized kernel modules before Anbox will work properly. They’re available from a PPA, so enable it on your system and install them.








apt update

Running Anbox

Launching Anbox is a little strange. Right now the launcher itself doesn’t load everything that you need. First, you need to open up a terminal window. In that window run the following command.

It’ll look like the command is unresponsive. It’s not. Just leave that window running in the background.

Now, launch Anbox the way you normally would through Unity or whichever desktop you’re running.

It’ll take a few seconds, but Anbox will open and show you the apps that it currently has installed. The assortment is about as bare-bones as it gets. There are only basic utilities there – no browser or Play Store.

Feel free to explore what you do have. It should all work well. You’ll immediately recognize everything as the default applications that come with Android.

Install Packages With ADB

So how do you get actual apps on there? Again, this is still very rough. You need to use the ADB (Android Debug Bridge). At least it’s easy to set up.

Open a terminal and install the necessary packages with apt.

After they’re done installing, you can go to a website, like ApkMirror, to pick up some Android app packages. You can’t export them from your phone because Anbox is running as an x86 computer, not ARM. That’s an important thing to keep in mind as you’re looking for apps.

It’s also important to remember that not every app will work. Currently, there’s no way to get the Play Store or Google Play Services working in Anbox. As a result, no apps that require Play Services to work will.

Once you have an app to install, you can use adb to do it. While Anbox is running, open a terminal and type the following command. The app will be installed in Anbox.

You’ll see the app icon appear in Anbox when it’s done. Try launching it. It might work; it might not. Experiment. That’s really the point right now.

Closing Thoughts

While Anbox might not be ready for daily use, it is an interesting tool that deserves some attention and some testing. As it develops and matures, Anbox may be the best way to run Android apps in Linux, and can potentially open up a whole new world of applications to Linux users.

Nick Congleton

Nick is a freelance tech. journalist, Linux enthusiast, and a long time PC gamer.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

You're reading How To Run Android Apps On Ubuntu Linux With Anbox

How To Download And Install Linux (Ubuntu) On Windows Pc

Now that we know what Linux is, it is the time that to learn how we should install it on the computer and choose which Distribution we should use. Let us start by understanding what a Linux Distribution is.

In this tutorial, we will learn –

What is a Linux Distribution?

Well, now as you know that Linux is open-source, free to use kernel. It is used by programmers, organizations, profit and non-profit companies around the world to create Operating systems to suit their individual requirements.

To prevent hacking attempts, many organizations keep their Linux operating systems private.

Many others make their variations of Linux available publicly so the whole world can benefit at large.

These versions/ types /kinds of Linux operating system are called Distributions.

How many distributions are out there?

There are hundreds of Linux operating systems or Distributions available these days. Many of them are designed with a specific purpose in mind. For example, to run a web server or to run on network switches like routers, modems, etc.

The latest example of one of the most popular smartphone-based Linux Distribution is Android!

Many of these Distributions are built to offer excellent personal computing.

Here, are a few popular Linux Distributions (also called Linux Distro) –

Linux Distribution Name Description

Arch This Linux Distro is popular amongst Developers. It is an independently developed system. It is designed for users who go for a do-it-yourself approach.

CentOS It is one of the most used Linux Distribution for enterprise and web servers. It is a free enterprise class Operating system and is based heavily on Red Hat enterprise Distro.

Debian Debian is a stable and popular non-commercial Linux distribution. It is widely used as a desktop Linux Distro and is user-oriented. It strictly acts within the Linux protocols.

Fedora Another Linux kernel based Distro, Fedora is supported by the Fedora project, an endeavor by Red Hat. It is popular among desktop users. Its versions are known for their short life cycle.

Gentoo It is a source based Distribution which means that you need to configure the code on your system before you can install it. It is not for Linux beginners, but it is sure fun for experienced users.

LinuxMint It is one of the most popular Desktop Distributions available out there. It launched in 2006 and is now considered to be the fourth most used Operating system in the computing world.

OpenSUSE It is an easy to use and a good alternative to MS Windows. It can be easily set up and can also run on small computers with obsolete configurations.

RedHat enterprise Another popular enterprise based Linux Distribution is Red Hat chúng tôi has evolved from Red Hat Linux which was discontinued in 2004. It is a commercial Distro and very popular among its clientele.

Slackware Slackware is one of the oldest Linux kernel based OS’s. It is another easy desktop Distribution. It aims at being a ‘Unix like’ OS with minimal changes to its kernel.

Ubuntu This is the third most popular desktop operating system after Microsoft Windows and Apple Mac OS. It is based on the Debian Linux Distribution, and it is known as its desktop environment.

The Best Linux Distribution!

The term best is relative. Each Linux distribution is built for a specific purpose-built to meet the demands of its target users.

The desktop Distributions are available for free on their respective websites. You might want to try them one by one till you get to know which Distribution you like the most. Each one of them offers its own unique design applications, and security.

We will be using Ubuntu for our learning purpose as it’s easy for a beginner to understand.

Also Check:- UNIX / Linux Tutorial for Beginners: Learn Online in 7 days

How to Install Linux

Let’s look the below Linux installation guide which has various methods we can use to Download Linux(Ubuntu) and install it.

Installing Linux using USB stick

This is one of the easiest methods of installing Ubuntu or any distribution on your computer. Follow the steps to install Ubuntu from USB.

Download the .iso or the OS files on your computer from this link.

Download free software like Universal USB installer to make a bootable USB stick.

Select an Ubuntu Distribution form the dropdown to put on your USB

Select your Ubuntu iso file download in step 1.

Select the drive letter of USB to install Ubuntu and Press create button.

After everything has been installed and configured, a small window will appear Congratulations! You now have Ubuntu on a USB stick, bootable and ready to go.

Installing Linux using CD-ROM

Those who like the way a CD runs should try using this method.

(image source)

Step 2) Burn the files to a CD.

Step 3) Boot your computer from the optical drive and follow the instructions as they come.

Installing Linux using Virtual Machine

Virtual machine software like Oracle VM can install Linux on Windows in easy steps. Let us look at them.

Here the brief steps

PART A) Download and Install Virtual Box

Download Virtual box using this link

Depending on your processor and OS, select the appropriate package. In our case, we have selected Windows with AMD

Once the download is complete, Open setup file and follow the steps below:

The virtual box dashboard looks like this-

PART B) Download Ubuntu

Visit this link to download Ubuntu.

You can select 32/64-bit versions as per your choice.

PART C) Create a Machine in Virtual Box

The virtual hard disk is where the OS installation files and data/applications you create/install in this Ubuntu machine will reside

Step-8) Now you can see the machine name in left panel

So a Machine (PC) with 8GB Hardisk, 1GB RAM is ready.

PART D) How to Install Ubuntu

Step 2) Select the Folder Option

Step 3) Select the Ubuntu iso file

Step-5) You have an option to Run Ubuntu WITHOUT installing. In this tutorial will install Ubuntu

Step-11) Installation process starts. May take up to 30 minutes. Please wait until installation process completes.

Step-12) After finishing the installation, you will see Ubuntu Desktop.


An operating system based on the Linux kernel is called a Distribution or Distro

There are hundreds of Distributions available, some of which are designed to accomplish a sole purpose like running servers, act as network switches, etc.

Naming the best Linux Distribution is difficult as they are made for different.

Linux can be installed on your system via the below-mentioned methods:

USB stick

Live CD

Virtual Installation

6 Ways To Run Linux Software On Mac

If you’ve ever wanted to dip your toes into the vast ocean of Linux software, but you enjoy the comfort of your Mac, then you’re in the right place. Today, we’re going to break down six methods of running Linux software on your Mac – making it easy to experience the power of open-source software and turbo-charge your Mac at the same time.

Tip: Did you know that all versions of macOS, including macOS Ventura are UNIX-based operating systems? Learn more about UNIX vs. Linux and how they are different by discovering our guide.

1. Use the MacPorts Package Manager

MacPorts is a community-driven package manager designed to simplify the process of compiling, installing, and upgrading open-source software on your Mac. It provides access to thousands of ready-made ports of Linux software, and you can get started with it in a few simple steps:

Apple’s Xcode Command Line Tools is a prerequisite for using MacPorts. You can install Xcode by opening Terminal on your Mac and run the command: xcode-select --install

The Quick Start guide provides handy packages for all recent versions of macOS, as well as links to legacy versions for Mac OS X.

Launch the downloaded installer and complete the step-by-step installation process.

Find a port of the Linux software you want to install. All available ports are conveniently located on the website of the MacPorts project. Once you’ve found what you’re looking for, copy the provided command.

Launch the Terminal app and paste the installation command you copied in the previous step. Hit Return and enter your admin password.

Good to know: For more information about this package manager, be sure to check out our comprehensive MacPorts tutorial.

2. Set Up Homebrew on Your Mac

Another package manager that you can use to install Linux software on your Mac is Homebrew. Just like MacPorts, Homebrew doesn’t have a graphical user interface, but you can install it with a single command. It takes just one more command to install one or more Linux software applications with it:

Copy and paste the following command into Terminal to install Homebrew:

Wait for the script to run. The script will let you know what it’s planning to do and will pause before executing. Simply confirm it by pressing Return, and let it work its magic.

To install a new piece of software, use the brew install command followed by the software name. Use Homebrew’s online package browser to find what you’re looking for.

Tip: Besides macOS, Homebrew can also be used to install Linux on Windows.

3. Virtualize Linux Using Parallels Desktop

Suppose you’re looking for an experience that’s a little more immersive than running individual Linux apps. In that case, you might want to consider creating a full-blown Linux virtual machine on your Mac using Parallels Desktop, a virtualization software solution for Apple silicon and Intel-based Macs. While Parallels Desktop is a fairly expensive commercial product, there’s a free trial version that you can download to see what it has to offer:

You can now run the virtual machine without rebooting your Mac and install any Linux software you want directly in it.

Tip: If you have an Apple silicon Mac, then you will be able to install only ARM Linux distributions and run ARM Linux software applications. Learn more about which applications support Apple silicon by reading our guide.

4. Run Any Linux Distribution With UTM

If you find Parallels too expensive, then you should consider UTM. This open-source software relies on both QEMU and Apple’s Hypervisor virtualization framework to emulate and virtualize just about any operating system. You can use it to run x86/x64 Linux software on Apple silicon Macs and ARM Linux software on Intel-based Macs. While it doesn’t have all the bells and whistles Parallels has, its usability is surprisingly great:

Download the latest version from UTM’s official website or from the Mac App Store for $9.99 via Apple ID purchase.

With the virtual machine created, you can now boot into Linux and install any software you want just like if you were running the distribution on real hardware.

Tip: UTM provides a number of pre-configured Linux images that you can download directly from the gallery section of the official website. Be sure to check out our picks for 6 of the best Linux distributions for Mac users.

5. Install Asahi Linux Alongside macOS

For those who aren’t afraid to get their hands a little dirty, there’s Asahi Linux. This project aims to port Linux to Apple Silicon Macs, polishing it to the point where it can be used as a daily driver.

Download and run the Asahi Linux installer in the macOS terminal.

Use the installer to resize your macOS partition to make room for Linux.

Use the newly created free space to install Asahi Linux.

Reboot your Mac and complete the Asahi Linux setup by setting up your language, region, time zone, and keyboard layout.

Log in to your Asahi Linux system and install your Linux software of choice.

Note: Asahi Linux is based on Arch Linux, and it uses the same package manager, called pacman. Sound like a foreign language? Start by learning how to master Disk Utility on the Mac.

6. Built Linux Software from Scratch

If all else fails, or if simply love a good challenge, you can always opt to build Linux software from scratch on your Mac. This method works best for simple command-line tools that don’t have too many external dependencies. In some cases, developers provide detailed instructions or a “Makefile” (utility or programming language) that simplifies the process of building the software by automating certain steps.

However, it’s worth noting that this approach requires a fair amount of technical know-how, as you’ll need to navigate potential compilation errors, understand how to manage libraries, and generally be comfortable working in a terminal environment. Here’s what you need to do:

Locate the source code of the Linux software you want to install – most open-source software will have this readily available on their website or GitHub repository.

Ensure that you have command line tools installed on your Mac. You might also need other libraries or tools, depending on the software you want to build.

Extract the source code.

Read the documentation. Most source code packages come with a “README” or “INSTALL” file. This document will usually give you specific instructions on how to build and install the software.

Run the ./configure command, followed by make and then sudo make install. These commands configure, compile, and install the software, respectively.

While this process can be involved and a bit daunting, it’s a fantastic way to learn more about how software is built and installed.

Good to know: Find the macOS Terminal a bit sterile or confusing? Discover how to customize your Mac’s Terminal for enhanced productivity.

Frequently Asked Questions Do all Linux apps run on macOS?

Not all Linux apps run on macOS directly due to differences in the underlying system architectures. However, many Linux applications have macOS versions, or you can use virtualization to run Linux software on a Mac.

Can I replace macOS with Linux on my Mac?

Yes, it’s possible to replace macOS with Linux on your Mac. Note that these methods alter your Mac’s hard disk. You can install Linux as a dual boot system. This means that you will have both macOS and Linux installed on your Mac, and you can choose which one to boot into when you start up your Mac. You can also opt to replace macOS with Linux entirely. This means that you will have to erase macOS from your Mac and install Linux as the main operating system.

Are Linux apps slower when running on macOS?

The performance of Linux apps on macOS largely depends on how they are being run. If you’re using a virtual machine or emulation, there may be a performance hit due to the overhead these methods introduce. On the other hand, if the app has a native macOS version, then the performance should be comparable to running the app on a Linux machine.

Image credit: Unsplash. All screenshots by David Morelo.

David Morelo

David Morelo is a professional content writer in the technology niche, covering everything from consumer products to emerging technologies and their cross-industry application. His interest in technology started at an early age and has only grown stronger over the years.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

How To Install Android Apps On Your Chromebook

Google’s Chromebook series of lightweight laptops have turned a corner in the past several months. Over a little more than the past year, Google has been steadily introducing Android app compatibility to Chrome OS, letting you install the Play Store, then seamlessly download and run apps just like you would on an Android device.

But there are caveats to this. Some of the more recent Chromebook models come pre-loaded with the Play Store, letting you get straight down to dabbling with Android apps, while other models will require you to update Chrome OS to a “beta” version, as the feature is still being tested, and many older models won’t receive the update at all.

So, before we proceed, take a look at this official list of Chromebooks that are in line to receive Android compatibility. If you’re on the “Stable Channel” or “Beta Channel,” then read on to see how to install Android apps on your device.

For Stable Channel Users

If your Chromebook is already compatible with Android apps, setting yourself up is fairly simple.

The Play Store app should open automatically, and in the future you can open it by going to your Launcher (the circle icon at the bottom-left corner of Chrome OS).

For Beta Channel Users

To get Android apps through the Beta channel, check in that list we linked to earlier to be sure you can definitely get Android apps on the beta channel. Then you’ll need to get yourself onto said beta channel.

Note: be wary that the beta channel is inherently less stable than the stable channel and that we can’t account for any errors you may experience on it. If it doesn’t work out for you, you can always revert back to the stable channel.

4. Now, with your Chromebook updated, you just need to follow the same steps as the “Stable Channel” users (see previous heading), and you’re good to go!


The ability to install Android apps on Chromebook is a game-changer, and it looks like various Chromebook OEMs are working apace to get their devices up to speed with this great update.

Plenty of Android apps are far more intuitive to use than websites (particularly if you have a touchscreen), and you can even dig into the Play Store’s huge games collection to get it working on your Chromebook, though be aware that not all Android games will work perfectly on Chromebooks at this point.

Robert Zak

Content Manager at Make Tech Easier. Enjoys Android, Windows, and tinkering with retro console emulation to breaking point.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

Best Productivity Apps On Android

Productivity Apps can bring so much effortlessness in a person’s day to day routine. Everyday decision-making that saps away on a person’s mental energy and leaves his batteries drained can now be handed over to the extremely smart and sophisticated apps that come in the market.

Plus, multitasking by itself can be such a battery-drainer for people. Productivity apps take some of the decision-making out of our hands and let our lives run like a smooth-oiled machine. It is the closest thing to having a personal secretary.


Best Android apps for increased productivity

We guarantee you, once you get a hang of any one of these apps and let them do your work for you, that too completely free of cost, you won’t be able to survive without them. So, without further ado, we list down the most popular productivity apps today:

1. Automate

Automate automates various tasks on the user’s Android gadget. It lets the user create and customize his own automation using flowcharts.

For instance, the user can instruct the app to automatically change settings like audio volume, Bluetooth, GPS, Wi-Fi, NFC, and perform actions like sending SMS or e-mail, copy files to FTP or Google Drive, play music or take photos based on location, time of day, foreground app, battery level or any other event trigger. Automate also supports plug-ins made for Tasker and Locale.

Download: Automate

2. Forest

Forest helps a user stay focused to the task at hand using a gamified timer. Based on the Pomodoro technique, Forest presents a unique way to help a user beat his phone addiction, overcome frequent and incessant distractions, stay focused, reduce procrastination and make the user more productive.

When the timer starts, the user plants a seed in the forest of Forest. As time goes by, this seed will gradually grow into a tree. However, if the user fails to resist the temptation of using his phone and leave the app, the tree will wither. The sense of achievement and responsibility encourages the user to stay away from his phone and make better use of his time.

Download: Forest

3. TickTick

TickTick is a simple and effective to-do list and task manager app that helps one make a schedule, manage time, stay ahead of deadlines and organize life at work, home and everywhere else. Using its intuitive design and personalized features, a user can add tasks and reminders in mere seconds.

For tasks that need to be done regularly, all one needs to do is choose a repeating period (daily, weekly, weekdays, or monthly). Features also include sharing lists and assigning goals to collaborate with colleagues, friends, or family.

Download: TickTick

4. Evernote

Evernote is a brilliant productivity app that helps a user have access to his lists and notes as and when he needs it. With Evernote, one can input typed notes and scan handwritten notes, add to-do’s, photos, images, web pages, audio; create notebooks, organizers, planners; organize notes and share them.

Evernote syncs all notes and notebooks across the user’s devices so his information is always well within reach.

Download: Evernote

5. Healthifyme

Healthifyme is India’s answer to MyFitnessPal. It is a calorie counter, personalised diet chart guide (with a comprehensive list of common Indian meals to choose from, aside form the more common health recipes), and a nutrition calculator rolled in one.

The personal food tracker and calorie counter motivates the user to eat healthy food, follow his diet plan, try healthy recipes, and the fitness tracker encourages him to follow his workout chart, go to the gym or do yoga. For absolutely no cost, Healthifyme puts its users on track to become their healthiest, most productive selves.

Download: Healthifyme

6. Trello

Trello helps its users stay on top of all his projects, at work and at home.

With Trello a user can create boards to organize anything he is working on, use them solo or invite coworkers, friends and family to collaborate, customize workflows for different projects, add checklists of “To-Dos” on cards, assign tasks to himself and coworkers and attach files from Google Drive and Dropbox.

Download: Trello


7. AirDroid

AirDroid helps a user effortlessly access and effectively work on his Android phone or tablet from Windows, Mac or the web wirelessly. Calls, messages and (approved) app notifications are mirrored to any large computer screen. Things are transferred faster than usual (sans a cable).

The user can not only control his phone from a computer, but also use any apps installed on it, such as WhatsApp, WeChat, and Line– with no rooting required.

Download: AirDroid

8. Google Keep

Google Keep is a minimalistic yet powerful note-making and sharing app. With Keep, a user can add notes, lists and photos, record a voice memo, share ideas with friends and family, color and add labels to code notes to easily organize notes. Its user interface is elegant and chic.

Download: Google Keep

9. TripIt

TripIt is an efficient trip-planning assistant loaded with features. It helps you manage a master itinerary that keeps tabs on every step of your journey- from flight bookings to hotel reservations.

Additionally, as the user is planning his trip, TripIt steps up to help him find a better seat, remind you when to check in, when to leave for the airport etc.

Download: TripIt

10. Expensify

Expensify actually reduces a lot of effort put n manually logging in the financial transactions. Like you can just take a photo of some receipt and you’re done. That obviously will save you time that can be used for work to increase daily productivity. As most people keep tabs on their finances via some written tangible method, the app is very helpful.

Expensify is one of the world’s most favored financial tracking apps. From a screenshot of a receipt, Expensify can extract useful information and input it automatically into its database to update and maintain the user’s expenditure logs. Expensify also streamlines business travel and tax compliance by generating concise expense reports.

Download: Expensify

Since all apps belong to different categories, we recommend you try them all.

How To Install Sendmail On Ubuntu 22.04

How to install Sendmail on Ubuntu 22.04 and configure it for sending emails using a email server which routes or relays the mail delivery.

Sendmail is a opensource Mail Transfer Agent (MTA) which is used to route email using server or by using shell commands. You can also configure SMTP using Sendmail.

In this guide you are going to learn how to install and setup Sendmail on Ubuntu. Also you will setup SMTP and configure it with PHP.


Update Server Packages

SSH inside your server and update the packages to it’s latest version.

sudo apt update sudo apt upgrade Install Sendmail

Sendmail is available in the ubuntu repository, so you can directly install using apt install command.

sudo apt install sendmail Configure Hostname

Edit the /etc/hosts file and add your hostname.


sudo nano /etc/hosts

On the line starting with, add the hostname to the end as it looks below. This should be on a single line. localhost


Configure SMTP

Create new directory inside /etc/mail for SMTP configurations.

sudo mkdir /etc/mail/authinfo

Setup correct permissions.


sudo chmod -R 700 /etc/mail/authinfo

Create a new file for your SMTP authentication inside the newly created directory.

cd /etc/mail/authinfo sudo nano smtp-auth

Paste the following line and replace the email-address with your login email and password with your password.

AuthInfo: "U:root" "I:


" "P:



Hit CRTL + X followed by Y and ENTER to save and exit the file.

Create a hash database map for the above created authentication.

sudo makemap hash smtp-auth < smtp-auth Configure SMTP

Navigate to the sendmail configuration directory and edit the file.

cd /etc/mail sudo nano

Add the below configurations right after the MAILER _DEFINITIONS line.

Replace smtp-host with your SMTP hostname.

define(`SMART_HOST',`[smtp-host]')dnl define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl define(`confAUTH_OPTIONS', `A p')dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash -o /etc/mail/authinfo/smtp-auth.db')dnl

The configuration should look like the same as the below screenshot.

Now save the file and exit the editor.

Rebuild Sendmail Configuration

Once the configuration is done you need to rebuild the Sendmail configuration using the make command.

cd /etc/mail make

Once the configuration is rebuilt you need to restart Sendmail

Restart Sendmail

Restart Sendmail using the following command.

sudo /etc/init.d/sendmail restart

Now you can send emails using SMTP.

Additional Configurations Configuration with PHP

To use Sendmail with PHP you need to ad sendmail path in your php.ini file.

sudo nano /etc/php/





To the bottom of the file add the following.

sendmail_path= /usr/sbin/sendmail -t -i

Restart Apache or PHP-FPM for the changes to take effect.

sudo service apache2 restart


sudo service php


1-fpm restart Sendmail SMTP Configuration without Auth

Incase if you have whitelisted your server IP for SMTP and you can send emails without authentication you can follow the below method.

You don’t need to create the smtp-auth file that we created above.

You can directly edit the file and make the following changes.

cd /etc/mail sudo nano

Add the below configurations to the last.

Replace smtp-host with your SMTP hostname.



')dnl define(`RELAY_MAILER', `esmtp')dnl define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl

Save the file, rebuild configuration and restart Sendmail.

cd /etc/mail make sudo /etc/init.d/sendmail restart

Prepare yourself for a role working as an Information Technology Professional with Linux operating system


Now you have learned how to install and configure Sendmail to relay using SMTP on Ubuntu 22.04.

Update the detailed information about How To Run Android Apps On Ubuntu Linux With Anbox on the website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!