SMTP greetings for Sendmail security

Source: Internet
Author: User

SendmailIt is the most widely used email sending/receiving proxy in Unix environments. Because the sendmail mail server is characterized by powerful and complex functions, we should send the SMTP greetings to do some security work.

When sendmail accepts an SMTP connection, it sends a greeting message to the machine, which is used as the identity of the host, the first thing it does is to tell the other party that it is ready.

Edit the "sendmail. cf" file (vi/etc/sendmail. cf) and change the following line:

O SmtpGreetingMessage = $ j Sendmail $ v/$ Z; $ B

Changed:

O SmtpGreetingMessage = $ j Sendmail $ v/$ Z; $ B NO UCE C = xx L = xx

Now manually restart the sendmail process to make the changes take effect:

[Root @ deep] #/etc/rc. d/init. d/sendmail restart

The above changes will affect the flag information displayed when Sendmail receives a connection. You should replace "xx" in the "'C = xx L = xx" entry with your country and region code. The subsequent changes do not actually affect anything. However, this is a legal practice recommended by the "news.admin.net-abuse. email" newsgroup partners.

By reading the above article, we can easily find that the security of Sendmail is worth our attention, while understanding SMTP greetings greatly improves its security performance.

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.