From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 01:41:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0CF716A417 for ; Wed, 23 Jan 2008 01:41:45 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id A996013C461 for ; Wed, 23 Jan 2008 01:41:45 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so681631anc.13 for ; Tue, 22 Jan 2008 17:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=ongn4iTl2SFeoHK/u/zOiY33Q8j5wGWvlHcjjWbEFDM=; b=fzT+qBj0vmxCOets2oDbmVspAZX0qf1MJ+DzI93DpLI9Qkfc+TxUme3/5wEys6piIH7K/KP1u9ybuE4A2/Fez3qQY7AWPpk1kXrSfismjQ+4bGvfCUYFfNKCdf873DSPnlNCiS56d9U+kzBpPb9+R5lZJLA8+r2oc/kbdmQB+t4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ow8Fr51aU7H0XX3Cz0kPVrHUV399O8b6BwAMLLTN1z1mVku0QpxTwT4f6MNAkkOoV035gsVV98kAIrt4VKJ08dbsVG/oMJKT3AGvC57LeGtCVI1TeUcwFJwcYDq90DeMDLRzCkli68li7HIiMCyLy/DDi19nBjAhgEgFtmiB/wE= Received: by 10.100.196.17 with SMTP id t17mr18971974anf.115.1201052505091; Tue, 22 Jan 2008 17:41:45 -0800 (PST) Received: by 10.35.109.18 with HTTP; Tue, 22 Jan 2008 17:41:44 -0800 (PST) Message-ID: Date: Tue, 22 Jan 2008 22:41:44 -0300 From: Agus To: "Giorgos Keramidas" In-Reply-To: <20080123012508.GA4036@kobe.laptop> MIME-Version: 1.0 References: <8d23ec860801221328s601bade5qab86280cd0441ffb@mail.gmail.com> <20080123012508.GA4036@kobe.laptop> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Schiz0 , freebsd-questions@freebsd.org Subject: Re: Sendmail local only..... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 01:41:46 -0000 2008/1/22, Giorgos Keramidas : > > On 2008-01-22 16:28, Schiz0 wrote: > >On Jan 22, 2008 4:25 PM, Agus wrote: > >> Hi guys, > >> Just trying to make sendmail work locally only.....And by that i > >> mean, i dont want sendmail to be able to relay or send mail to any > >> other machine except for localhost.... > >> > >> How can i do this? I mean is there a way on rc.conf or i need to > >> touch the cf?? > > > > Search the file /etc/defaults/rc.conf for "sendmail" > > It has a bunch of options and explains what they do. > > NOTE: do not edit /etc/defaults/rc.conf - that's just the "Default > > settings" file. > > Make any changes in the /etc/rc.conf file instead. > > > > Basically, you want > > > > sendmail_enable="NO" > > > > And the rest of the sendmail options enabled. > > Not all of them, mind you. I use the following on my laptop: > > sendmail_enable="NO" > sendmail_outbound_enable="NO" > sendmail_submit_enable="YES" > sendmail_msp_queue_enable="YES" > > A fairly good explanation of why this setup works only as a 'local MTA', > and doesn't accept incoming SMTP connections from the world can be found > in the manpage of rc.sendmail: > > % man rc.sendmail > > To the original poster: > > Feel free to use the above sendmail_xxx settings in your `/etc/rc.conf' > file, but please make sure that you also: > > ... understand why these settings make Sendmail only forward locally > generated email messages, by reading the rc.sendmail manpage. > > ... have configured properly your local `/etc/mail/sendmail.cf' and > `/etc/mail/submit.cf' files. > > ... read the Handbook section about Sendmail, and let us know if you > find it difficult to understand, or you would like to see more stuff > documented. > > Cheers, > Giorgos > > Well thank you very much Giorgos and all....will use this but first will read all the mans you suggested me..... Very much appreciated... Cheers, Agustin