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

x
?
Solved

Sendmail anti-relay

Posted on 2003-02-22
4
Medium Priority
?
358 Views
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 192.168.1.1 and other PC IP is 192.168.1.2 which are all in the LAN.
Let's see my setup step first
(1) vi /sendmail.cf --
 O DaemonPortOptions=Port=smtp,Addr=192.168.1.1, 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
127.0.0.1                       RELAY

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

Thanks you very much !
0
Comment
Question by:erase007
2 Comments
 
LVL 8

Accepted Solution

by:
heskyttberg earned 320 total points
ID: 8005163
Hi!

Well 192.168.1.1 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 192.168.1.1 and 192.168.1.2 and theese are called:
mail.abc.com
wkst.abc.com

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

That's all I know.

Regards
/Hans - Erik Skyttberg
0
 

Expert Comment

by:CleanupPing
ID: 9076677
erase007:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

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