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

Remove OS Information From Postfix Banner

Chankey Pathak by Chankey Pathak
July 12, 2020
in How to
42 3
0
postfix-mailserver logo
15
SHARES
752
VIEWS
Share on FacebookShare on Twitter

In this post I will be showing you how to remove your server’s OS information from the postfix banner. While this isn’t enough to stop somebody from finding out your server OS by itself, it never hurts to make things just a tiny bit more difficult.

Checking If Your Server Displays OS Information

To check if your server is currently allowing people to see information about the OS or even postfix itself on your postfix banner, you want to telnet to your mail server. You can do so by running the command below or if you want to make life even easier then you can use this nifty web based tool.

telnet yourdomain.com 25

Removing Sensitive Information From Postfix Banner

To remove the sensitive information from your postfix banner, you will need to edit your postfix configuration file and replace the smtpd_banner line with what I have below. You can access the configuration file by running the following command.

sudo vi /etc/postfix/main.cf

Next change the smtpd_banner line to “smtpd_banner = $myhostname”. After you have done this, save and restart postfix.

sudo service postfix restart

There you go, no more version info will be displayed on your postfix banner when somebody telnets to your mail server (banner grabbing). For more information on hardening postfix, please see How To Enable TLS Encryption On Postfix.

Please don’t forget to share/comment, thanks!

Tags: how tomailpostfixsecurity
Previous Post

Check Free Memory/RAM In Linux

Next Post

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

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 vector
How to

How To Enable TLS Encryption On Postfix

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
Next Post
sar command output

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

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