From owner-freebsd-questions Wed Apr 3 12:30:36 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 BAFAD37B400 for ; Wed, 3 Apr 2002 12:30:28 -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 30E9F28C66 for ; Wed, 3 Apr 2002 15:30:28 -0500 (EST) Date: Wed, 3 Apr 2002 15:30:28 -0500 (EST) From: Peter Leftwich X-X-Sender: To: FreeBSD Questions Subject: Fwd: Re: Sendmail question - block users from sending email to internet Message-ID: <20020403152947.M57287-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 ---------- Forwarded message ---------- Return-Path: Received: from mail3.registeredsite.com (mail3.registeredsite.com [64.224.9.12]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 921BD28C4A for ; Tue, 2 Apr 2002 16:32:43 -0500 (EST) Received: from mail.video2video.com (mail.video2video.com [209.35.10.22]) by mail3.registeredsite.com (8.11.6/8.11.4) with ESMTP id g32Kbxx24406 for ; Tue, 2 Apr 2002 15:37:59 -0500 Received: from mail01.svc.cra.dublin.eircom.net [209.35.10.22] by mail.video2video.com (SMTPD32-6.06) id A37A2EDD004C; Tue, 02 Apr 2002 16:32:42 -0500 Received: (qmail 67275 messnum 122895 invoked from network[159.134.160.250/p250.as1.arklow1.eircom.net]); 2 Apr 2002 21:32:38 -0000 Received: from p250.as1.arklow1.eircom.net (HELO fusionb) (159.134.160.250) by mail01.svc.cra.dublin.eircom.net (qp 67275) with SMTP; 2 Apr 2002 21:32:38 -0000 Message-ID: <003501c1db57$776ec3b0$5a01a8c0@fusion.ie> From: "Bryan Crowley" To: "Peter Leftwich" References: <20020329180902.I75496-100000@earl-grey.cloud9.net> Subject: Re: Sendmail question - block users from sending email to internet Date: Wed, 3 Apr 2002 22:35:23 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Hi Peter Thanks for the mail but I am still at a loss here is a bit more detail maybe you be as good to offer a perl of wisdom. The senario is as follows: The freeBSD box is set up to server students in a class room envoirment. Have done extensive work on the setup but this mail is the only thing that has stumped me. My users log on to the box via ssh through a windows machine. Once they have gained access I want them to use the mail agent "mail" to mail other account holders and the lecturer which is working fine from the default installation. The mail lookup as far as other users on the box is perfect .ie mail root... But when they try and mail a domain i.e jj@hotmail.com I want a error message to apear at the mail agent that that access is denied. I tried the solution you offered but that kind of mail just goes into the queu as fusiond# sendmail -bp /var/spool/mqueue (5 requests) ----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient--------- --- g32LFI800151 0 Tue Apr 2 22:15 root (host map: lookup (hotmial.com): deferred) jj@hotmial.com I also tried the access file in /etc/mail and ran the make command as specified in the FreeBSD handbook, and that had no effect. The main issue is when I look at any documentation for sendmail it goes into great dept of configuring the mail for various areas but none mention how to actually stop mail. In the freeBSD handbook it says "In default FreeBSD installations, Sendmail is configured to only send mail from the host it is running on" how do I configure it to send mail to account holders but once a mail is sent to another domain it will give an error message. Thanks again for you replay Best Regards Bryan Crowely ----- Original Message ----- From: "Peter Leftwich" To: "Bryan Crowley" Cc: "FreeBSD Questions" Sent: Saturday, March 30, 2002 12:11 AM Subject: Re: Sendmail question - block users from sending email to internet > 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