Hide SMTP flag (Sendmail/qmail/postfix/exim)

Source: Internet
Author: User
Tags mail modify qmail

Hiding the flag (software name and version number) will improve security and, if possible, use a mail server other than SendMail because SendMail runs as root, making it easier to raise the hacker to root.

  Sendmail

Look for SendMail's configuration file and edit:

Code:

Locate SENDMAIL.CF
Nano-w/path/to/sendmail.cf

Modify the bold portion of the following code:

Code:

smtpgreetingmessage= $j Sendmail $v/$Z; $b


Restart SendMail or overload its configuration file (Killall-hup sendmail).

Qmail

Modify the smtpgreeting value of the QMAIL-SMTPD, for example:

Code:

mail.example.com Greetings here

Postfix

Look for Postfix's configuration file and edit:

Code:

Locate MAIN.CF
Nano-w/path/to/main.cf

Modify the bold portion of the following code:

Code:

Smtpd_banner = $myhostname ESMTP $mail _name ($mail _version)

Restart Postfix.

   EximExim is similar to postfix, modifying the Smtpd_banner variable in/etc/exim.conf.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.