From owner-freebsd-questions@FreeBSD.ORG Mon May 14 21:25:44 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DE7816A400 for ; Mon, 14 May 2007 21:25:44 +0000 (UTC) (envelope-from ersaloz@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id A772C13C45B for ; Mon, 14 May 2007 21:25:43 +0000 (UTC) (envelope-from ersaloz@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1138620ugh for ; Mon, 14 May 2007 14:25:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:cc:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:importance:in-reply-to:x-mimeole; b=gatBFth3RQgVZqbbiUKixn+IO8gJ0DME7vP4R8yPLmeGwKm/V2ykHDIJ1+FzxABoQJdgGlb/YjZ+5sEoOrmqql1NPxOtScDwWrGpUWB2eNx9GrNuzgdjdFOWHLIlrit8SJ3UBO4ZEp+7t5HUF/fxQANjOjEv5KsgmxgkkAd7OpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:importance:in-reply-to:x-mimeole; b=JQ0wIIzf1hj6jhNiubi/lswWFuC1EeGTDsEgxEbCP6M9xTGNKdfG8Rc2p6qnmsNP5jGXP7xKtEco19mhmiwAfVN5mugkE4tq/RWBzuQrNP3L8hYJ3TYhUqLavTkfuwRXj6kgvufCQfSaXQjuYoIhZD5OzDDzhg8obB/Q9V1l2E4= Received: by 10.67.101.8 with SMTP id d8mr5470972ugm.1179177941977; Mon, 14 May 2007 14:25:41 -0700 (PDT) Received: from asinusaureus ( [88.12.231.158]) by mx.google.com with ESMTP id j3sm9526195ugd.2007.05.14.14.25.39; Mon, 14 May 2007 14:25:40 -0700 (PDT) From: "Ernest Sales" To: Date: Mon, 14 May 2007 23:25:38 +0200 Message-ID: <000101c7966e$6c352660$2101a8c0@asinusaureus> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Cc: 'Jeffrey Goldberg' Subject: RE: sendmail init error: Can't assign requested address 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: Mon, 14 May 2007 21:25:44 -0000 On Monday, May 14, 2007 3:15 AM, Jeffrey Goldberg wrote: >=20 > On May 13, 2007, at 5:07 PM, Ernest Sales wrote: >=20 > > A laptop running 6-STABLE is connected to the Internet thru a DSL > > modem-router doing NAT. It gets a dynamic local IP (fairly recurring > > 192.168.1.33) at every boot. Of course there is no FQDN for=20 > this host. >=20 > I'm not entirely sure if this will solve your problem but you=20 > can set =20 > up a FQDN for that IP without causing any conflicts. If you have a =20 > "public" domain name, say, yourdomain.com than you could set up a =20 > subdomain >=20 > private.yourdomain.com I crafted it a little different. Now /etc/hosts reads: ::1 asinusaureus asinusaureus.localhost localhost 127.0.0.1 asinusaureus asinusaureus.localhost localhost Sendmail starts smoothly: [...] /etc/rc: DEBUG: checkyesno: sshd_enable is set to NO. /etc/rc: DEBUG: checkyesno: sendmail_enable is set to NO. /etc/rc: DEBUG: checkyesno: sendmail_submit_enable is set to YES. /etc/rc: DEBUG: checkyesno: sendmail_enable is set to NO. /etc/rc: DEBUG: checkyesno: sendmail_submit_enable is set to YES. /etc/rc: DEBUG: checkyesno: sendmail_submit_enable is set to YES. /etc/rc: DEBUG: pid file (/var/run/sendmail.pid): not readable. /etc/rc: DEBUG: run_rc_command: evaluating sendmail_precmd(). /etc/rc: DEBUG: checkyesno: sendmail_submit_enable is set to YES. /etc/rc: DEBUG: run_rc_command: evaluating /usr/sbin/sendmail -L sm-mta = -bd -q30 m -ODaemonPortOptions=3DAddr=3Dlocalhost(). /etc/rc: DEBUG: checkyesno: sendmail_outbound_enable is set to NO. /etc/rc: DEBUG: checkyesno: sendmail_msp_queue_enable is set to YES. /etc/rc: DEBUG: pid file (/var/spool/clientmqueue/sm-client.pid): not readable. /etc/rc: DEBUG: run_rc_command: evaluating sendmail_precmd(). /etc/rc: DEBUG: checkyesno: sendmail_msp_queue_enable is set to YES. /etc/rc: DEBUG: run_rc_command: evaluating /usr/sbin/sendmail -L sm-msp-queue -A c -q30m(). /etc/rc: DEBUG: checkyesno: cron_dst is set to YES. [...] Well, actually not so (sendmail_outbound_enable is supposed to be set to YES, as per defaults, but init says otherwise -- and I don't know what = that means). But it starts without delays and can send/receive mail (even internet mail, wow!). I chose .localhost to qualify the hostname because the notion of = "public" domain name is where I get lost. Can I pick any word as TLD/SLD to = operate in a private LAN? Is there any standard, anything like the CIDR blocks reserved for private networks? Researchs led me to RFC 2606, alternative = DNS roots, and the like, but I couldn't distill any practical advice. Which = will be the interactions if I choose e.g. .somedomain.com? Now if I send a = mail to the internet, it has a From field (user@hostname) unusable to reply = to; if this was user@hostname.somedomain.com it could fake some real mail address.=20 These are questions for the sake of correcteness. I rather won't get = into the arcanes of sendmail, but as it is part of base and used for admin purposes, would like to set it up properly. As for the real email stuff, will be dealt from the GUI some day; but there is always the chance of a = guy playing with the CLI. >=20 > and locally run your own DNS server to serve for that domain, and to =20 > forward DNS requests for all other domains. You can also make that =20 > some local DNS server do reverse lookups in 192.168.0.0/16 without =20 > worries as long as DNS queries are only coming from within=20 > your local =20 > network. Maybe in the future. At present there is only this laptop in the LAN -- = the LAN is just the way to connect with the modem-router. Some day there = will be more inhabitants, however, so I would like to set up a schema able to encompass the growth. >=20 > Also, try to configure your DHCP server (on your modem-router) to =20 > always give the same IP address to your laptop (you can do this by =20 > associating an IP with the hardware ethernet (or wireless)=20 > MAC address. You mean the local IP, I suppose. Not checked yet... >=20 > -j >=20 >=20 > --=20 > Jeffrey Goldberg http://www.goldmark.org/jeff/ Thanks for your help. Ernest