Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2002 18:11:33 -0500 (EST)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        Bryan Crowley <crowleybryan@eircom.net>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Sendmail question - block users from sending email to internet
Message-ID:  <20020329180902.I75496-100000@earl-grey.cloud9.net>
In-Reply-To: <001701c1d77e$18ed71b0$5a01a8c0@fusion.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 Mar 2002, Bryan Crowley wrote:
> Hi - I would like block all/some users sending email to internet and receive email from internet. I am setting up a Freebsd box for lectures to faclate their sysablus but only want the users to be able to mail local users on the box. I am using FreeBSD v1.5. Any help would be graciously accepted.
> Best Regards
> Bryan

Check out "man sendmail" especially and http://www.sendmail.org but for now
this should get you started:

In /etc/mail/sendmail.cf you might see two lines like this:
# Hosts for which relaying is permitted ($=R)
FR-o /etc/mail/relay-domains

mypromt$ cat /etc/mail/relay-domains
# Mail relay access control list.  Default is to reject mail unless the
# destination is local, or listed in /etc/mail/local-host-names
#cyberspammer.com               550 We don't accept mail from spammers
#FREE.STEALTH.MAILER@           550 We don't accept mail from spammers
#another.source.of.spam         REJECT
#okay.cyberspammer.com          OK
#128.32                         RELAY
localhost                       RELAY
127.0.0.1                       RELAY

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020329180902.I75496-100000>