<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 16/05/2010 23:44, Paulo Roncon wrote:
<blockquote
cite="mid:FE488BAD8B4EBB4BBEC64B3EEA4497E6CEC670C7C1@INOAVREX11.ptin.corpPT.com"
type="cite">
<pre wrap="">Hello friends
This is a bit OT but anyway:
-I need to config a sendmail as an outbound MTA (with MailScanner). How can I block all mail except outbound mails that come from an IP ou Domain?
I dont want to be a open relay
thanks!--
MailScanner mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a>
<a class="moz-txt-link-freetext" href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a>
Before posting, read <a class="moz-txt-link-freetext" href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a>
Support MailScanner development - buy the book off the website!
</pre>
</blockquote>
<div class="moz-signature"><font color="#000000">Its quicker to answer
this questions rather than telling you to RTFM, but really you should
do your homework before submitting generic questions as Hugo has so
rightly pointed out, but I will save you the trouble and get you
started:<br>
<br>
Sendmail has the following file which controls its relaying behavious<br>
<br>
on Centos/Redhat/fedora and probably others its in<br>
<br>
/etc/mail<br>
<br>
find the file called "access" in this directory and add a line like
this:<br>
<br>
<br>
ip.address.in.here RELAY<br>
<br>
and/or a line like this:<br>
<br>
mydomain.co.uk RELAY<br>
<br>
For example if the network ip address of your lan was 192.168.1.0<br>
<br>
use, (note the host specific part of the IP is omitted):<br>
<br>
192.168.1 RELAY<br>
<br>
Then either restart sendmail on RedHat distis or from the /etc/mail/
directory type "make" and hit return to rebuild the access.db file.<br>
<br>
Also Sendmail won't be an open relay by default, and usually only
listens on the loopback interface until you modify sendmail.mc to
change this behaviour.<br>
<br>
Sendmail is the industry standard, most widely used MTA, and you can
pretty much do anything with it, its pretty easy to get to grips with
once you dive in and have a go!<br>
<br>
Regards<br>
<br>
Pete<br>
<br>
<br>
<br>
</font></div>
</body>
</html>