From owner-freebsd-questions Fri Mar 29 15:11:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id 829EF37B430 for ; Fri, 29 Mar 2002 15:11:34 -0800 (PST) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id C720C28D81; Fri, 29 Mar 2002 18:11:33 -0500 (EST) Date: Fri, 29 Mar 2002 18:11:33 -0500 (EST) From: Peter Leftwich X-X-Sender: To: Bryan Crowley Cc: FreeBSD Questions Subject: Re: Sendmail question - block users from sending email to internet In-Reply-To: <001701c1d77e$18ed71b0$5a01a8c0@fusion.ie> Message-ID: <20020329180902.I75496-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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