Welcome to the Kuwait Linux User Group, thats dedicated to talk about Linux, BSD, and the use of open source specially for Kuwait community & others as well -- beside encouraging them to use it.
Follow Us:

November 11, 2004 06:32 AM EST

Securing Sendmail.

Securing Sendmail

Author: . 4160 Reads
  Print this page   Export to PDF format   Mail to a friend

here is a good 2 tips for sendmail:
first we will add a throttle for sendmail to max 10 connetions per second.
#cd /etc/mail
open sendmail configration file ( sendmail.mc ) with your favorite editor and add this line:

then save the file and close it.

now we have to generate a sendmail.cf file

m4 sendmail.mc >/etc/mail/sendmail.cf

restart sendmail.

2- second we gonna hide sendmail version when someone connect to port 25.
#Connected to
Escape character is '^]'.
220 host.domain.net ESMTP Sendmail 8.13.1/8.13.1; Thu, 10 Nov 2004 06:01:39 +0300 (AST)

open file submit.cf and search for " O SmtpGreetingMessage=$j Sendmail $v/$Z; $b "
then replace it with this line:

O SmtpGreetingMessage=$b

then save the file and close it.

now restart sendmail and try to connect to port 25.

#Connected to
Escape character is '^]'.
220 Thu, ESMTP 10 Nov 2004 06:04:34 +0300 (AST)



Copyright © by Q8linux
All rights reserved.

Category: Hints & Tips
Tags: None
Bookmark: Share/Save/Bookmark

[ Go Back ]
Content ©


What's your Favorite Mail Server(smtp)?

Lotus Notes


Votes: 102
Comments: 69

Old Articles