From owner-freebsd-questions@FreeBSD.ORG Sat Sep 24 09:47:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4912916A41F for ; Sat, 24 Sep 2005 09:47:57 +0000 (GMT) (envelope-from guru@Sisis.de) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0757743D48 for ; Sat, 24 Sep 2005 09:47:55 +0000 (GMT) (envelope-from guru@Sisis.de) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id LAA09531 for ; Sat, 24 Sep 2005 11:46:53 +0200 (CEST) (envelope-from guru@Sisis.de) X-Authentication-Warning: hunter.Sisis.de: mail set sender to using -f Received: from hermes.sisis.de(193.31.10.38) by hunter.Sisis.de via smap (V2.1) id xma009529; Sat, 24 Sep 05 11:46:52 +0200 Received: from almare.Sisis.de (almare.sisis.de [193.31.10.40]) by hermes.sisis.de (8.8.8/8.8.8) with ESMTP id LAA11266 for ; Sat, 24 Sep 2005 11:48:02 +0200 (CEST) (envelope-from guru@Sisis.de) Received: from almare.Sisis.de (localhost.Sisis.de [127.0.0.1]) by almare.Sisis.de (8.13.3/8.13.3) with ESMTP id j8O9mVap015254 for ; Sat, 24 Sep 2005 11:48:31 +0200 (CEST) (envelope-from guru@almare.Sisis.de) Received: (from guru@localhost) by almare.Sisis.de (8.13.3/8.13.3/Submit) id j8O9mVW2015253 for freebsd-questions@freebsd.org; Sat, 24 Sep 2005 11:48:31 +0200 (CEST) (envelope-from guru) From: Matthias Apitz Date: Sat, 24 Sep 2005 11:48:31 +0200 To: freebsd-questions@freebsd.org Message-ID: <20050924094831.GA15220@almare.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: FreeBSD 5.4 && sendmail 8.13.3 && no-DNS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: guru@Sisis.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 09:47:57 -0000 Hi, When I'm at home with my FreeBSD 5.4 and connected through an ISDN line with my company I've no DNS but I want to send e-mail as well; I've configured a submit.mc and made the submit.cf saying that e-mail should just go without DNS to some SMART_HOST ('proxy') and removed 'dns' from the /etc/nsswitch.conf file, because it is described that way in: http://www.sendmail.org/m4/features.html nodns If you aren't running DNS at your site (for example, you are UUCP-only connected). It's hard to consider this a "feature", but hey, it had to go somewhere. Actually, as of 8.7 this is a no-op -- remove "dns" from the hosts service switch entry instead. Here are my files: $ fgrep proxy /etc/hosts 10.10.10.1 proxy nntp $ ls -l /etc/resolv.conf -rw-r--r-- 1 root wheel 0 24 sep 11:10 /etc/resolv.conf $ cat /etc/nsswitch.conf group: compat group_compat: nis hosts: files networks: files passwd: compat passwd_compat: nis shells: files But the sendmail can't resolve 'proxy' to 10.10.10.1 from the /etc/hosts file: $ sendmail -v -t < tm guru@unixland.de... Deferred: Name server: proxy: host name lookup failure $ ping proxy PING proxy (10.10.10.1): 56 data bytes 64 bytes from 10.10.10.1: icmp_seq=0 ttl=253 time=42.540 ms 64 bytes from 10.10.10.1: icmp_seq=1 ttl=253 time=42.602 ms It also does not work too, if I put 10.10.10.1 in the submit.cf DS10.10.10.1 I'm missing something? Thx in advance Matthias $ cat /etc/mail/rebelion.Sisis.de.submit.mc FEATURE(`masquerade_envelope')dnl FEATURE(`accept_unresolvable_domains')dnl FEATURE(`nocanonify')dnl FEATURE(`accept_unqualified_senders')dnl divert(0)dnl 3 gshapiro Exp $') define(`confCF_VERSION', `Submit')dnl define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet define(`confTIME_ZONE', `USE_TZ')dnl define(`confDONT_INIT_GROUPS', `True')dnl # define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl dnl dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1] FEATURE(`msp', `[127.0.0.1]')dnl # define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl define(`SMART_HOST', `proxy')dnl define(`confBIND_OPTS', `-DNSRCH -DEFNAMES')dnl -- Matthias Apitz / Sisis Informationssysteme GmbH Gruenwalder Weg 28g / D-82041 Oberhaching Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211 http://www.sisis.de/