Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Sendmail anti-relay

Posted on 2003-02-22
Medium Priority
Last Modified: 2013-12-15
I have setup sendmail in RH 8, all send and receive email is ok, but I have one questino about anti-relay which is.
Let's say, my RH 8 sendmail sever IP is and other PC IP is which are all in the LAN.
Let's see my setup step first
(1) vi /sendmail.cf --
 O DaemonPortOptions=Port=smtp,Addr=, Name=MTA
(2) assume I have abc.com this domain, then I vi /etc/mail/local-host-names
(3)add email account by useradd................

With the above setting, I can send and receive email, but
I don't know why I no need to edit /etc/mail/access since
default is don't relay any things except these  
localhost.localdomain           RELAY
localhost                       RELAY                       RELAY

I haven't add   RELAY
why sendmail server still accept the mail from ?

Thanks you very much !
Question by:erase007

Accepted Solution

heskyttberg earned 320 total points
ID: 8005163

Well is the mail server itself, so there is no relaying going on.

Relay is only when someone from another IP connect's to the server and tries to send a mail.

It also allows relay from all computer in same domain.
This is default behaviour.

So if you have DNS setup and records for and and theese are called:

Then mail would be accepted from the windows machine allthough it's not in the relay list.

That's all I know.

/Hans - Erik Skyttberg

Expert Comment

ID: 9076677
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question