---
title: "Discussion on \"Setting the Postfix mail in Ubuntu\" | Hashnode"
description: "Discussion on \"Setting the Postfix mail in Ubuntu\". Install postfix\n apt install postfix\n\ninstall mailx\n apt install mailutils\n\nIn the /etc/postfix/main.cf file, add -\n relayhost = [smtp.gmail.com]:587\n\n # Location of sasl_passwd we saved\n smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd\n\n..."
url: "https://hashnode.com/posts/setting-the-postfix-mail-in-ubuntu/64dc8a2ca6b5b32e4a3142b9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Setting the Postfix mail in Ubuntu](https://bhaskar422.hashnode.dev/setting-the-postfix-mail-in-ubuntu?utm_source=hashnode&utm_medium=feed)

Install postfix apt install postfix install mailx apt install mailutils In the /etc/postfix/main.cf file, add - relayhost = \[smtp.gmail.com\]:587 # Location of sasl\_passwd we saved smtp\_sasl\_password\_maps = hash:/etc/postfix/sasl/sasl\_passwd ...

Aug 16, 2023 · 2 min read · bhaskar422.hashnode.dev  
Updated Aug 25, 2023  
Read the article

-   [#setting-postfix-mail-on-ubuntu-machine](https://hashnode.com/tag/setting-postfix-mail-on-ubuntu-machine)

## Written by

[Bhaskar Mehta](https://hashnode.com/@bhaskarmehta)

@bhaskarmehta · India

  
[View profile](https://hashnode.com/@bhaskarmehta)

DevOps Engineer

I am DevOps Engineer who works on DevOps tools like Docker, Kubernetes, Terraform, Git, GitHub, Jenkins and AWS services.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
