From owner-freebsd-questions@FreeBSD.ORG Tue Jan 1 17:17:44 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 4F61516A417 for ; Tue, 1 Jan 2008 17:17:44 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id 248C513C447 for ; Tue, 1 Jan 2008 17:17:43 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so8883992waf.3 for ; Tue, 01 Jan 2008 09:17:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=dkPA4VsicBeUfbzEyadDu1hioG9qV1NVNjn/zbE7CgQ=; b=o+YJZuP/oIb6+Ko+3owm1d5m32yvAfd6kV6rQ0zBvumg8h+MBDrNAeLqwV/RF5dZB1P+UipX9ATdi0J6NWS6ZpP3VZtWYWejfsJVAk2IG8VBs8h0g+c1BhqpIZANkv1vZQAuyLMaKDlGVB9E1NT9ffPNnJVOO2wIU2IqfNAwOd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=EM4ZbGAX3afExqzAfduO08ze9i7pnyrnsHyvtzkOd60NJETrdSmLNaragMUfdQxHrOWF6rbWmqNsjMdk/S+MiA8sATPL6U10rcVVRzLIRYEsr3gyHN2MiBKz9vkGl/hR5klBiTKOStCdlAz/jghVLkrpVZYCSHW/61dQmWkwieQ= Received: by 10.114.13.1 with SMTP id 1mr13811259wam.74.1199207863078; Tue, 01 Jan 2008 09:17:43 -0800 (PST) Received: from sniper ( [71.221.165.126]) by mx.google.com with ESMTPS id j26sm23424067waf.49.2008.01.01.09.17.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Jan 2008 09:17:42 -0800 (PST) From: Andrew Falanga To: FreeBSD Questions Date: Tue, 1 Jan 2008 10:17:21 -0700 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801011017.21412.af300wsm@gmail.com> Subject: sendmail is broken, how do I fix 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: Tue, 01 Jan 2008 17:17:44 -0000 Hello, I'm not sure what I did. I've been following instructions (really!) and after following the instructions from here: http://www.puresimplicity.net/~hemi/freebsd/sendmail.html to setup SSL/TLS authentication for mail relaying, my sendmail installation always gives me this very frustrating messages in /var/log/maillog: Jan 1 11:24:27 whitbap sm-mta[3706]: starting daemon (8.13.8): SMTP+queueing@00:30:00 Jan 1 11:24:27 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 1 11:24:27 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket Jan 1 11:24:27 whitbap sm-msp-queue[3710]: starting daemon (8.13.8): queueing@00:30:00 Jan 1 11:24:27 whitbap sm-mta[3707]: m010sNBM004564: to=, delay=17:30:04, xdelay=00:00:00, mailer=esmtp, pri=1835114, relay=mail02.interchangeusa.com. [63.251.210.81], dsn=4.0.0, stat=Deferred: Connection refused by mail02.interchangeusa.com. Jan 1 11:24:32 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 1 11:24:32 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket Jan 1 11:24:37 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 1 11:24:37 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket Jan 1 11:24:42 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Try as I have, I cannot isolate what is causing this. When I completely kill all sendmail processes (as verified by sockstat and ps -aux) there is *nothing* using port 25. I do not understand what is going on. While following the instructions for smtp authentication in: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html I perhaps made one of my blunders. These instructions say to alter the file "freebsd.mc" rather than .mc. It does say that some admin's like to use .mc, but because I didn't know much about how FreeBSD does the install, I saw freebsd.mc and added the three lines listed in bullet item 6 on that web page. Later, I saw that I did have the file .mc and while researching a resolution to this problem learned that FreeBSD makes the .mc file when doing a "make all" if memory serves. Anyway, I then removed those three lines from freebsd.mc and pasted them into .mc. Regardless, when I had those three lines in freebsd.mc everything worked. I made the changes for SSL/TLS as Josh Tolbert lays out in his web site (see above link) and when I restarted sendmail, that's when my troubles began. I don't understand what it is that I did and how it made it so that sendmail now thinks something else is using the socket/address. I'm desperate for a solution. Thanks for any help. Andy