From owner-freebsd-questions Wed Apr 19 23:32:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from post.it.helsinki.fi (post.it.helsinki.fi [128.214.205.24]) by hub.freebsd.org (Postfix) with ESMTP id DA83D37B788 for ; Wed, 19 Apr 2000 23:32:21 -0700 (PDT) (envelope-from reissell@cc.helsinki.fi) Received: from mursu.pesa.fi (orval.in.helsinki.fi [128.214.182.209]) by post.it.helsinki.fi (8.9.3/8.9.3-SPAMmers-sod-off) with ESMTP id JAA26122; Thu, 20 Apr 2000 09:32:19 +0300 (EET DST) Received: (from poku@localhost) by mursu.pesa.fi (8.10.1/8.10.1) id e3K6Yfn95669; Thu, 20 Apr 2000 09:34:41 +0300 (EEST) To: "Loic Mahe'" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD and sendmail References: <38FD8CDB.D6FF2653@twam.com> From: Jussi Reissell Date: 20 Apr 2000 09:34:41 +0300 In-Reply-To: "Loic Mahe'"'s message of "Wed, 19 Apr 2000 12:39:23 +0200" Message-ID: <87ya69th4u.fsf@mursu.pesa.fi> Lines: 28 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Loic Mahe'" writes: > Hello, > > I'm trying to use sendmail with my dialup connection. I looked at the > FAQ (http://www.fr.freebsd.org/FAQ/admin.html#ISPMAIL) > and generated my sendmail.cf file. > Sending mail works, but each time I launch sendmail (at boot time, > manually (like sendmail -bt) or with mailq), the modem opens the > connection to my ISP (even if the mail queue is empty). This problem > seems to occur only on FreeBSD (I asked my question in a french > mail-related newsgroup and Linux users told me that they have no such > problem). > I used tcpdump and found that 2 DNS queries are sent (and > therefore lauch the modem since resolv.conf lists my ISP's DNS). > Normally, sendmail uses a ServiceSwitch file to use /etc/hosts instead > of bind, but is it used on FreeBSD ? It is. Remove all traces of 'dns' from the hosts entry in the service.switch file if you don't want DNS lookups. You also need to have a FQDN for your host in /etc/hosts. > > It is not normal that the modem connects if there is no mail to send. Sendmail wants to know the FQDN of the host it's running on. If it can't find it elsewhere, it tries DNS. It does this on Linux too. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message