?
Solved

Sendmail anti-relay

Posted on 2003-02-22
4
Medium Priority
?
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

762 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