Linux Stall
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials
No Result
View All Result
Linux Stall
No Result
View All Result
Home How to

How To Enable TLS Encryption On Postfix

Chankey Pathak by Chankey Pathak
July 12, 2020
in How to
43 3
0
Blue padlock icon computer security system vector
15
SHARES
765
VIEWS
Share on FacebookShare on Twitter

In this guide, I will show you a quick and easy way to enable TLS encryption on your Postfix server. The reason why you would want to enable this is that some email servers automatically mark incoming emails as spam if they are not encrypted with TLS as well as this helps prevent people from intercepting email traffic from your server.

To enable TLS you simply need to edit your postfix configuration file by running the following commands.

echo "smtp_tls_security_level = encrypt" >> /etc/postfix/main.cf
echo "smtp_enforce_tls=yes" >> /etc/postfix/main.cf

If you have not done any configurations yet then you will also want to set your hostname as well.

echo "myhostname = yourdomain.com" >> /etc/postfix/main.cf

The last step is reloading postfix, you can do that with the following command. This command will work regardless of which distribution or release you are using.

systemctl reload postfix || /etc/init.d/postfix reload

Now to verify that you have enabled TLS encryption, send another test email to your Gmail account and see if the status has changed. You should see a result similar to the screenshot below.

enable tls on postfix gmail

I hope this guide has helped, if you have any comments or questions please feel free to comment.

Tags: how tomailpostfixsecurityTLS
Previous Post

Running Commands Automatically Over SSH

Next Post

How to find files by size in Linux

Chankey Pathak

Chankey Pathak

Data Scientist at Morgan Stanley. I've been using Linux since past 12 years. I plan to share what I know about Linux in this blog.

Related Posts

The three-dimensional network topology infographics with ip addresses 3d illustration
How to

Identifying and Resolving IP Address Conflicts with Linux

July 23, 2020
procmon
How to

Microsoft releases ProcMon (Process Monitor) utility for Linux

July 21, 2020
searching file
How to

How to find files by size in Linux

July 12, 2020
Blue padlock icon computer security system Encryption
How to

Running Commands Automatically Over SSH

July 12, 2020
sar command output
How to

How to Install And Enable SAR (SYSSTAT) On Linux Servers

July 12, 2020
postfix-mailserver logo
How to

Remove OS Information From Postfix Banner

July 12, 2020
Next Post
searching file

How to find files by size in Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Terms and Conditions
  • Contact Us
  • About Us

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

No Result
View All Result
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In